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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_gp_theme-0.0.1a14.tar.gz.
File metadata
- Download URL: sphinx_gp_theme-0.0.1a14.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed85eb3a7b116c470caeb928bd9c16f6b68147bf7993868e74418b7889adcc72
|
|
| MD5 |
ff05605f35ee2e117490932e3930971c
|
|
| BLAKE2b-256 |
d5efe0db0d10a8ef09d5d7ed60f20fe8cc5f3865f74794a19d23a90f7d913b1f
|
Provenance
The following attestation bundles were made for sphinx_gp_theme-0.0.1a14.tar.gz:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_gp_theme-0.0.1a14.tar.gz -
Subject digest:
ed85eb3a7b116c470caeb928bd9c16f6b68147bf7993868e74418b7889adcc72 - Sigstore transparency entry: 1429111009
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@ebbf4dfa3bce83da2b878c9cfacea52e1e7e1df4 -
Branch / Tag:
refs/tags/v0.0.1a14 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ebbf4dfa3bce83da2b878c9cfacea52e1e7e1df4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_gp_theme-0.0.1a14-py3-none-any.whl.
File metadata
- Download URL: sphinx_gp_theme-0.0.1a14-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9211e1f54b20749b1e9af833ec1a90db7e0c79dd01dee0ba3a0f7a13d1e2677
|
|
| MD5 |
1ca66b5ba0b671039ea3482d828a3d30
|
|
| BLAKE2b-256 |
602b0450a61c66c30725a66632e55d9b191b1343a1ccc756ebb156bf1cb17221
|
Provenance
The following attestation bundles were made for sphinx_gp_theme-0.0.1a14-py3-none-any.whl:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_gp_theme-0.0.1a14-py3-none-any.whl -
Subject digest:
a9211e1f54b20749b1e9af833ec1a90db7e0c79dd01dee0ba3a0f7a13d1e2677 - Sigstore transparency entry: 1429111060
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@ebbf4dfa3bce83da2b878c9cfacea52e1e7e1df4 -
Branch / Tag:
refs/tags/v0.0.1a14 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ebbf4dfa3bce83da2b878c9cfacea52e1e7e1df4 -
Trigger Event:
push
-
Statement type: