在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):uwiger/edown开源软件地址(OpenSource Url):https://github.com/uwiger/edown开源编程语言(OpenSource Language):Erlang 86.0%开源软件介绍(OpenSource Introduction):Edown - Markdown generated from EdocCopyright (c) 2014 Ulf Wiger Authors: Status:More-or-less readable Markdown can be generated. A doclet needs to be written that also creates a markdown-based index and overview. Currently, the edoc_doclet creates an index.html and overview.html, which do not point to the .md files. To generate markdown edoc, run:
The Top-level READMEUsing the option Example:
The conversion function will fetch the current branch name from git, and fail if it cannot do so. It is also possible to add the branch information specifically:
Using Atlassian Stash or Gitlab as targetThe option The default value is Note that at the moment, the Markdown viewer plugin will be needed in order to render the generated documentation as Markdown on Stash. Github customizations
. If language-specific syntax highlighting is desired, this can be achieved by adding a 'lang' attribute, e.g.
which should format like this: incr(X) ->
%% This should be formatted with Erlang syntax highlighting
X + 1.
Rebar customizationsA set of escripts can be found under
edown/priv/scripts/, which
can be used to customize the The script will also start the Links to other EDown-generated docsThere is a way to configure Edoc/Edown to get URLs right even when linking to other Edown-generated docs on Github. First, you need to specify paths to the
Note (1) that we use "http:://...", not "https://...", since
Edoc doesn't recognize the latter. Also note that we use URLs
to the raw files. This is for Edoc as it fetches the The next issue is that Edoc uses httpd_client to fetch the
One way to solve this is to use the escripts found under
NOTEEDoc provides a plugin structure, so that one may specify own layout modules, export modules, and doclets. However, there is some overlap esp. between the layout and doclet modules, and several functions are expected to produce files on their own. This causes a problem for EDown, since it cannot handle frames. Instead, it would probably like to create one overview file with different sections. It would have been better to have a framework where some plugin functions identify the different files to be written, and the outline of each, other plugins convert to suitable content representation (e.g. HTML or Markdown), and EDoc then writes the files necessary. For now, EDown focuses on producing reasonable Markdown, rather than complying fully with the plugin framework. That is, the edown_doclet module will not go out of its way to function together with any other layout module than edown_layout, and vice versa. markedocThe sed script bin/markedoc works in the opposite direction and converts
your FreeBSD, Mac OS X Linux Modules
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论