Skip to main content

A sphinx theme for IATI documentation sites.

Project description

IATI Sphinx Theme

How do I use IATI Sphinx Theme?

Please see the IATI Sphinx Theme Documentation for usage instructions.

How do I contribute to IATI Sphinx Theme?

Install dependencies

pip install -r requirements_dev.txt

Update dependencies

python -m piptools compile --extra=dev -o requirements_dev.txt pyproject.toml
pip install -r requirements_dev.txt

Run linting

black iati_sphinx_theme/
isort iati_sphinx_theme/
flake8 iati_sphinx_theme/
mypy iati_sphinx_theme/

Documentation with live preview

  1. In one terminal, build the CSS in watch mode

    npm run build:watch
    
  2. In a separate terminal, install the Sphinx theme then start the docs development server:

    pip install -e .
    sphinx-autobuild -a docs docs/_build/html --watch iati_sphinx_theme/
    

Testing a local version of the theme against another project

To run a local version of the theme with another project, e.g. my-docs, take the following steps:

  1. Clone the sphinx-theme repository, and checkout the branch or tag you want to use.

  2. Run the following command in the sphinx-theme directory, to build the CSS for the theme.

    npm run build
    
  3. Go to my-docs directory, and install the Sphinx theme

    pip install -e /path/to/sphinx-theme
    
  4. Set the html_theme option in your conf.py

    html_theme = "iati_sphinx_theme"
    
  5. Start the docs development server:

    pip install sphinx-autobuild
    sphinx-autobuild docs docs/_build/html
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iati_sphinx_theme-1.6.0.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

iati_sphinx_theme-1.6.0-py2.py3-none-any.whl (25.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file iati_sphinx_theme-1.6.0.tar.gz.

File metadata

  • Download URL: iati_sphinx_theme-1.6.0.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for iati_sphinx_theme-1.6.0.tar.gz
Algorithm Hash digest
SHA256 d97d9cf53f6cffc67c5022cfa3cb98a72883d61829909bf766aafe7d4683ef30
MD5 2b382b57585b83a6292d93a3c319e67b
BLAKE2b-256 7a264f8939915d54637645e590f3212329d9c30c7e0024fdb54553720269f7a8

See more details on using hashes here.

File details

Details for the file iati_sphinx_theme-1.6.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for iati_sphinx_theme-1.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4949adb8f395045ca96e08cd489af5be1d1316f641c511cd0f08b58599a2fce5
MD5 ac52d2f0b217a7d1071ae299ad87fc6a
BLAKE2b-256 5f6b381eee62b1cd7b15f2eac86003263a6fdefce7722ce6684941db507aed58

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page