This website is built using Material for MkDocs, a modern website generator.
You can build and serve the documentation locally by following these steps:
- Install Quarto:
- Visit the Quarto download page.
- Navigate to the Pre-release tab and download the latest version
- Ensure you install version
1.5.23or higher.
From the project root directory, install the necessary Python packages:
pip install -e ".[docs]"To build the documentation locally, run the following command from the project root directory:
./scripts/docs_build_mkdocs.shOptionally, you can pass the --force flag to clean up all temporary files and generate the documentation from scratch:
./scripts/docs_build_mkdocs.sh --forceOnce the build is complete, please run the following command to serve the docs:
./scripts/docs_serve_mkdocs.shThis will spin up a server at port 8000, which you can access by visiting http://localhost:8000 in your browser.
If you prefer to use a containerized development environment, you can build and test the documentation using Dev Containers.
- Install VSCode if you haven't already.
- Open the project in VSCode.
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) and selectDev Containers: Reopen in Container.
This will open the project in a Dev Container with all the required dependencies pre-installed.
Once your project is open in the Dev Container:
-
Open a terminal in VSCode and install the project with docs dependencies:
pip install -e ".[docs]" -
Build the documentation:
./scripts/docs_build_mkdocs.sh -
Serve the documentation:
./scripts/docs_serve_mkdocs.sh
The documentation will be accessible at http://localhost:8000 in your browser.
For any changes to be reflected in the documentation, you will need to:
- Stop the running server
- Run the build command again
- Start the server again
When switching branches or making major changes to the documentation structure, you might occasionally notice deleted files still appearing or changes not showing up properly. This happens due to cached build files. In such cases, running the commands with the --force flag will clear the cache and rebuild everything from scratch:
./scripts/docs_build_mkdocs.sh --force
./scripts/docs_serve_mkdocs.shWhen you want to add a new Jupyter notebook and have it rendered in the documentation, you need to follow specific guidelines to ensure proper integration with the website.
Please refer to this guideline for more details.