The following sections describe how to set up and build the NeMo Automodel documentation.
Switch to the documentation source folder and generate HTML output.
cd docs/
uv run sphinx-build . _build/html- The resulting HTML files are generated in a
_build/htmlfolder that is created under the projectdocs/folder. - The generated python API docs are placed in
apidocsunder thedocs/folder.
When writing documentation, it can be helpful to serve the documentation and have it update live while you edit.
To do so, run:
cd docs/
uv run sphinx-autobuild . _build/html --port 12345 --host 0.0.0.0Open a web browser and go to http://0.0.0.0:12345 to view the output.
The three files below control the version switcher. Before you attempt to publish a new version of the documentation, update these files to match the latest version numbers.
- docs/versions1.json
- docs/project.json
- docs/conf.py