Skip to main content

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 books created at Delft University of Technology that matches the TU Delft identity.

What does it do?

This extension applies styling changes, e.g. using specific fonts, and adding particular colours for admonitions. You can see how the TU Delft theme looks like applied in this example book.

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


Download files

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

Source Distribution

sphinx_tudelft_theme-0.0.10.tar.gz (101.5 kB view details)

Uploaded Source

Built Distribution

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

sphinx_tudelft_theme-0.0.10-py3-none-any.whl (98.3 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_tudelft_theme-0.0.10.tar.gz.

File metadata

  • Download URL: sphinx_tudelft_theme-0.0.10.tar.gz
  • Upload date:
  • Size: 101.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sphinx_tudelft_theme-0.0.10.tar.gz
Algorithm Hash digest
SHA256 a2d215938ad6370ae8d5d2010bb189bc9d6bfbd1019c079eeb40c5124ccd32d2
MD5 067892bc410e17ec868cea8e792a2ae2
BLAKE2b-256 ef2bc16b464cb13f72837f647b112f64885d68d7c716de57350e1ed1e005cb8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_tudelft_theme-0.0.10.tar.gz:

Publisher: python-publish.yml on TeachBooks/Sphinx-TUDelft-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 sphinx_tudelft_theme-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_tudelft_theme-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 579f98cdf6d64a03f1498006615732ac79f387a8bfe7b092cd40eb4a9c9c4cce
MD5 55b8b5ce86be61ac5db935462a063686
BLAKE2b-256 3407df3312663bb3f030e1f800d569fdbba0fe312530d57a050696889f8b7667

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_tudelft_theme-0.0.10-py3-none-any.whl:

Publisher: python-publish.yml on TeachBooks/Sphinx-TUDelft-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