Documentation Generation
ADORe provides tools to generate all of the documentation detailed in the documentation readme.
Usage: Documentation Generation
- cd to the adore documentation directory:
bash cd adore/documentation
- Call the build target:
bash make build
Usage: Serving local copy
You can build and serve the documentation locally by running the provide make
serve
target. Navigate to the documentation directory and run the following:
cd adore/documentation
make serve
Once built the documents will be available at http://localhost 🔗
ℹ️INFO: This will build and serve the documentation locally using a docker nginx image
Usage: Spell Checking
The documentation system uses aspell to "lint" the markdown files To do an interactive spell checking session use the provided make target:
make spellcheck
To non-interactively lint/spellcheck all markdown documents run:
make lint
The spell checker (aspell) and lint targets use a custom dictionary: .aspell.en.pws
Words can be added to the dictionary to provide exceptions by directly editing this file or by running an interactive spell checking session as explained previously.
Usage: Publication (to gh-pages)
Steps to publish documentation to gh-pages:
-
Fork the ADORe repo to your personal GitHub
-
Clone the repo locally
-
Modify the
publish.env
file to specify an originating branchℹ️INFO: You do not need to check out the branch you wish the documentation originate from. The source branch of the gh-pages/documentation is defined in
publish.env
-
Run the publication Make target:
make publish
This will push a branch called gh-pages
containing only a docs
folder
to the origin
remote
-
Configure GitHub to use the branch as a "GitHub Pages" You have to enable
gh-pages
on thedocs
directory in order for the publication to be active. Visithttps://github.com/<username/orginization>/adore/settings/pages
to configure gh-pages. -
Optionally, create a pull/merge request to make this documentation active on the primary ADORe repo. Make sure to lint the markdown with
make lint
before submitting a pull/merge request.