Import upstream version 2.0.1
Debian Janitor
2 years ago
0 | Version 2.0.1 | |
1 | ------------- | |
2 | ||
3 | Released 2021-05-20 | |
4 | ||
5 | - Remove workaround for search URLs when using the ``dirhtml`` | |
6 | builder. The issue has been fixed in Sphinx and the workaround was | |
7 | causing the issue again. :issue:`39` | |
8 | - Remove ``html_context["readthedocs_docsearch"]`` for controlling | |
9 | whether Read the Docs' search is used. :issue:`40` | |
10 | - Add an ``ethicalads.html`` sidebar to have Read the Docs always show | |
11 | ads in the sidebar instead of other possible locations. The sidebar | |
12 | is enabled by default at the end of the list. :issue:`41` | |
13 | ||
14 | ||
15 | Version 2.0.0 | |
16 | ------------- | |
17 | ||
18 | Released 2021-05-11 | |
19 | ||
20 | - Drop Python < 3.6. | |
21 | - Update for Jinja 2.0. | |
22 | - Update for Click 8.0. | |
23 | ||
24 | ||
0 | 25 | Version 1.2.3 |
1 | 26 | ------------- |
2 | 27 |
0 | 0 | Metadata-Version: 2.1 |
1 | 1 | Name: Pallets-Sphinx-Themes |
2 | Version: 1.2.3 | |
2 | Version: 2.0.1 | |
3 | 3 | 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/ | |
5 | 5 | Author: Pallets |
6 | 6 | Author-email: contact@palletsprojects.com |
7 | 7 | 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 | |
11 | 13 | Description: Pallets Sphinx Themes |
12 | 14 | ===================== |
13 | 15 | |
46 | 48 | Classifier: License :: OSI Approved :: BSD License |
47 | 49 | Classifier: Operating System :: OS Independent |
48 | 50 | 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 | |
56 | 51 | Classifier: Topic :: Documentation |
57 | 52 | Classifier: Topic :: Documentation :: Sphinx |
58 | 53 | 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 | |
60 | 55 | Description-Content-Type: text/x-rst |
0 | 0 | [metadata] |
1 | 1 | name = Pallets-Sphinx-Themes |
2 | version = 1.2.3 | |
3 | url = https://sphinx-themes.palletsprojects.com/ | |
2 | version = 2.0.1 | |
3 | url = https://github.com/pallets/pallets-sphinx-themes/ | |
4 | 4 | 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 | |
8 | 10 | license = BSD-3-Clause |
9 | license_file = LICENSE.rst | |
11 | license_files = LICENSE.rst | |
10 | 12 | author = Pallets |
11 | 13 | author_email = contact@palletsprojects.com |
12 | 14 | description = Sphinx themes for Pallets and related projects. |
13 | long_description = file:README.rst | |
15 | long_description = file: README.rst | |
14 | 16 | long_description_content_type = text/x-rst |
15 | 17 | classifiers = |
16 | 18 | Development Status :: 5 - Production/Stable |
20 | 22 | License :: OSI Approved :: BSD License |
21 | 23 | Operating System :: OS Independent |
22 | 24 | 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 | |
30 | 25 | Topic :: Documentation |
31 | 26 | Topic :: Documentation :: Sphinx |
32 | 27 | Topic :: Software Development :: Documentation |
33 | 28 | |
34 | 29 | [options] |
35 | 30 | 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 | |
44 | 34 | |
45 | 35 | [options.packages.find] |
46 | 36 | where = src |
50 | 40 | pocoo = pallets_sphinx_themes.themes.pocoo:PocooStyle |
51 | 41 | jinja = pallets_sphinx_themes.themes.jinja:JinjaStyle |
52 | 42 | |
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 | |
55 | 58 | |
56 | 59 | [flake8] |
57 | select = B, E, F, W, B9 | |
60 | select = B, E, F, W, B9, ISC | |
58 | 61 | ignore = |
59 | 62 | E203 |
60 | 63 | E501 |
62 | 65 | W503 |
63 | 66 | max-line-length = 80 |
64 | 67 | |
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 | ||
65 | 85 | [egg_info] |
66 | 86 | tag_build = |
67 | 87 | tag_date = 0 |
0 | 0 | from setuptools import setup |
1 | 1 | |
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 | ) |
0 | 0 | Metadata-Version: 2.1 |
1 | 1 | Name: Pallets-Sphinx-Themes |
2 | Version: 1.2.3 | |
2 | Version: 2.0.1 | |
3 | 3 | 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/ | |
5 | 5 | Author: Pallets |
6 | 6 | Author-email: contact@palletsprojects.com |
7 | 7 | 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 | |
11 | 13 | Description: Pallets Sphinx Themes |
12 | 14 | ===================== |
13 | 15 | |
46 | 48 | Classifier: License :: OSI Approved :: BSD License |
47 | 49 | Classifier: Operating System :: OS Independent |
48 | 50 | 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 | |
56 | 51 | Classifier: Topic :: Documentation |
57 | 52 | Classifier: Topic :: Documentation :: Sphinx |
58 | 53 | 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 | |
60 | 55 | Description-Content-Type: text/x-rst |
29 | 29 | src/pallets_sphinx_themes/themes/platter/static/platter.css |
30 | 30 | src/pallets_sphinx_themes/themes/pocoo/404.html |
31 | 31 | src/pallets_sphinx_themes/themes/pocoo/__init__.py |
32 | src/pallets_sphinx_themes/themes/pocoo/ethicalads.html | |
32 | 33 | src/pallets_sphinx_themes/themes/pocoo/layout.html |
33 | 34 | src/pallets_sphinx_themes/themes/pocoo/localtoc.html |
34 | 35 | src/pallets_sphinx_themes/themes/pocoo/project.html |
5 | 5 | from collections import namedtuple |
6 | 6 | |
7 | 7 | from sphinx.builders._epub_base import EpubBuilder |
8 | from sphinx.builders.singlehtml import SingleFileHTMLBuilder | |
8 | 9 | from sphinx.errors import ExtensionError |
9 | 10 | |
10 | 11 | from .theme_check import only_pallets_theme |
11 | 12 | from .theme_check import set_is_pallets_theme |
12 | 13 | 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 | |
19 | 14 | |
20 | 15 | try: |
21 | 16 | from importlib import metadata as importlib_metadata |
0 | from __future__ import print_function | |
1 | ||
2 | 0 | import contextlib |
3 | 1 | import shlex |
4 | 2 | import subprocess |
16 | 14 | from sphinx.domains import Domain |
17 | 15 | |
18 | 16 | |
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 | ||
37 | 17 | class EofEchoingStdin(EchoingStdin): |
38 | 18 | """Like :class:`click.testing.EchoingStdin` but adds a visible |
39 | 19 | ``^D`` in place of the EOT character (``\x04``). |
43 | 23 | """ |
44 | 24 | |
45 | 25 | 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: | |
49 | 29 | 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") | |
56 | 36 | |
57 | 37 | return rv |
58 | 38 |
35 | 35 | If the filter is a Jinja async variant, it is unwrapped to its sync |
36 | 36 | variant to get the docs and signature. |
37 | 37 | """ |
38 | if getattr(func, "asyncfiltervariant", False): | |
38 | if getattr(func, "jinja_async_variant", False): | |
39 | 39 | # unwrap async filters to their normal variant |
40 | 40 | func = inspect.unwrap(func) |
41 | 41 | |
53 | 53 | doc = doc[1:] |
54 | 54 | sig = m.group(1) |
55 | 55 | 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: | |
60 | 57 | # remove the internal-only first argument from context filters |
61 | 58 | params = list(sig.parameters.values()) |
62 | 59 |
0 | <div id="ethical-ad-placement"></div> |
8 | 8 | {%- if page_canonical_url %} |
9 | 9 | <link rel="canonical" href="{{ page_canonical_url }}"> |
10 | 10 | {%- endif %} |
11 | <script>DOCUMENTATION_OPTIONS.URL_ROOT = '{{ url_root }}';</script> | |
12 | 11 | {{ super() }} |
13 | 12 | {%- endblock %} |
14 | 13 | |
36 | 35 | |
37 | 36 | {% block footer %} |
38 | 37 | {{ 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 %} | |
49 | 38 | {{ js_tag("_static/version_warning_offset.js") }} |
50 | 39 | {% endblock %} |
480 | 480 | white-space: nowrap; |
481 | 481 | border: 0; |
482 | 482 | } |
483 | ||
484 | /* -- sphinx-tabs -------------------------------------------------- */ | |
485 | ||
486 | .sphinx-tabs { | |
487 | margin-bottom: 0; | |
488 | } | |
489 | ||
490 | .sphinx-tabs .ui.menu { | |
491 | font-family: 'Garamond', 'Georgia', serif !important; | |
492 | } | |
493 | ||
494 | .sphinx-tabs .ui.attached.menu { | |
495 | border-bottom: none | |
496 | } | |
497 | ||
498 | .sphinx-tabs .ui.tabular.menu .item { | |
499 | border-bottom: 2px solid transparent; | |
500 | border-left: none; | |
501 | border-right: none; | |
502 | border-top: none; | |
503 | padding: .3em 0.6em; | |
504 | } | |
505 | ||
506 | .sphinx-tabs .ui.attached.segment, .ui.segment { | |
507 | border: 0; | |
508 | padding: 0; | |
509 | } |