sphinx-gp-theme 0.0.1a8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sphinx_gp_theme-0.0.1a8/.gitignore +228 -0
- sphinx_gp_theme-0.0.1a8/PKG-INFO +50 -0
- sphinx_gp_theme-0.0.1a8/README.md +23 -0
- sphinx_gp_theme-0.0.1a8/pyproject.toml +44 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/__init__.py +82 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/py.typed +0 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/theme/page.html +78 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/theme/sidebar/brand.html +18 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/theme/sidebar/projects.html +84 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/theme/static/css/argparse-highlight.css +437 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/theme/static/css/custom.css +367 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/theme/static/js/spa-nav.js +254 -0
- sphinx_gp_theme-0.0.1a8/src/sphinx_gp_theme/theme/theme.conf +35 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
# Generated by sphinx_fonts extension (downloaded at build time)
|
|
210
|
+
docs/_static/fonts/
|
|
211
|
+
docs/_static/css/fonts.css
|
|
212
|
+
|
|
213
|
+
# Claude Code
|
|
214
|
+
**/CLAUDE.local.md
|
|
215
|
+
**/CLAUDE.*.md
|
|
216
|
+
**/.claude/settings.local.json
|
|
217
|
+
|
|
218
|
+
# Playwright MCP
|
|
219
|
+
.playwright-mcp/
|
|
220
|
+
|
|
221
|
+
# Repo-local pytest mirror (do not track — validator-only)
|
|
222
|
+
out/
|
|
223
|
+
|
|
224
|
+
# Misc
|
|
225
|
+
.vim/
|
|
226
|
+
*.lprof
|
|
227
|
+
pip-wheel-metadata/
|
|
228
|
+
monkeytype.sqlite3
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sphinx-gp-theme
|
|
3
|
+
Version: 0.0.1a8
|
|
4
|
+
Summary: Furo child theme for git-pull project documentation
|
|
5
|
+
Project-URL: Repository, https://github.com/git-pull/gp-sphinx
|
|
6
|
+
Author-email: Tony Narlock <tony@git-pull.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
Keywords: documentation,furo,sphinx,theme
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Framework :: Sphinx
|
|
11
|
+
Classifier: Framework :: Sphinx :: Theme
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Documentation
|
|
21
|
+
Classifier: Topic :: Documentation :: Sphinx
|
|
22
|
+
Classifier: Typing :: Typed
|
|
23
|
+
Requires-Python: <4.0,>=3.10
|
|
24
|
+
Requires-Dist: furo
|
|
25
|
+
Requires-Dist: sphinx>=8.1
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# sphinx-gp-theme
|
|
29
|
+
|
|
30
|
+
Furo child theme for [git-pull](https://github.com/git-pull) project documentation.
|
|
31
|
+
|
|
32
|
+
Inherits from [Furo](https://pradyunsg.me/furo/) and bundles shared templates,
|
|
33
|
+
custom CSS (heading refinements, TOC, typography, view transitions), SPA navigation
|
|
34
|
+
JS, and the git-pull project sidebar.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```console
|
|
39
|
+
$ pip install sphinx-gp-theme
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
In your `docs/conf.py`:
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
html_theme = "sphinx-gp-theme"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Or use with [gp-sphinx](https://gp-sphinx.git-pull.com) which sets the theme automatically.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# sphinx-gp-theme
|
|
2
|
+
|
|
3
|
+
Furo child theme for [git-pull](https://github.com/git-pull) project documentation.
|
|
4
|
+
|
|
5
|
+
Inherits from [Furo](https://pradyunsg.me/furo/) and bundles shared templates,
|
|
6
|
+
custom CSS (heading refinements, TOC, typography, view transitions), SPA navigation
|
|
7
|
+
JS, and the git-pull project sidebar.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```console
|
|
12
|
+
$ pip install sphinx-gp-theme
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
In your `docs/conf.py`:
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
html_theme = "sphinx-gp-theme"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or use with [gp-sphinx](https://gp-sphinx.git-pull.com) which sets the theme automatically.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "sphinx-gp-theme"
|
|
3
|
+
version = "0.0.1a8"
|
|
4
|
+
description = "Furo child theme for git-pull project documentation"
|
|
5
|
+
requires-python = ">=3.10,<4.0"
|
|
6
|
+
authors = [
|
|
7
|
+
{name = "Tony Narlock", email = "tony@git-pull.com"}
|
|
8
|
+
]
|
|
9
|
+
license = { text = "MIT" }
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 3 - Alpha",
|
|
12
|
+
"License :: OSI Approved :: MIT License",
|
|
13
|
+
"Framework :: Sphinx",
|
|
14
|
+
"Framework :: Sphinx :: Theme",
|
|
15
|
+
"Intended Audience :: Developers",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.10",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Programming Language :: Python :: 3.14",
|
|
22
|
+
"Topic :: Documentation",
|
|
23
|
+
"Topic :: Documentation :: Sphinx",
|
|
24
|
+
"Typing :: Typed",
|
|
25
|
+
]
|
|
26
|
+
readme = "README.md"
|
|
27
|
+
keywords = ["sphinx", "theme", "furo", "documentation"]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"sphinx>=8.1",
|
|
30
|
+
"furo",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.entry-points."sphinx.html_themes"]
|
|
34
|
+
"sphinx-gp-theme" = "sphinx_gp_theme"
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Repository = "https://github.com/git-pull/gp-sphinx"
|
|
38
|
+
|
|
39
|
+
[build-system]
|
|
40
|
+
requires = ["hatchling"]
|
|
41
|
+
build-backend = "hatchling.build"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.wheel]
|
|
44
|
+
packages = ["src/sphinx_gp_theme"]
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""sphinx-gp-theme — Furo child theme for git-pull projects.
|
|
2
|
+
|
|
3
|
+
Provides a shared visual identity for git-pull project documentation
|
|
4
|
+
by inheriting from Furo and bundling common templates, CSS, and JS.
|
|
5
|
+
|
|
6
|
+
Examples
|
|
7
|
+
--------
|
|
8
|
+
>>> import pathlib
|
|
9
|
+
|
|
10
|
+
>>> theme_path = get_theme_path()
|
|
11
|
+
>>> theme_path.is_dir()
|
|
12
|
+
True
|
|
13
|
+
|
|
14
|
+
>>> (theme_path / "theme.conf").is_file()
|
|
15
|
+
True
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
import pathlib
|
|
21
|
+
import typing as t
|
|
22
|
+
|
|
23
|
+
if t.TYPE_CHECKING:
|
|
24
|
+
from sphinx.application import Sphinx
|
|
25
|
+
|
|
26
|
+
__version__ = "0.0.1a8"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def get_theme_path() -> pathlib.Path:
|
|
30
|
+
"""Return the path to the sphinx-gp-theme theme directory.
|
|
31
|
+
|
|
32
|
+
Returns
|
|
33
|
+
-------
|
|
34
|
+
pathlib.Path
|
|
35
|
+
Absolute path to the theme directory containing
|
|
36
|
+
``theme.conf`` and associated templates/static files.
|
|
37
|
+
|
|
38
|
+
Examples
|
|
39
|
+
--------
|
|
40
|
+
>>> theme_path = get_theme_path()
|
|
41
|
+
>>> (theme_path / "theme.conf").exists()
|
|
42
|
+
True
|
|
43
|
+
|
|
44
|
+
>>> (theme_path / "static" / "css" / "custom.css").exists()
|
|
45
|
+
True
|
|
46
|
+
"""
|
|
47
|
+
return pathlib.Path(__file__).parent / "theme"
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def setup(app: Sphinx) -> dict[str, bool | str]:
|
|
51
|
+
"""Register the bundled theme with Sphinx.
|
|
52
|
+
|
|
53
|
+
Parameters
|
|
54
|
+
----------
|
|
55
|
+
app : Sphinx
|
|
56
|
+
The Sphinx application object.
|
|
57
|
+
|
|
58
|
+
Returns
|
|
59
|
+
-------
|
|
60
|
+
dict[str, bool | str]
|
|
61
|
+
Extension metadata for Sphinx.
|
|
62
|
+
|
|
63
|
+
Examples
|
|
64
|
+
--------
|
|
65
|
+
>>> class FakeApp:
|
|
66
|
+
... def __init__(self) -> None:
|
|
67
|
+
... self.calls: list[tuple[str, pathlib.Path]] = []
|
|
68
|
+
... def add_html_theme(self, name: str, theme_path: pathlib.Path) -> None:
|
|
69
|
+
... self.calls.append((name, theme_path))
|
|
70
|
+
>>> fake = FakeApp()
|
|
71
|
+
>>> metadata = setup(fake) # type: ignore[arg-type]
|
|
72
|
+
>>> fake.calls[0][0]
|
|
73
|
+
'sphinx-gp-theme'
|
|
74
|
+
>>> metadata["parallel_read_safe"]
|
|
75
|
+
True
|
|
76
|
+
"""
|
|
77
|
+
app.add_html_theme("sphinx-gp-theme", get_theme_path())
|
|
78
|
+
return {
|
|
79
|
+
"parallel_read_safe": True,
|
|
80
|
+
"parallel_write_safe": True,
|
|
81
|
+
"version": __version__,
|
|
82
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{% extends "furo/page.html" %}
|
|
2
|
+
{%- block extrahead %}
|
|
3
|
+
{{ super() }}
|
|
4
|
+
{%- for href in font_preload_hrefs|default([]) %}
|
|
5
|
+
<link rel="preload" href="{{ pathto('_static/fonts/' + href, 1) }}" as="font" type="font/woff2" crossorigin="">
|
|
6
|
+
{%- endfor %}
|
|
7
|
+
{%- if font_faces is defined and font_faces %}
|
|
8
|
+
<style id="sphinx-fonts">
|
|
9
|
+
{%- for face in font_faces %}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "{{ face.family }}";
|
|
12
|
+
font-style: {{ face.style }};
|
|
13
|
+
font-weight: {{ face.weight }};
|
|
14
|
+
font-display: block;
|
|
15
|
+
src: url("{{ pathto('_static/fonts/' + face.filename, 1) }}") format("woff2");
|
|
16
|
+
}
|
|
17
|
+
{%- endfor %}
|
|
18
|
+
{%- for fb in font_fallbacks|default([]) %}
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: "{{ fb.family }}";
|
|
21
|
+
src: {{ fb.src }};
|
|
22
|
+
size-adjust: {{ fb.size_adjust }};
|
|
23
|
+
ascent-override: {{ fb.ascent_override }};
|
|
24
|
+
descent-override: {{ fb.descent_override }};
|
|
25
|
+
line-gap-override: {{ fb.line_gap_override }};
|
|
26
|
+
}
|
|
27
|
+
{%- endfor %}
|
|
28
|
+
body {
|
|
29
|
+
{%- for var, value in font_css_variables.items() %}
|
|
30
|
+
{{ var }}: {{ value }};
|
|
31
|
+
{%- endfor %}
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
{%- endif %}
|
|
35
|
+
{%- if theme_show_meta_manifest_tag == true %}
|
|
36
|
+
<link rel="manifest" href="/manifest.json">
|
|
37
|
+
{% endif -%}
|
|
38
|
+
{%- if theme_show_meta_og_tags == true %}
|
|
39
|
+
<meta name="description" content="{{ theme_project_description }}">
|
|
40
|
+
|
|
41
|
+
<!-- Open Graph / Facebook -->
|
|
42
|
+
<meta property="og:type" content="website">
|
|
43
|
+
<meta property="og:url" content="{{ theme_project_url }}/">
|
|
44
|
+
<meta property="og:title" content="{{ theme_project_title }}">
|
|
45
|
+
<meta property="og:description" content="{{ theme_project_description }}">
|
|
46
|
+
<meta property="og:image" itemprop="image" content="{{ theme_project_url }}/_static/img/icons/icon-192x192.png">
|
|
47
|
+
|
|
48
|
+
<!-- Twitter -->
|
|
49
|
+
<meta property="twitter:card" content="summary_large_image">
|
|
50
|
+
<meta property="twitter:url" content="{{ theme_project_url }} ">
|
|
51
|
+
<meta property="twitter:title" content="{{ theme_project_title }}">
|
|
52
|
+
<meta property="twitter:description" content="{{ theme_project_description }}">
|
|
53
|
+
<meta property="twitter:image" content="{{ theme_project_url }}/_static/img/icons/icon-512x512.png">
|
|
54
|
+
{% endif -%}
|
|
55
|
+
{%- if theme_show_meta_app_icon_tags == true %}
|
|
56
|
+
<meta name="theme-color" content="#ffffff">
|
|
57
|
+
<meta name="application-name" content="{{ theme_project_name }}">
|
|
58
|
+
|
|
59
|
+
<link rel="shortcut icon" href="/_static/favicon.ico">
|
|
60
|
+
<link rel="icon" type="image/png" sizes="512x512" href="/_static/img/icons/icon-512x512.png">
|
|
61
|
+
<link rel="icon" type="image/png" sizes="192x192" href="/_static/img/icons/icon-192x192.png">
|
|
62
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/_static/img/icons/icon-32x32.png">
|
|
63
|
+
<link rel="icon" type="image/png" sizes="96x96" href="/_static/img/icons/icon-96x96.png">
|
|
64
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/_static/img/icons/icon-16x16.png">
|
|
65
|
+
|
|
66
|
+
<!-- Apple -->
|
|
67
|
+
<meta name="apple-mobile-web-app-title" content="{{ theme_project_name }}">
|
|
68
|
+
|
|
69
|
+
<link rel="apple-touch-icon" sizes="192x192" href="/_static/img/icons/icon-192x192.png">
|
|
70
|
+
|
|
71
|
+
<!-- Microsoft -->
|
|
72
|
+
<meta name="msapplication-TileColor" content="#ffffff">
|
|
73
|
+
<meta name="msapplication-TileImage" content="/_static/img/icons/ms-icon-144x144.png">
|
|
74
|
+
{% endif -%}
|
|
75
|
+
{%- if theme_mask_icon %}
|
|
76
|
+
<link rel="mask-icon" href="{{ theme_mask_icon }}" color="grey">
|
|
77
|
+
{%- endif %}
|
|
78
|
+
{% endblock %}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<a class="sidebar-brand{% if logo %} centered{% endif %}" href="{{ pathto(master_doc) }}">
|
|
2
|
+
{%- block brand_content %}
|
|
3
|
+
{%- if logo_url %}
|
|
4
|
+
<div class="sidebar-logo-container">
|
|
5
|
+
<img class="sidebar-logo" src="{{ logo_url }}" width="200" height="200" decoding="async" alt="Logo"/>
|
|
6
|
+
</div>
|
|
7
|
+
{%- endif %}
|
|
8
|
+
{%- if theme_light_logo and theme_dark_logo %}
|
|
9
|
+
<div class="sidebar-logo-container">
|
|
10
|
+
<img class="sidebar-logo only-light" src="{{ pathto('_static/' + theme_light_logo, 1) }}" width="200" height="200" decoding="async" alt="Light Logo"/>
|
|
11
|
+
<img class="sidebar-logo only-dark" src="{{ pathto('_static/' + theme_dark_logo, 1) }}" width="200" height="200" decoding="async" alt="Dark Logo"/>
|
|
12
|
+
</div>
|
|
13
|
+
{%- endif %}
|
|
14
|
+
{% if not theme_sidebar_hide_name %}
|
|
15
|
+
<span class="sidebar-brand-text">{{ docstitle if docstitle else project }}</span>
|
|
16
|
+
{%- endif %}
|
|
17
|
+
{% endblock brand_content %}
|
|
18
|
+
</a>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<div class="sidebar-tree projects" id="sidebar-projects">
|
|
2
|
+
<p class="caption" role="heading">
|
|
3
|
+
<span class="caption-text"
|
|
4
|
+
>team git-pull / <a href="https://tony.sh">Tony Narlock</a></span
|
|
5
|
+
>:
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p class="indented-block">
|
|
9
|
+
<span class="project-name">vcs-python</span>
|
|
10
|
+
<a class="internal" href="https://vcspull.git-pull.com">vcspull</a>
|
|
11
|
+
(<a class="internal" href="https://libvcs.git-pull.com">libvcs</a>),
|
|
12
|
+
<a class="internal" href="https://g.git-pull.com">g</a>
|
|
13
|
+
</p>
|
|
14
|
+
<p class="indented-block">
|
|
15
|
+
<span class="project-name">tmux-python</span>
|
|
16
|
+
<span class="indent">
|
|
17
|
+
<a class="internal" href="https://tmuxp.git-pull.com">tmuxp</a>
|
|
18
|
+
</span>
|
|
19
|
+
<span class="indent">
|
|
20
|
+
<a class="internal" href="https://libtmux.git-pull.com">libtmux</a>
|
|
21
|
+
(<a class="internal" href="https://libtmux-mcp.git-pull.com">mcp</a>,
|
|
22
|
+
<a class="internal" href="https://libtmux.git-pull.com/pytest-plugin/">pytest</a>)
|
|
23
|
+
</span>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
<p class="indented-block">
|
|
27
|
+
<span class="project-name">cihai</span>
|
|
28
|
+
<span class="indent">
|
|
29
|
+
<a class="internal" href="https://unihan-etl.git-pull.com">unihan-etl</a>
|
|
30
|
+
(<a class="internal" href="https://unihan-db.git-pull.com">db</a>)
|
|
31
|
+
</span>
|
|
32
|
+
<span class="indent">
|
|
33
|
+
<a class="internal" href="https://cihai.git-pull.com">cihai</a>
|
|
34
|
+
(<a class="internal" href="https://cihai-cli.git-pull.com">cli</a>)
|
|
35
|
+
</span>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
<p class="indented-block">
|
|
39
|
+
<span class="project-name">django</span>
|
|
40
|
+
<span class="indent">
|
|
41
|
+
<a class="internal" href="https://django-slugify-processor.git-pull.com">django-slugify-processor</a>
|
|
42
|
+
</span>
|
|
43
|
+
<span class="indent">
|
|
44
|
+
<a class="internal" href="https://django-docutils.git-pull.com">django-docutils</a>
|
|
45
|
+
</span>
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
<p class="indented-block">
|
|
49
|
+
<span class="project-name">docs + tests</span>
|
|
50
|
+
<span class="indent">
|
|
51
|
+
<a class="internal" href="https://gp-libs.git-pull.com">gp-libs</a>
|
|
52
|
+
</span>
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
<p class="indented-block">
|
|
56
|
+
<span class="project-name">web</span>
|
|
57
|
+
<span class="indent">
|
|
58
|
+
<a class="internal" href="https://social-embed.org">social-embed</a>
|
|
59
|
+
</span>
|
|
60
|
+
</p>
|
|
61
|
+
</div>
|
|
62
|
+
<script type="text/javascript">
|
|
63
|
+
(() => {
|
|
64
|
+
const sidebar = document.getElementById("sidebar-projects");
|
|
65
|
+
const loc = window.location;
|
|
66
|
+
sidebar.querySelectorAll("a[href]").forEach((link) => {
|
|
67
|
+
const url = new URL(link.href, loc.origin);
|
|
68
|
+
const sameHost = url.hostname === loc.hostname;
|
|
69
|
+
const hasPath = url.pathname.replace(/\/+$/, "").length > 0;
|
|
70
|
+
// Links with a pathname: match origin + path prefix (e.g. /pytest-plugin/)
|
|
71
|
+
// Links without: match hostname only (e.g. https://libtmux.git-pull.com)
|
|
72
|
+
const isActive = hasPath
|
|
73
|
+
? sameHost && loc.pathname.startsWith(url.pathname.replace(/\/+$/, ""))
|
|
74
|
+
: sameHost;
|
|
75
|
+
if (isActive && !link.classList.contains("active")) {
|
|
76
|
+
const d = document.createElement('span');
|
|
77
|
+
d.textContent = link.textContent;
|
|
78
|
+
d.classList.add("active");
|
|
79
|
+
link.parentNode.replaceChild(d, link);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
sidebar.classList.add('ready');
|
|
83
|
+
})()
|
|
84
|
+
</script>
|