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.8.tar.gz (105.2 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.8-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_palewire_theme-0.1.8.tar.gz
  • Upload date:
  • Size: 105.2 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.8.tar.gz
Algorithm Hash digest
SHA256 df57b99ec05aa59a395e165cc5b8d125146634fc5ce50a371cd5783f2a4049b3
MD5 6ca1b0d6d8548425748c5e73a8dc3807
BLAKE2b-256 27414fc699b592f8c1e4b3fdf5fc48a5c29a615d7910d45f8f5340cc2924178d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinx_palewire_theme-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f6174a1b556484357169f46ef1fdd2b4ae10e39743d37a0b871db6545f7bb832
MD5 17794fd3337203a7f9b30e45a7ac4991
BLAKE2b-256 ef2615c8bd26934642572f3a8a3d1e61a8bd8f344f812c062bf5606f5841550d

See more details on using hashes here.

Provenance

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

0.1.9

2 files

This release

0.1.8 This release

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