Skip to main content

A Sphinx theme for sites hosted at palewi.re.

Installation

Install the theme with pipenv:

pipenv install palewire-sphinx-theme

Then, in your Sphinx project's conf.py file, add the following line:

html_theme = "palewire"

Configuration

The theme supports two different layouts, a "wide" layout and a "narrow" layout. The wide layout that includes a sidebar is the default. You can switch to the narrow single-column layout by adding the following line to your conf.py file:

html_theme_options = {
    "nosidebar": True,
}

When using the wide layout, configure the sidebar with the theme's page navigation template. It renders links from your site's top-level toctree, not the current page's section headings. Previous and next page links are rendered in the responsive footer navigation on mobile.

html_sidebars = {
    "**": [
        "about.html",
        "navigation.html",
        "searchbox.html",
    ]
}

Do not add localtoc.html or relations.html to this configuration. Further configuration of this setting is explained by the Sphinx documentation.

The theme supports the current Sphinx search form markup. It does not set an upper bound on Sphinx versions.

Quick start

Install the theme, then create a minimal Sphinx configuration:

uv add sphinx-palewire-theme
uvx sphinx-palewire-theme init

The initializer asks for the site metadata and creates conf.py. It enables the palewire extension, which supplies the standard sidebar and canonical URL defaults. Use --layout narrow for a single-column site or --navigation minimal to hide the sidebar.

For an existing configuration, add these settings:

extensions = ["palewire"]

html_theme = "palewire"
html_baseurl = "https://palewi.re/docs/my-site/"
palewire_layout = "wide"
palewire_navigation = "sidebar"

Development

Install the locked development tools and run the same checks used in CI:

uv sync --all-groups
uv run pre-commit run --all-files
uv run python -m unittest discover -s tests
uv run sphinx-build -W -b html docs docs/_build/html
uv run sphinx-build -W -b linkcheck docs docs/_build/linkcheck

Download files

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

Source Distribution

sphinx_palewire_theme-0.1.10.tar.gz (106.0 kB view details)

Uploaded Source

Built Distribution

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

sphinx_palewire_theme-0.1.10-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_palewire_theme-0.1.10.tar.gz.

File metadata

  • Download URL: sphinx_palewire_theme-0.1.10.tar.gz
  • Upload date:
  • Size: 106.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for sphinx_palewire_theme-0.1.10.tar.gz
Algorithm Hash digest
SHA256 415712185cae43328ccd9fbc40ad2d84643d91900a241a5f93b62ea3cb19baac
MD5 f238b57a9884ca38941fbd987ab19f98
BLAKE2b-256 223fc5d5357ce93abcb9b066a648f596ee028c4a44d05debe192b331e75c68a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_palewire_theme-0.1.10.tar.gz:

Publisher: continuous-deployment.yaml on palewire/sphinx-palewire-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_palewire_theme-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_palewire_theme-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a16f04c17d55f210ee02d80db55c56372de766797a47fcf7b1a7ff23b3c411e0
MD5 a8a5edad310b287b750a7ff19e108b26
BLAKE2b-256 f35b336a782387ceed979bb99b76aeefbd856a59750b7fcad22fdff66f638004

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_palewire_theme-0.1.10-py3-none-any.whl:

Publisher: continuous-deployment.yaml on palewire/sphinx-palewire-theme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.0.18

1 file

0.0.17

1 file

0.0.16

1 file

0.0.15

1 file

0.0.14

1 file

0.0.13

1 file

0.0.12

1 file

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

1 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