| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Documentation generator for D with Markdown support, based on harbored.
Harbored-mod supports both DDoc and Markdown in documentation comments, but DDoc takes precedence. This means that there are slight differences from standard Markdown.
using git
using DUB only
At this point you should have a binary called hmod in the bin directory.
Modify your PATH to point to the bin directory or copy the binary into your project.
From your project's directory, run hmod. This assumes your source code is in the ./source subdirectory (as is often the case with dub projects) and that the hmod binary is in PATH, prepend with ./ if it's in the project directory).:
hmod source
This will write generate documentation to the ./doc subdirectory. See ./doc/index.html. Note that the main page will be blank, although you should see a list of all modules on the left.
To further tweak the documentation, generate the default configuration file:
--- will not generate a horizontal line, as it is used for DDoc blocks. Use - - - instead. This is still standard Markdown.
emphasis can be denoted by *, but not by _ (this would break snake_case names).
This does not work (again because DDoc uses --- to mark code blocks):
Instead, use either (standard Markdown):
## Subheading
Or (non-standard):
Subheading **********
| Directory | Contents |
|---|---|
| ./ | This README, Makefile, license. |
| ./bin | Harbored-mod binaries when compiled. |
| ./src | Source code. |
| ./strings | Files compiled into Harbored-mod to be used in generated documentation (e.g. the default CSS style). |
Harbored-mod is based on harbored by Brian Schott, with modifications by Ferdinand Majerech aka Kiith-Sa, maintained by the dlang-community.
| Back | FazBrowse Home | New Git URL |