python-docs-theme 2024.2__py3-none-any.whl → 2024.4__py3-none-any.whl
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.
- python_docs_theme/layout.html +19 -5
- python_docs_theme/static/pydoctheme.css +51 -5
- python_docs_theme/static/pydoctheme_dark.css +7 -0
- python_docs_theme/theme.conf +2 -2
- {python_docs_theme-2024.2.dist-info → python_docs_theme-2024.4.dist-info}/METADATA +13 -12
- {python_docs_theme-2024.2.dist-info → python_docs_theme-2024.4.dist-info}/RECORD +9 -9
- {python_docs_theme-2024.2.dist-info → python_docs_theme-2024.4.dist-info}/LICENSE +0 -0
- {python_docs_theme-2024.2.dist-info → python_docs_theme-2024.4.dist-info}/WHEEL +0 -0
- {python_docs_theme-2024.2.dist-info → python_docs_theme-2024.4.dist-info}/entry_points.txt +0 -0
python_docs_theme/layout.html
CHANGED
|
@@ -136,21 +136,35 @@
|
|
|
136
136
|
|
|
137
137
|
{% block footer %}
|
|
138
138
|
<div class="footer">
|
|
139
|
-
© {% if theme_copyright_url or hasdoc('copyright') %}
|
|
139
|
+
© {% if theme_copyright_url or hasdoc('copyright') %}
|
|
140
|
+
<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}">
|
|
141
|
+
{% endif %}
|
|
142
|
+
{% trans %}Copyright{% endtrans %}
|
|
143
|
+
{% if theme_copyright_url or hasdoc('copyright') %}
|
|
144
|
+
</a>
|
|
145
|
+
{% endif %} {{ copyright|e }}.
|
|
140
146
|
<br />
|
|
141
147
|
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
|
|
142
148
|
<br />
|
|
143
149
|
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
|
|
144
150
|
<br />
|
|
145
|
-
{% if theme_license_url %}
|
|
146
|
-
|
|
151
|
+
{% if theme_license_url %}
|
|
152
|
+
{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br />
|
|
153
|
+
{% endif %}
|
|
154
|
+
{% if theme_hosted_on %}
|
|
155
|
+
{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br />
|
|
156
|
+
{% endif %}
|
|
147
157
|
<br />
|
|
148
158
|
|
|
149
159
|
{% include "footerdonate.html" %}
|
|
150
160
|
<br />
|
|
151
161
|
|
|
152
|
-
{
|
|
153
|
-
|
|
162
|
+
{%- if last_updated %}
|
|
163
|
+
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
|
|
164
|
+
{%- endif %}
|
|
165
|
+
{% if theme_issues_url %}
|
|
166
|
+
{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}
|
|
167
|
+
{% endif %}
|
|
154
168
|
<br />
|
|
155
169
|
|
|
156
170
|
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
|
@@ -170,7 +170,7 @@ div.sphinxsidebar a:hover {
|
|
|
170
170
|
form.inline-search input,
|
|
171
171
|
div.sphinxsidebar input,
|
|
172
172
|
div.related input {
|
|
173
|
-
font-family:
|
|
173
|
+
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
|
|
174
174
|
border: 1px solid #999999;
|
|
175
175
|
font-size: smaller;
|
|
176
176
|
border-radius: 3px;
|
|
@@ -258,7 +258,7 @@ div.body a:hover {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
tt, code, pre {
|
|
261
|
-
font-family:
|
|
261
|
+
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
|
|
262
262
|
font-size: 96.5%;
|
|
263
263
|
}
|
|
264
264
|
|
|
@@ -333,7 +333,7 @@ div.footer a:hover {
|
|
|
333
333
|
|
|
334
334
|
dl > dt span ~ em,
|
|
335
335
|
.sig {
|
|
336
|
-
font-family:
|
|
336
|
+
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
.toctree-wrapper ul {
|
|
@@ -361,8 +361,7 @@ div.genindex-jumpbox a {
|
|
|
361
361
|
position: absolute;
|
|
362
362
|
top: 0;
|
|
363
363
|
right: 0;
|
|
364
|
-
|
|
365
|
-
font-family: monospace;
|
|
364
|
+
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
|
|
366
365
|
padding-left: 0.2em;
|
|
367
366
|
padding-right: 0.2em;
|
|
368
367
|
border-radius: 0 3px 0 0;
|
|
@@ -623,3 +622,50 @@ div.genindex-jumpbox a {
|
|
|
623
622
|
margin-top: -2em;
|
|
624
623
|
}
|
|
625
624
|
}
|
|
625
|
+
|
|
626
|
+
/* Version change directives */
|
|
627
|
+
:root {
|
|
628
|
+
--versionadded: rgb(41 100 51);
|
|
629
|
+
--versionchanged: rgb(133 72 38);
|
|
630
|
+
--deprecated: rgb(159 49 51);
|
|
631
|
+
|
|
632
|
+
--versionadded-border: rgb(79 196 100);
|
|
633
|
+
--versionchanged-border: rgb(244, 227, 76);
|
|
634
|
+
--deprecated-border: rgb(244, 76, 78);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
div.versionadded,
|
|
638
|
+
div.versionchanged,
|
|
639
|
+
div.deprecated,
|
|
640
|
+
div.deprecated-removed {
|
|
641
|
+
border-left: 3px solid;
|
|
642
|
+
padding: 0 1rem;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
div.versionadded {
|
|
646
|
+
border-left-color: var(--versionadded-border);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
div.versionchanged {
|
|
650
|
+
border-left-color: var(--versionchanged-border);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
div.deprecated,
|
|
654
|
+
div.deprecated-removed,
|
|
655
|
+
div.versionremoved {
|
|
656
|
+
border-left-color: var(--deprecated-border);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
div.versionadded .versionmodified {
|
|
660
|
+
color: var(--versionadded);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
div.versionchanged .versionmodified {
|
|
664
|
+
color: var(--versionchanged);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
div.deprecated .versionmodified,
|
|
668
|
+
div.deprecated-removed .versionmodified,
|
|
669
|
+
div.versionremoved .versionmodified {
|
|
670
|
+
color: var(--deprecated);
|
|
671
|
+
}
|
|
@@ -140,3 +140,10 @@ img.invert-in-dark-mode {
|
|
|
140
140
|
.sig.cpp .k, .sig.cpp .kt {
|
|
141
141
|
color: #5283ff;
|
|
142
142
|
}
|
|
143
|
+
|
|
144
|
+
/* Version change directives */
|
|
145
|
+
:root {
|
|
146
|
+
--versionadded: rgb(79 196 100);
|
|
147
|
+
--versionchanged: rgb(244, 227, 76);
|
|
148
|
+
--deprecated: rgb(244, 76, 78);
|
|
149
|
+
}
|
python_docs_theme/theme.conf
CHANGED
|
@@ -5,8 +5,8 @@ pygments_style = default
|
|
|
5
5
|
pygments_dark_style = monokai
|
|
6
6
|
|
|
7
7
|
[options]
|
|
8
|
-
bodyfont =
|
|
9
|
-
headfont =
|
|
8
|
+
bodyfont = -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif
|
|
9
|
+
headfont = -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif
|
|
10
10
|
footerbgcolor = white
|
|
11
11
|
footertextcolor = #555555
|
|
12
12
|
relbarbgcolor = white
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-docs-theme
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.4
|
|
4
4
|
Summary: The Sphinx theme for the CPython docs and related projects
|
|
5
5
|
Author-email: PyPA <distutils-sig@python.org>
|
|
6
6
|
Requires-Python: >=3.8
|
|
7
|
-
Description-Content-Type: text/
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
8
|
Classifier: Development Status :: 5 - Production/Stable
|
|
9
9
|
Classifier: Framework :: Sphinx :: Theme
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
@@ -25,8 +25,7 @@ Project-URL: Download, https://pypi.org/project/python-docs-theme/
|
|
|
25
25
|
Project-URL: Homepage, https://github.com/python/python-docs-theme/
|
|
26
26
|
Project-URL: Issue tracker, https://github.com/python/python-docs-theme/issues
|
|
27
27
|
|
|
28
|
-
Python Docs Sphinx Theme
|
|
29
|
-
=========================
|
|
28
|
+
# Python Docs Sphinx Theme
|
|
30
29
|
|
|
31
30
|
This is the theme for the Python documentation.
|
|
32
31
|
|
|
@@ -37,23 +36,25 @@ projects if you so choose, but please keep in mind that in doing so you're also
|
|
|
37
36
|
choosing to accept some of the responsibility for maintaining that collective
|
|
38
37
|
trust.
|
|
39
38
|
|
|
40
|
-
To use the theme, install it into your docs build environment via
|
|
39
|
+
To use the theme, install it into your docs build environment via `pip`
|
|
41
40
|
(preferably in a virtual environment).
|
|
42
41
|
|
|
43
42
|
|
|
44
|
-
Configuration options
|
|
45
|
-
---------------------
|
|
43
|
+
## Configuration options
|
|
46
44
|
|
|
47
|
-
To use this theme, add the following to
|
|
45
|
+
To use this theme, add the following to `conf.py`:
|
|
48
46
|
|
|
49
|
-
-
|
|
47
|
+
- `html_theme = 'python_docs_theme'`
|
|
50
48
|
|
|
51
|
-
-
|
|
49
|
+
- `html_sidebars`, defaults taken from https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sidebars
|
|
52
50
|
|
|
53
|
-
Preview
|
|
54
|
-
-------
|
|
51
|
+
## Preview
|
|
55
52
|
|
|
56
53
|
See a demo of the CPython docs using this theme:
|
|
57
54
|
|
|
58
55
|
- https://python-docs-theme-previews.readthedocs.io
|
|
59
56
|
|
|
57
|
+
The kitchen sink is a showcase of every Sphinx feature:
|
|
58
|
+
|
|
59
|
+
- https://sphinx-themes.org/sample-sites/python-docs-theme/kitchen-sink/
|
|
60
|
+
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
python_docs_theme/__init__.py,sha256=lohzhV2LTSRLhxi0G8Emc_TkccarW1O4aYXvFGU1HR8,1814
|
|
2
2
|
python_docs_theme/footerdonate.html,sha256=SVxLBvbrliqOzjau4SdhhtkRGXxX5ZrZN6Yr6luRhIQ,184
|
|
3
|
-
python_docs_theme/layout.html,sha256=
|
|
4
|
-
python_docs_theme/theme.conf,sha256=
|
|
3
|
+
python_docs_theme/layout.html,sha256=W5gSelJr85H5a1uaSPUDFoONpaGscpqdJkKszq5t95E,7891
|
|
4
|
+
python_docs_theme/theme.conf,sha256=y8hpLRiQymGaL7AuTvXRxmhUMk6I3ehHCh5fUWbfD88,1040
|
|
5
5
|
python_docs_theme/static/copybutton.js,sha256=LSeNL29gDNKg3fv4rfcb8t-8xkH6HozpCbJXI9FuO6U,3508
|
|
6
6
|
python_docs_theme/static/menu.js,sha256=JmrKD08_6CiCgQH32As9AgiSiV-th1fZInVrmTCihzA,2137
|
|
7
7
|
python_docs_theme/static/py.png,sha256=rhc9xIQjUfwcilUa-9tYyyspVJB4ITDapPNZpqgNclY,695
|
|
8
8
|
python_docs_theme/static/py.svg,sha256=WGW-i8wK-IhZSQPqARL2yNkjxXJsQIHoyFYRDMcznO8,2041
|
|
9
|
-
python_docs_theme/static/pydoctheme.css,sha256=
|
|
10
|
-
python_docs_theme/static/pydoctheme_dark.css,sha256=
|
|
9
|
+
python_docs_theme/static/pydoctheme.css,sha256=86sc2-vQq1GqDK6h0Jxkgv9uWO1Za547qg_kewKf66Y,13101
|
|
10
|
+
python_docs_theme/static/pydoctheme_dark.css,sha256=hLQOuwzSg9ccMMluYPrD3Z2Mc4yBNhPpkUb02a4YdOA,2371
|
|
11
11
|
python_docs_theme/static/search-focus.js,sha256=DwWV71ssKvrzagPenP7yLvFQCdyqFJirbBk1PFRvVoA,559
|
|
12
12
|
python_docs_theme/static/sidebar.js_t,sha256=swTyAoy6dNGm6Ro0_iRl_9ujRrIz5nq207tMIqNnYgs,3350
|
|
13
13
|
python_docs_theme/static/themetoggle.js,sha256=6D1LE0wg8DjPP776_KxPCxXdIk-gGJJX5DYpHFLG1Uw,779
|
|
14
|
-
python_docs_theme-2024.
|
|
15
|
-
python_docs_theme-2024.
|
|
16
|
-
python_docs_theme-2024.
|
|
17
|
-
python_docs_theme-2024.
|
|
18
|
-
python_docs_theme-2024.
|
|
14
|
+
python_docs_theme-2024.4.dist-info/entry_points.txt,sha256=VqpxCWQkYo2DkZVV2D2vA9LKmexR1Yhicqsrff4JAag,58
|
|
15
|
+
python_docs_theme-2024.4.dist-info/LICENSE,sha256=lx_9CsorlYBu9cw97FX-A1VnHHmrwk-H-jydZBJlWmY,2460
|
|
16
|
+
python_docs_theme-2024.4.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
17
|
+
python_docs_theme-2024.4.dist-info/METADATA,sha256=CreIC3i0jCE1j6slzNX4eKffMvTKl3L1gqosZ6p1Hfw,2343
|
|
18
|
+
python_docs_theme-2024.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|