Skip to main content

Bootstrap-based Sphinx theme from the napari community

Project description

napari-sphinx-theme

Code style: Ruff

A Sphinx theme with the look and feel of napari based on the awesome pydata-sphinx-theme.

Description

Since the napari-sphinx-theme extends the pydata-sphinx-theme, the configurations and affordances provided by the PyData Sphinx Theme can be used within the napari docs.

Installation

After creating a virtual environment, install the theme in editable mode:

python -m pip install -e .

Theme development

Configuration options

Modify options in theme.conf to customize the pydata-sphinx-theme for napari.

Styling (CSS)

Styling settings and napari's custom CSS is found in the static/css/napari-sphinx-theme.css file.

The styling of code snippets is configured in napari_sphinx_theme/napari_code_theme.py.

Templates (HTML)

To modify page layouts, modify the html template files in the napari_sphinx_theme and napari_sphinx_theme/partials directories.

Build and test

To build the demo site found in this repo, run:

cd docs/
make html

Use the demo site to manually test changes to styles and page layouts.

The napari website

The napari website is built using the napari docs repo. The styling of the website is based on this theme. Install this theme as a dependency in the napari docs repo.

To modify the website's styling, minor changes to CSS can be made in the docs repo. More significant changes, such as those that may impact the entire website and docs, should be made here.

Project details


Download files

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

Source Distribution

napari_sphinx_theme-1.0.1.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

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

napari_sphinx_theme-1.0.1-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file napari_sphinx_theme-1.0.1.tar.gz.

File metadata

  • Download URL: napari_sphinx_theme-1.0.1.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for napari_sphinx_theme-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f38e708b067546a358cb203692f7b33d7ecf08d126f8c690161e283bfb92bc9e
MD5 33768fab7f60d7fc3c4d3b1f739329bc
BLAKE2b-256 2dea626515dd2487030ae05efae84d52d96eff39b94c93e07f91c9f6fca8ac6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_sphinx_theme-1.0.1.tar.gz:

Publisher: deploy.yml on napari/napari-sphinx-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 napari_sphinx_theme-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_sphinx_theme-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 660ec383dccc20ba67cd0f17c19d544b2e3bdf81474316d02c5332ff2c7595e4
MD5 8964b3aacffb324379b0d98323b35ee3
BLAKE2b-256 d2e6d404c696588bec34f00f81101cb1502c5ddb976dc1cd6201708a6ecc4629

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_sphinx_theme-1.0.1-py3-none-any.whl:

Publisher: deploy.yml on napari/napari-sphinx-theme

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page