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.9.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.9-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_palewire_theme-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 b86d139d75f24892d193ad8c15e18e035be53cce7fcba5c8de0dc5594c78f874
MD5 9301e4a022dcc74dfc5eb4bae1ea81ad
BLAKE2b-256 4103bcb67785f50a782e938cfa9303dc2923e475b75d0f96f5a893120e5dce5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_palewire_theme-0.1.9.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.9-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_palewire_theme-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 301dc88e62a2d0ca6757f48521e3207c24fe999defbbd9be0dcab9f768ffba6b
MD5 ef8267e03d33f63b24d4f3fd978e4fa0
BLAKE2b-256 2fd89184373e247a8e43f111c80b1197537b6006438d0967fa8379401a48604c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_palewire_theme-0.1.9-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

0.1.10

2 files

This release

0.1.9 This release

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