A custom Sphinx extension to apply TU Delft styling to a TeachBook
Project description
Sphinx extension: TU Delft theme
Introduction
The default theme in JupyterBooks is usually not desired and need to be changed by adding custom stylesheets. The Sphinx-TUDelft-theme extension provides a simple solution to have a uniform theme across all the TeachBooks that is specific to TU Delft image.
What does it do?
//TODO: describe various styles for admonitions, after finishing the css stylesheet.
Installation
To install the Sphinx-Image-Inverter, follow these steps:
Step 1: Install the Package
Install the sphinx-tudelft-theme
package using pip
:
pip install sphinx-tudelft-theme
Step 2: Add to requirements.txt
Make sure that the package is included in your project's requirements.txt
to track the dependency:
sphinx-tudelft-theme
Step 3: Enable in _config.yml
In your _config.yml
file, add the extension to the list of Sphinx extra extensions (important: underscore, not dash this time):
sphinx:
extra_extensions:
- sphinx_tudelft_theme
Usage
By following the steps above, the theme will be applied automatically. To see the examples of usage visit the TeachBooks manual.
Contribute
This tool's repository is stored on GitHub. The README.md
of the branch Manual
is also part of the TeachBooks manual as a submodule. If you'd like to contribute, you can create a fork and open a pull request on the GitHub repository. To update the README.md
shown in the TeachBooks manual, create a fork and open a merge request for the GitHub repository of the manual. If you intent to clone the manual including its submodules, clone using: git clone --recurse-submodulesgit@github.com:TeachBooks/manual.git
.
Project details
Release history Release notifications | RSS feed
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 sphinx_tudelft_theme-0.0.6.tar.gz
.
File metadata
- Download URL: sphinx_tudelft_theme-0.0.6.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f831e0611b2d4cea36f1eaadebda766a346186337b3badd45d0bc16c9459291 |
|
MD5 | 4c1ff14c77dae40baea5f0c88331cde8 |
|
BLAKE2b-256 | 83f46b7a754f1adb53b630c4b639c87186d544488df7e575d849221fdc38e1b9 |
Provenance
The following attestation bundles were made for sphinx_tudelft_theme-0.0.6.tar.gz
:
Publisher:
python-publish.yml
on TeachBooks/Sphinx-TUDelft-theme
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sphinx_tudelft_theme-0.0.6.tar.gz
- Subject digest:
0f831e0611b2d4cea36f1eaadebda766a346186337b3badd45d0bc16c9459291
- Sigstore transparency entry: 149361650
- Sigstore integration time:
- Predicate type:
File details
Details for the file sphinx_tudelft_theme-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: sphinx_tudelft_theme-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a6b446b37595ed642ce7e6be13ee76f4021d87012ca0afdae608e506efe76d |
|
MD5 | 8785aaded9841375a51fa93343bf1842 |
|
BLAKE2b-256 | c60d337d7e4153b7628b88b932ed57acbbbacd1f89dbdfb1d8e2b64c81dce878 |
Provenance
The following attestation bundles were made for sphinx_tudelft_theme-0.0.6-py3-none-any.whl
:
Publisher:
python-publish.yml
on TeachBooks/Sphinx-TUDelft-theme
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sphinx_tudelft_theme-0.0.6-py3-none-any.whl
- Subject digest:
91a6b446b37595ed642ce7e6be13ee76f4021d87012ca0afdae608e506efe76d
- Sigstore transparency entry: 149361651
- Sigstore integration time:
- Predicate type: