MkDocs templates and guidance
For MkDocs, the mkdocs.yml file controls most aspects of the documentation build, style, table of contents, and plug-in functionality. The minimal files under customization/ are needed to meet GF requirements and should not require frequent updates. Avoid adding any other CSS or JavaScript customization as it makes the doc build fragile and difficult to maintain consistency.
Use the MkDocs template provided in this repository. For more information, see the MkDocs documentation.
Doc builds and previews
You should build or preview the documentation locally before submitting documentation changes.
Install required packages
- Install MkDocs and associated packages:
pip install -r docs/requirements.txt
Preview the docs in a browser
Run a local server with:
mkdocs serve --watch .The
watchoption will rebuild on changes outside the docs/ folder, such as docstring changes.Open a browser window at http://127.0.0.1:8000/
. This will rebuild to reflect changes each time a source file is updated and saved.
Build the docs
Build the documents:
mkdocs buildThe built documents will be in
site/.