Skip to main content

faculty-sphinx-theme is a Sphinx theme for Faculty projects. It’s based on the Read the Docs theme, but with Faculty branding and an optional navigation bar for use in the Faculty platform docs.

Installation

pip install faculty-sphinx-theme

Usage

Install faculty-sphinx-theme and configure your Sphinx project to use the theme. In your project’s conf.py, add faculty_sphinx_theme to the list of enabled extensions:

extensions = [
    "faculty_sphinx_theme",
    # Plus any other extensions you are using
]

and modify the html_theme setting to:

html_theme = "faculty-sphinx-theme"

Theme options

The theme provides an optional extra navbar with custom links. To enable it, use the navbar settings. You’ll probably also want to set the navbar_root setting which defines the link on the “Faculty logo”:

html_theme_options = {
    "navbar": True,
    "navbar_root": "https://docs.faculty.ai/",
}

To add entries to the navbar, use the navbar_{0,1,2,3,4}_heading settings. It’s expected to be a string with the heading and linked URL separated by a space, for example:

html_theme_options = {
    "navbar": True,
    "navbar_root": "https://docs.faculty.ai/",
    "navbar_0_heading": "Other https://other.faculty.ai/",
    "navbar_1_heading": "More https://more.faculty.ai/",
}

You can also add menu items that appear under navbar entries with the navbar_{0,1,2,3,4}_content settings. They are in the same format as the _heading settings, with comma separation, for example:

html_theme_options = {
    "navbar": True,
    "navbar_root": "https://docs.faculty.ai/",
    "navbar_0_heading": "Other https://other.faculty.ai/",
    "navbar_0_content": "Sub 1 https://other.faculty.ai/one, Sub 2 https://other.faculty.ai/two",
    "navbar_1_heading": "More https://more.faculty.ai/",
}

Metadata

Release files for faculty-sphinx-theme 0.3.0

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

Source distribution (sdist)

Source distribution for faculty-sphinx-theme 0.3.0
File Size Uploaded
faculty-sphinx-theme-0.3.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for faculty-sphinx-theme 0.3.0
File Interpreter ABI Platform
faculty_sphinx_theme-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 32.1 kB

Release files / faculty-sphinx-theme-0.3.0.tar.gz

Download URL faculty-sphinx-theme-0.3.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
96c17e248e3dc74d2ac9342276ef5bf2eaddae4c69d641aa25a94415f4062a35
BLAKE2b-256 checksum
How to use checksums
b2288c95a9b029007bfa7518dcc9e027bcf20ab7919684911f33ddbac82d9c7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Release files / faculty_sphinx_theme-0.3.0-py2.py3-none-any.whl

Download URL faculty_sphinx_theme-0.3.0-py2.py3-none-any.whl
Size 15.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9633e096f73ed57d8e5f99d8102500a70098d967df3095cd6b86c6a9f0c76182
BLAKE2b-256 checksum
How to use checksums
cf4452b693e5332ebb1f889808ed8c9345ae2c712a34c3b28133a4256b8c0252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Release history Release notifications | RSS feed

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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