Skip to main content

PdJ Sphinx Theme

This theme is a theme for sphinx documentation based on the read the docs theme.

It supports light and dark modes first using prefers-color-scheme with an option to change the mode. If changed the decision will be remembered.

To install it, use pip:

$ pip install sphinx_pdj_theme

To enable it in your project documentation, set the following in your conf.py file.

import sphinx_pdj_theme
html_theme = 'sphinx_pdj_theme'
htm_theme_path = [sphinx_pdj_theme.get_html_theme_path()]

Logo and favicon

To change the logo and the favicon use the following options:

html_logo = 'path/to/logo.svg'
html_favicon = 'path/to/favicon.ico'

To set the logo's width and height use the logo_width and logo_height theme options

html_theme_options = {
    'logo_width': '200px',
    'logo_height': '150px',
}

Other options

To hide the search bar set the search option to hide

html_theme_options = {
	'search': 'hide'
}

To hide the name of the project above the search bar set the home_link option to hide

html_theme_options = {
	'home_link': 'hide'
}

To include a navigation to the homepage in the sidebar, set the home_menu_item option to show

html_theme_options = {
	'home_menu_item': 'show'
}

By default the label of the navigation item will be the project name. To change it set the home_menu_item_label option:

html_theme_options = {
	'home_menu_item': 'show',
	'home_menu_item_label': 'Home',
}




Screenshots
-----------
![defaulf](https://raw.githubusercontent.com/jucacrispim/sphinx_pdj_theme/master/default.jpg)
![darker](https://raw.githubusercontent.com/jucacrispim/sphinx_pdj_theme/master/darker.jpg)

Metadata

Release files for sphinx-pdj-theme 0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-pdj-theme 0.7.3
File Size Uploaded
sphinx_pdj_theme-0.7.3.tar.gz 242.4 kB Details

Release files / sphinx_pdj_theme-0.7.3.tar.gz

Download URL sphinx_pdj_theme-0.7.3.tar.gz
Size 242.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bfdf95ac5b4b3d5b31ddcfd448843695bde756bbde9a7ff5ba18d8fe4b770987
BLAKE2b-256 checksum
How to use checksums
986979c382385be319c37c677e3493fd596635b185f608b7d58f25ed41890c06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.7.3 This release

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page