You can build and serve the documentation locally by following these steps:
We recommended using a virtual environment for your project to keep your packages contained. See venv.
1.5.23
or higher.From the project root directory, install the necessary Python packages:
To build the documentation locally, run the following command from the project root directory:
Optionally, you can pass the --force
flag to clean up all temporary files and generate the documentation from scratch:
Once the build is complete, please run the following command to serve the docs:
This 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.
Ctrl+Shift+P
(or Cmd+Shift+P
on Mac) and select Dev 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:
Build the documentation:
Serve the documentation:
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:
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:
When 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.
To maintain code quality and consistency, we use pre-commit hooks that automatically run checks like linting, formatting, and other validations before each commit. It’s important to have these properly set up in your development environment before you start committing changes.
If you skip this setup, your pull request’s CI checks may fail, and you’ll need to fix issues and update your PR later — so it’s highly recommended to get everything configured upfront.
For more information on setting up the development environment, refer to this page.
From the project root, run the following command to install the development dependencies and set up the pre-commit hooks:
This ensures that every time you run git commit, a series of checks will automatically be executed.
You can build and serve the documentation locally by following these steps:
We recommended using a virtual environment for your project to keep your packages contained. See venv.
1.5.23
or higher.From the project root directory, install the necessary Python packages:
To build the documentation locally, run the following command from the project root directory:
Optionally, you can pass the --force
flag to clean up all temporary files and generate the documentation from scratch:
Once the build is complete, please run the following command to serve the docs:
This 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.
Ctrl+Shift+P
(or Cmd+Shift+P
on Mac) and select Dev 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:
Build the documentation:
Serve the documentation:
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:
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:
When 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.
To maintain code quality and consistency, we use pre-commit hooks that automatically run checks like linting, formatting, and other validations before each commit. It’s important to have these properly set up in your development environment before you start committing changes.
If you skip this setup, your pull request’s CI checks may fail, and you’ll need to fix issues and update your PR later — so it’s highly recommended to get everything configured upfront.
For more information on setting up the development environment, refer to this page.
From the project root, run the following command to install the development dependencies and set up the pre-commit hooks:
This ensures that every time you run git commit, a series of checks will automatically be executed.