Install the theme

Install the Awesome Theme as a Python package, copy it into a local directory, or install a full development environment.

Install the theme from a local directory

If you want to customize the theme, you can clone the repository and install the cloned version as a local Python package.

  1. Create a local copy of the repository.

  2. Install the local copy of the theme in your project:

    pip install --editable /path/to/sphinxawesome_theme

    Replace /path/to/sphinxawesome_theme with the path to your local copy of the theme (the directory with the pyproject.toml file). The --editable option installs the package in editable, or development, mode.

Set up a development environment

The project has both Python and JavaScript dependencies. If you want to write documentation or modify the Python extensions, install the Python dependencies.

If you want to edit the Jinja2 templates, the CSS, or the JavaScript files, you also need to install the JavaScript dependencies.


Because this theme uses Tailwind CSS to apply styles, you need to build the theme when you make modifications to the styles. It’s best to install the JavaScript dependencies, even if you just want to edit the HTML templates.

Create a local copy of the repository

  1. Optional: fork the repository.

    If you don’t want to merge your changes with the original repository, you can skip this step.

  2. Clone the repository:

    • If you forked the repository, run:

      git clone

      Replace GITHUB_USERNAME with your GitHub username.

    • If you didn’t fork the repository, clone the original repository:

      git clone

Install Python dependencies

The Awesome Theme uses these Python tools:

  • Poetry to manage the Python dependencies and building the package

  • Nox to test and lint the Python code, and to build the docs

  • Pipx to install Python applications in isolated environments and making them available globally


The commands shown in this section install the latest versions of Nox and Poetry. See the file constraints.txt for the version numbers of Nox and Poetry used for building the Awesome Theme Python package.

Follow these steps to install the Python dependencies:

  1. Create a local copy of the repository

  2. Install pipx:

    pip install --user pipx
  3. Install Poetry:

    pipx install poetry
  4. Install Nox:

    pipx install nox
  5. Install nox-poetry:

    pipx inject nox nox-poetry

    Nox-poetry is a package for using Poetry and Nox together. The nox-poetry package must be installed in the same environment as Nox.

  6. Install the Python dependencies:

    poetry install
  7. Optional: install and test the pre-commit hooks:

    poetry run pre-commit install

    If you don’t plan on committing any changes to the repository, you can skip this step. You can see the active pre-commit hooks in the file .pre-commit-config.yaml.

    To test pre-commit with Poetry, run:

    poetry run pre-commit run --all
  8. Test your Nox environment.

    You can run any Nox session to confirm that the environment is working. To list the available sessions, run:

    nox --list-sessions

    For example, run all default sessions:


Using the same versions of the Python packages

The commands in the preceding section install the latest versions of Poetry, Nox, and pipx. If you want to constrain the versions to install, you can use pip’s constraint file.

For example, to install a specific version of pipx, run:

pip install --user --constraint=constraints.txt pipx

For example, to install a specific version of Nox with pipx, run:

pipx --pip-args=--constraint=constraints.txt nox

See the file constraints.txt for the version constraints used in the Awesome Theme repository.


In development environments, you might use the latest versions of packages, while for reproducible results in continuous integration (CI) pipelines, it’s often better to install specific versions of packages.

Install JavaScript dependencies

  1. Confirm that Node.js is installed:

    $ node --version

    If the preceding command fails, make sure that you installed Node.js. If you installed Node.js, make sure that the path to the node executable is in your PATH environment variable.


    For installing and managing Node.js versions, see these projects:

  2. Optional: install yarn:

    npm install --global yarn

    If you want to use the same versions of JavaScript packages as in the Awesome Theme repository, use the Yarn package manager.

  3. Create a local copy of the repository

  4. Go to the theme-src/ directory:

    ├── src/
    │   ├── sphinxawesome_theme/
    │   └── theme-src/
    ├── docs/
    ├── tests/
    └── ...
  5. Install the JavaScript dependencies:

    yarn install
  6. Build the theme:

    yarn build