This utility is supposed to generate API documentation from markdown files with versions from a repo's git branches and tags.
Works fine with this Documentation guide for the actors server.
Usage: java -jar doc_builder.jar [options]
Options:
--destination, -d
Path to the destination location
Default: doc_build
--git
Use git and generate as many API versions as many git refs exists
Default: false
--pattern
File name extractor pattern. Read how java Matcher and Pattern works
Default: .*/(.*?)/README\.md
--server
Run server to host static ot not
Default: false
--source, -s
Path to the Features location
Default: Features
--help, --usage, -h
Display the help
Default: false
For example, it'll read the project_path
as a git project,
generates a documentation for each branch and tag of this repo
and puts the doc-site sources to the project_path/docs
.
Do not worry, this utility will not do checkouts on your repository. All operations with the git will use the git DB directly without calls to the git command.
java -jar doc_builder.jar --git --server --source project_path --destination project_path/docs
The utility will look throw all markdown files in the path using the pattern
regexp.
This allows you to setup any flexible project structure.
For example, the default pattern .*/(.*?)/README\.md
works with this project structure:
|-- Project
|-- Features
| |-- pom.xml
| |-- SomeSuperFeature
| | |-- SomeSuperActor
| | |-- pom.xml
| | |-- config.json
| | |-- README.md
| |-- ...