The docgen
command generates documentation for your WDL file(s) based on a template. The default template generates markdown files that are compatible with sites like GitHub and ReadTheDocs.
Usage: wdlTools docgen [OPTIONS] <path|uri>
Generate documentation from a WDL file and all its dependencies
Options:
-f, --follow-imports (Default) format imported files in addition to the
main file
--nofollow-imports only format the main file
-l, --local-dir <arg>... directory in which to search for imports; ignored
if --nofollow-imports is specified
-O, --output-dir <arg> Directory in which to output documentation
-o, --overwrite Overwrite existing files
--nooverwrite (Default) Do not overwrite existing files
-t, --title <arg> Title for generated documentation
-h, --help Show help message
trailing arguments:
url (required) path or URL (file:// or http(s)://) to the main WDL file
You can very easily generate and preview your documentation using mkDocs.
- Generate your documentation into the
docs
folder:$ java -jar wdlTools.jar docgen -O docs --overwrite my.wdl
- Install mkDocs, for example
$ pip install mkdocs
- In the same directory that contains the
docs
folder, add amkdocs.yml
file:# mkdocs.yml site_name: simple theme: name: mkdocs nav: - Home: index.md markdown_extensions: - toc: permalink:
- Run
mkdocs serve
- Browse to
http://127.0.0.1:8000/