Develop this theme#
Theme build system#
This theme uses the sphinx-theme-builder tool, which is a helper tool for automatically compiling Sphinx theme assets.
This will download a local copy of NodeJS and build the theme’s assets with the environment specified in package.json.
Theme structure#
This theme follows the sphinx-theme-builder filesystem layout.
Build the theme locally#
You can build the documentation for this theme to preview it.
The easiest way to build the documentation in this repository is to use the nox automation tool, a tool for quickly building environments and running commands within them.
This ensures that your environment has all the dependencies needed to build the documentation.
To do so, follow these steps:
Install
nox$ pip install nox
Build the documentation:
$ nox -s docs
This should create a local environment in a .nox folder, build the documentation (as specified in the noxfile.py configuration), and the output will be in docs/_build/html.
To build live documentation that updates when you update local files, run the following command:
$ nox -s docs-live