Skip to main content

A sphinx theme for IATI documentation sites.

Project description

IATI Sphinx Theme

How do I use IATI Sphinx Theme?

See the IATI Sphinx Theme Documentation for usage instructions.

If you are creating or editing an IATI documentation site, see the IATI Docs Base for relevant information.

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/ docs/
isort iati_sphinx_theme/ docs/
flake8 iati_sphinx_theme/ docs/
mypy iati_sphinx_theme/ docs/

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
    

Translation

The Sphinx theme itself contains both built-in strings that cannot be changed and strings that can be configured by the user via conf.py. To translate these, see the sphinx-theme documentation

For instructions on translating an IATI documentation site that uses this theme, see the iati-docs-base.

Release process

To publish a new version, raise a PR to main, updating the version in pyproject.toml. Once merged, create a git tag and GitHub release for the new version, with naming vX.Y.Z. This will trigger the package to be published to PyPI.

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-3.1.1.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iati_sphinx_theme-3.1.1-py2.py3-none-any.whl (32.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: iati_sphinx_theme-3.1.1.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iati_sphinx_theme-3.1.1.tar.gz
Algorithm Hash digest
SHA256 8ea3e7bf24eed7f1ddd678062da6276dfb36df4231f23ce0ad1d5a1ec88bca09
MD5 85d370af24d2ebbec3195b1b82f8627f
BLAKE2b-256 f09ac583da56314495939dde1a6d8709b35e02320b92138c0fdd303c08d4bd57

See more details on using hashes here.

Provenance

The following attestation bundles were made for iati_sphinx_theme-3.1.1.tar.gz:

Publisher: publish.yml on IATI/sphinx-theme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for iati_sphinx_theme-3.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ea9fb621257512be124597d73796117389814c68aa0e94b4daa852f467583a7e
MD5 0fc042bfe6579dbe6cdfcf88d99fe8a5
BLAKE2b-256 af2fb84ae414fca14ab83eae5000e4930869344f53b0229b77a16aca1b0a7091

See more details on using hashes here.

Provenance

The following attestation bundles were made for iati_sphinx_theme-3.1.1-py2.py3-none-any.whl:

Publisher: publish.yml on IATI/sphinx-theme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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