sphinx-gptheme¶
Furo child theme for git-pull documentation sites. It keeps Furo’s responsive layout and dark mode, then layers in shared sidebars, typography, source-link controls, metadata toggles, and SPA-style navigation.
$ pip install sphinx-gptheme
Downstream conf.py¶
extensions = ["sphinx_gptheme"]
html_theme = "sphinx-gptheme"
html_theme_options = {
"project_name": "my-project",
"project_description": "Shared docs for my project.",
"light_logo": "img/logo-light.svg",
"dark_logo": "img/logo-dark.svg",
"source_repository": "https://github.com/your-org/my-project/",
"source_branch": "main",
"source_directory": "docs/",
}
Live theme notes¶
This site is rendered with
sphinx-gptheme.The package badges, cards, sidebar project list, and deferred page transitions on this page are live theme output.
Dark mode is inherited from Furo; the theme options below control the extra git-pull behavior layered on top.
Theme options¶
Options declared in theme.conf and accepted through html_theme_options:
Option |
Description |
|---|---|
|
Banner content rendered above the header |
|
Dark-mode CSS variable overrides |
|
Logo path for dark mode |
|
Footer icon list with |
|
Light-mode CSS variable overrides |
|
Logo path for light mode |
|
Safari pinned-tab icon |
|
Project summary used by sidebar/meta templates |
|
Short project name |
|
Alternate long-form title |
|
Canonical project home URL |
|
Emit app icon meta tags |
|
Emit web manifest link tag |
|
Emit Open Graph tags |
|
Hide the sidebar brand name when a logo is present |
|
Source branch used for edit/view links |
|
Repository path containing docs sources |
|
Override the generated edit link |
|
Repository URL used for source links and footer GitHub icon |
|
Override the generated view-source link |
|
Single top-of-page action, defaults to |
|
Multiple top-of-page actions |
Bundled assets¶
File |
Purpose |
|---|---|
|
Sidebar brand block |
|
Cross-project navigation |
|
Base layout and typography overrides |
|
CLI lexer highlighting rules |
|
Deferred navigation enhancer |
Relationship to gp-sphinx¶
gp-sphinx sets this theme automatically via merge_sphinx_config() and
pre-populates source_repository, source_branch, source_directory, footer
icons, and the IBM Plex font stacks consumed by the theme templates.
Copyable config snippet
extensions = [
"sphinx_gptheme",
]
Package metadata
Source on GitHub: sphinx-gptheme
PyPI: sphinx-gptheme
Maturity:
Beta
Registered Surface
sphinx_gptheme
Theme registration
Theme |
Path |
|---|---|
|
|
Theme options (theme.conf)
Option |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|