Skip to main content

Furo child theme for git-pull project documentation

Project description

sphinx-gp-theme

Furo child theme for git-pull project documentation.

Inherits from Furo and bundles shared templates, custom CSS (heading refinements, TOC, typography, view transitions), SPA navigation JS, and the git-pull project sidebar.

Install

$ pip install sphinx-gp-theme

Usage

In your docs/conf.py:

html_theme = "sphinx-gp-theme"

Or use with gp-sphinx which sets the theme automatically.

JavaScript events

The bundled SPA-navigation layer dispatches the following CustomEvents on document:

Event When event.detail
gp-sphinx:navigated After an SPA page swap completes — the new .article-container / .sidebar-tree / .toc-drawer are in the DOM and the built-in reinit (copybutton, scroll-spy, theme toggle) has run. { url: string } — the new page URL.

Widgets that bind event listeners to DOM inside .article-container should listen for gp-sphinx:navigated in addition to DOMContentLoaded, because that region is replaced in-place on every link click and old listeners are destroyed along with it. Listeners on document or window (including those added inside the handler) persist across swaps.

Minimal pattern:

function init() {
  document.querySelectorAll(".my-widget").forEach(/* ... */);
}
document.addEventListener("DOMContentLoaded", init);
document.addEventListener("gp-sphinx:navigated", init);

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

sphinx_gp_theme-0.0.1a12.tar.gz (16.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_gp_theme-0.0.1a12-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_gp_theme-0.0.1a12.tar.gz.

File metadata

  • Download URL: sphinx_gp_theme-0.0.1a12.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sphinx_gp_theme-0.0.1a12.tar.gz
Algorithm Hash digest
SHA256 d4ca88af980b6daebf5caaa3ead24b4e213ba542ab304db6ecc20adc41fa12d9
MD5 58dda5e791d212c109badad94a772d0b
BLAKE2b-256 dd1818b891bf4219078c95ff2f3f48fa2dd28e446de80b40c8143736e8d40ea5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_gp_theme-0.0.1a12.tar.gz:

Publisher: release.yml on git-pull/gp-sphinx

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_gp_theme-0.0.1a12-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_gp_theme-0.0.1a12-py3-none-any.whl
Algorithm Hash digest
SHA256 affd42c3299e4f57ca33e42804b19b45cf4148e9f16b6062f900d6f0563516a3
MD5 eb5b3f1cdeacdce28d88718756d3618c
BLAKE2b-256 84e4951f3b5dcddd0addcd8ccf25f2634bb6f039864024b9b851ed3671cdd076

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_gp_theme-0.0.1a12-py3-none-any.whl:

Publisher: release.yml on git-pull/gp-sphinx

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