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
-
In one terminal, build the CSS in watch mode
npm run build:watch
-
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:
-
Clone the
sphinx-theme
repository, and checkout the branch or tag you want to use. -
Run the following command in the
sphinx-theme
directory, to build the CSS for the theme.npm run build
-
Go to
my-docs
directory, and install the Sphinx themepip install -e /path/to/sphinx-theme
-
Set the
html_theme
option in yourconf.py
html_theme = "iati_sphinx_theme"
-
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
Built Distribution
File details
Details for the file iati_sphinx_theme-1.5.1.tar.gz
.
File metadata
- Download URL: iati_sphinx_theme-1.5.1.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba6d203eec741bb9f94ed965d5ffa7dc3bcac474b13b6fde18938ea0f3622999 |
|
MD5 | e5df06ffe03f87a760761d1ee834fc9f |
|
BLAKE2b-256 | 49cbecc1924d78a76c88c4556b66efe5660e225e6ffa13f0edf297976f38ca48 |
File details
Details for the file iati_sphinx_theme-1.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: iati_sphinx_theme-1.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a11c863ee4e7c8f12ca6a00a99a795442582b8dd6ea0a97d257deb5f7063e547 |
|
MD5 | 0029409226f585e2390dc352fc23d5fa |
|
BLAKE2b-256 | d63ddbfbc63150972c543331d0fde9fd5c58095bcc8730690b93162d5c71d466 |