Codebase list python-pallets-sphinx-themes / c8b6b9ff-fe16-4302-929c-3e85ddd3b0f5/upstream
Import upstream version 2.0.1+git20210621.1.b872a53 Debian Janitor 2 years ago
15 changed file(s) with 145 addition(s) and 106 deletion(s). Raw diff Collapse all Expand all
0 Version 2.0.2
1 -------------
2
3 Unreleased
4
5
6 Version 2.0.1
7 -------------
8
9 Released 2021-05-20
10
11 - Remove workaround for search URLs when using the ``dirhtml``
12 builder. The issue has been fixed in Sphinx and the workaround was
13 causing the issue again. :issue:`39`
14 - Remove ``html_context["readthedocs_docsearch"]`` for controlling
15 whether Read the Docs' search is used. :issue:`40`
16 - Add an ``ethicalads.html`` sidebar to have Read the Docs always show
17 ads in the sidebar instead of other possible locations. The sidebar
18 is enabled by default at the end of the list. :issue:`41`
19
20
21 Version 2.0.0
22 -------------
23
24 Released 2021-05-11
25
26 - Drop Python < 3.6.
27 - Update for Jinja 2.0.
28 - Update for Click 8.0.
29
30
031 Version 1.2.3
132 -------------
233
00 Metadata-Version: 2.1
11 Name: Pallets-Sphinx-Themes
2 Version: 1.2.3
2 Version: 2.0.2.dev0
33 Summary: Sphinx themes for Pallets and related projects.
4 Home-page: https://sphinx-themes.palletsprojects.com/
4 Home-page: https://github.com/pallets/pallets-sphinx-themes/
55 Author: Pallets
66 Author-email: contact@palletsprojects.com
77 License: BSD-3-Clause
8 Project-URL: Documentation, https://sphinx-themes.palletsprojects.com/
9 Project-URL: Code, https://github.com/pallets/pallets-sphinx-themes
10 Project-URL: Issue tracker, https://github.com/pallets/pallets-sphinx-themes/issues
8 Project-URL: Donate, https://palletsprojects.com/donate
9 Project-URL: Source Code, https://github.com/pallets/pallets-sphinx-themes/
10 Project-URL: Issue Tracker, https://github.com/pallets/pallets-sphinx-themes/issues/
11 Project-URL: Twitter, https://twitter.com/PalletsTeam
12 Project-URL: Chat, https://discord.gg/pallets
1113 Description: Pallets Sphinx Themes
1214 =====================
1315
4648 Classifier: License :: OSI Approved :: BSD License
4749 Classifier: Operating System :: OS Independent
4850 Classifier: Programming Language :: Python
49 Classifier: Programming Language :: Python :: 2
50 Classifier: Programming Language :: Python :: 2.7
51 Classifier: Programming Language :: Python :: 3
52 Classifier: Programming Language :: Python :: 3.5
53 Classifier: Programming Language :: Python :: 3.6
54 Classifier: Programming Language :: Python :: 3.7
55 Classifier: Programming Language :: Python :: 3.8
5651 Classifier: Topic :: Documentation
5752 Classifier: Topic :: Documentation :: Sphinx
5853 Classifier: Topic :: Software Development :: Documentation
59 Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
54 Requires-Python: >=3.6
6055 Description-Content-Type: text/x-rst
00 [metadata]
11 name = Pallets-Sphinx-Themes
2 version = 1.2.3
3 url = https://sphinx-themes.palletsprojects.com/
2 version = 2.0.2.dev0
3 url = https://github.com/pallets/pallets-sphinx-themes/
44 project_urls =
5 Documentation = https://sphinx-themes.palletsprojects.com/
6 Code = https://github.com/pallets/pallets-sphinx-themes
7 Issue tracker = https://github.com/pallets/pallets-sphinx-themes/issues
5 Donate = https://palletsprojects.com/donate
6 Source Code = https://github.com/pallets/pallets-sphinx-themes/
7 Issue Tracker = https://github.com/pallets/pallets-sphinx-themes/issues/
8 Twitter = https://twitter.com/PalletsTeam
9 Chat = https://discord.gg/pallets
810 license = BSD-3-Clause
9 license_file = LICENSE.rst
11 license_files = LICENSE.rst
1012 author = Pallets
1113 author_email = contact@palletsprojects.com
1214 description = Sphinx themes for Pallets and related projects.
13 long_description = file:README.rst
15 long_description = file: README.rst
1416 long_description_content_type = text/x-rst
1517 classifiers =
1618 Development Status :: 5 - Production/Stable
2022 License :: OSI Approved :: BSD License
2123 Operating System :: OS Independent
2224 Programming Language :: Python
23 Programming Language :: Python :: 2
24 Programming Language :: Python :: 2.7
25 Programming Language :: Python :: 3
26 Programming Language :: Python :: 3.5
27 Programming Language :: Python :: 3.6
28 Programming Language :: Python :: 3.7
29 Programming Language :: Python :: 3.8
3025 Topic :: Documentation
3126 Topic :: Documentation :: Sphinx
3227 Topic :: Software Development :: Documentation
3328
3429 [options]
3530 packages = find:
36 package_dir =
37 = src
38 include_package_data = true
39 python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
40 install_requires =
41 importlib-metadata;python_version<"3.8"
42 packaging
43 Sphinx
31 package_dir = = src
32 include_package_data = True
33 python_requires = >= 3.6
4434
4535 [options.packages.find]
4636 where = src
5040 pocoo = pallets_sphinx_themes.themes.pocoo:PocooStyle
5141 jinja = pallets_sphinx_themes.themes.jinja:JinjaStyle
5242
53 [bdist_wheel]
54 universal = true
43 [tool:pytest]
44 testpaths = tests
45 filterwarnings =
46 error
47
48 [coverage:run]
49 branch = true
50 source =
51 pallets_sphinx_themes
52 tests
53
54 [coverage:paths]
55 source =
56 src
57 */site-packages
5558
5659 [flake8]
57 select = B, E, F, W, B9
60 select = B, E, F, W, B9, ISC
5861 ignore =
5962 E203
6063 E501
6265 W503
6366 max-line-length = 80
6467
68 [mypy]
69 files = src/pallets_sphinx_themes
70 python_version = 3.6
71 disallow_subclassing_any = True
72 disallow_untyped_calls = True
73 disallow_untyped_defs = True
74 disallow_incomplete_defs = True
75 no_implicit_optional = True
76 local_partial_types = True
77 no_implicit_reexport = True
78 strict_equality = True
79 warn_redundant_casts = True
80 warn_unused_configs = True
81 warn_unused_ignores = True
82 warn_return_any = True
83 warn_unreachable = True
84
6585 [egg_info]
6686 tag_build =
6787 tag_date = 0
00 from setuptools import setup
11
2 setup()
2 setup(
3 name="Pallets-Sphinx-Themes",
4 install_requires = [
5 "importlib-metadata; python_version < '3.8'",
6 "packaging",
7 "Sphinx",
8 ]
9 )
00 Metadata-Version: 2.1
11 Name: Pallets-Sphinx-Themes
2 Version: 1.2.3
2 Version: 2.0.2.dev0
33 Summary: Sphinx themes for Pallets and related projects.
4 Home-page: https://sphinx-themes.palletsprojects.com/
4 Home-page: https://github.com/pallets/pallets-sphinx-themes/
55 Author: Pallets
66 Author-email: contact@palletsprojects.com
77 License: BSD-3-Clause
8 Project-URL: Documentation, https://sphinx-themes.palletsprojects.com/
9 Project-URL: Code, https://github.com/pallets/pallets-sphinx-themes
10 Project-URL: Issue tracker, https://github.com/pallets/pallets-sphinx-themes/issues
8 Project-URL: Donate, https://palletsprojects.com/donate
9 Project-URL: Source Code, https://github.com/pallets/pallets-sphinx-themes/
10 Project-URL: Issue Tracker, https://github.com/pallets/pallets-sphinx-themes/issues/
11 Project-URL: Twitter, https://twitter.com/PalletsTeam
12 Project-URL: Chat, https://discord.gg/pallets
1113 Description: Pallets Sphinx Themes
1214 =====================
1315
4648 Classifier: License :: OSI Approved :: BSD License
4749 Classifier: Operating System :: OS Independent
4850 Classifier: Programming Language :: Python
49 Classifier: Programming Language :: Python :: 2
50 Classifier: Programming Language :: Python :: 2.7
51 Classifier: Programming Language :: Python :: 3
52 Classifier: Programming Language :: Python :: 3.5
53 Classifier: Programming Language :: Python :: 3.6
54 Classifier: Programming Language :: Python :: 3.7
55 Classifier: Programming Language :: Python :: 3.8
5651 Classifier: Topic :: Documentation
5752 Classifier: Topic :: Documentation :: Sphinx
5853 Classifier: Topic :: Software Development :: Documentation
59 Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
54 Requires-Python: >=3.6
6055 Description-Content-Type: text/x-rst
2929 src/pallets_sphinx_themes/themes/platter/static/platter.css
3030 src/pallets_sphinx_themes/themes/pocoo/404.html
3131 src/pallets_sphinx_themes/themes/pocoo/__init__.py
32 src/pallets_sphinx_themes/themes/pocoo/ethicalads.html
3233 src/pallets_sphinx_themes/themes/pocoo/layout.html
3334 src/pallets_sphinx_themes/themes/pocoo/localtoc.html
3435 src/pallets_sphinx_themes/themes/pocoo/project.html
0 Sphinx
01 packaging
1 Sphinx
22
33 [:python_version < "3.8"]
44 importlib-metadata
55 from collections import namedtuple
66
77 from sphinx.builders._epub_base import EpubBuilder
8 from sphinx.builders.singlehtml import SingleFileHTMLBuilder
89 from sphinx.errors import ExtensionError
910
1011 from .theme_check import only_pallets_theme
1112 from .theme_check import set_is_pallets_theme
1213 from .versions import load_versions
13
14 try:
15 from sphinx.builders.singlehtml import SingleFileHTMLBuilder
16 except ImportError:
17 # Sphinx 1 compatibility
18 from sphinx.builders.html import SingleFileHTMLBuilder
1914
2015 try:
2116 from importlib import metadata as importlib_metadata
0 from __future__ import print_function
1
20 import contextlib
31 import shlex
42 import subprocess
1614 from sphinx.domains import Domain
1715
1816
19 if sys.version_info.major < 3:
20 # backport shlex.quote
21 # https://github.com/python/cpython/blob
22 # /65ef7425a32ee411d8047a4fad0fc6bb9ff733b1
23 # /Lib/shlex.py#L308-L319
24 import re
25
26 def quote(s):
27 if not s:
28 return "''"
29 if re.search(r"[^\w@%+=:,./-]", s) is None:
30 return s
31 return "'" + s.replace("'", "'\"'\"'") + "'"
32
33 shlex.quote = quote
34 del quote
35
36
3717 class EofEchoingStdin(EchoingStdin):
3818 """Like :class:`click.testing.EchoingStdin` but adds a visible
3919 ``^D`` in place of the EOT character (``\x04``).
4323 """
4424
4525 def _echo(self, rv):
46 eof = False
47
48 if rv[-1] == b"\x04"[0]:
26 eof = rv[-1] == b"\x04"[0]
27
28 if eof:
4929 rv = rv[:-1]
50 eof = True
51
52 self._output.write(rv)
53
54 if eof:
55 self._output.write(b"^D\n")
30
31 if not self._paused:
32 self._output.write(rv)
33
34 if eof:
35 self._output.write(b"^D\n")
5636
5737 return rv
5838
3535 If the filter is a Jinja async variant, it is unwrapped to its sync
3636 variant to get the docs and signature.
3737 """
38 if getattr(func, "asyncfiltervariant", False):
38 if getattr(func, "jinja_async_variant", False):
3939 # unwrap async filters to their normal variant
4040 func = inspect.unwrap(func)
4141
5353 doc = doc[1:]
5454 sig = m.group(1)
5555 else:
56 if any(
57 getattr(func, attr, False)
58 for attr in ("environmentfilter", "contextfilter", "evalcontextfilter")
59 ):
56 if getattr(func, "jinja_pass_arg", None) is not None:
6057 # remove the internal-only first argument from context filters
6158 params = list(sig.parameters.values())
6259
0 <div id="ethical-ad-placement"></div>
88 {%- if page_canonical_url %}
99 <link rel="canonical" href="{{ page_canonical_url }}">
1010 {%- endif %}
11 <script>DOCUMENTATION_OPTIONS.URL_ROOT = '{{ url_root }}';</script>
1211 {{ super() }}
1312 {%- endblock %}
1413
3635
3736 {% block footer %}
3837 {{ super() }}
39 {%- if READTHEDOCS and not readthedocs_docsearch %}
40 <script>
41 if (typeof READTHEDOCS_DATA !== 'undefined') {
42 if (!READTHEDOCS_DATA.features) {
43 READTHEDOCS_DATA.features = {};
44 }
45 READTHEDOCS_DATA.features.docsearch_disabled = true;
46 }
47 </script>
48 {%- endif %}
4938 {{ js_tag("_static/version_warning_offset.js") }}
5039 {% endblock %}
44 body {
55 font-family: 'Garamond', 'Georgia', serif;
66 font-size: 17px;
7 text-align: justify;
78 background-color: #fff;
89 color: #3e4349;
910 margin: 0;
480481 white-space: nowrap;
481482 border: 0;
482483 }
484
485 /* -- sphinx-tabs -------------------------------------------------- */
486
487 .sphinx-tabs {
488 margin-bottom: 0;
489 }
490
491 .sphinx-tabs .ui.menu {
492 font-family: 'Garamond', 'Georgia', serif !important;
493 }
494
495 .sphinx-tabs .ui.attached.menu {
496 border-bottom: none
497 }
498
499 .sphinx-tabs .ui.tabular.menu .item {
500 border-bottom: 2px solid transparent;
501 border-left: none;
502 border-right: none;
503 border-top: none;
504 padding: .3em 0.6em;
505 }
506
507 .sphinx-tabs .ui.attached.segment, .ui.segment {
508 border: 0;
509 padding: 0;
510 }
11 inherit = basic
22 stylesheet = pocoo.css
33 pygments_style = pocoo
4 sidebars = localtoc.html, relations.html, searchbox.html
4 sidebars = localtoc.html, relations.html, searchbox.html, ethicalads.html
55
66 [options]
77 index_sidebar_logo = True
6666 versions = []
6767
6868 for slug, _ in config_versions:
69 dev = slug in {"master", "default", "latest"}
69 dev = slug in {"main", "master", "default", "latest"}
7070
7171 if dev:
7272 name = "Development"