New upstream version 1.1.4
Ondřej Nový
4 years ago
0 | Version 1.1.4 | |
1 | ============= | |
2 | ||
3 | Released 2019-01-28 | |
4 | ||
5 | - Store a page's canonical URL in | |
6 | ``html_context["page_canonical_url"]`` rather than overwriting | |
7 | ``canonical_url``, for compatibility with Read the Docs. (`#21`_) | |
8 | ||
9 | .. _#21: https://github.com/pallets/pallets-sphinx-themes/pull/21 | |
10 | ||
11 | ||
12 | Version 1.1.3 | |
13 | ============= | |
14 | ||
15 | Released 2019-01-28 | |
16 | ||
17 | - Move the Read the Docs search flag to the ``footer`` block to ensure | |
18 | it executes after Read the Docs injects its data. (`#20`_) | |
19 | ||
20 | .. _#20: https://github.com/pallets/pallets-sphinx-themes/pull/20 | |
21 | ||
22 | ||
0 | 23 | Version 1.1.2 |
1 | 24 | ============= |
2 | 25 |
0 | `BSD 3-Clause <https://opensource.org/licenses/BSD-3-Clause>`_ | |
1 | ||
2 | Copyright © 2014 by the Pallets team. | |
3 | ||
4 | Some rights reserved. | |
0 | Copyright 2007 Pallets | |
5 | 1 | |
6 | 2 | Redistribution and use in source and binary forms, with or without |
7 | 3 | modification, are permitted provided that the following conditions are |
8 | 4 | met: |
9 | 5 | |
10 | - Redistributions of source code must retain the above copyright | |
6 | 1. Redistributions of source code must retain the above copyright | |
11 | 7 | notice, this list of conditions and the following disclaimer. |
12 | 8 | |
13 | - Redistributions in binary form must reproduce the above copyright | |
9 | 2. Redistributions in binary form must reproduce the above copyright | |
14 | 10 | notice, this list of conditions and the following disclaimer in the |
15 | 11 | documentation and/or other materials provided with the distribution. |
16 | 12 | |
17 | - Neither the name of the copyright holder nor the names of its | |
13 | 3. Neither the name of the copyright holder nor the names of its | |
18 | 14 | contributors may be used to endorse or promote products derived from |
19 | 15 | this software without specific prior written permission. |
20 | 16 | |
21 | We kindly ask you to use these themes in an unmodified manner only with | |
22 | Pallets and Pallets-related projects, not for unrelated projects. If you | |
23 | like the visual style and want to use it for your own projects, please | |
24 | consider making some larger changes to the themes (such as changing font | |
25 | faces, sizes, colors or margins). | |
26 | ||
27 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND | |
28 | CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | |
29 | BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
30 | FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | |
31 | COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | |
32 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
33 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |
34 | USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | |
35 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
36 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
37 | THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF | |
38 | SUCH DAMAGE. | |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | |
20 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
21 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | |
23 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | |
24 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | |
25 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
26 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
0 | include CHANGES.rst LICENSE.rst | |
0 | include CHANGES.rst | |
1 | include LICENSE.rst | |
1 | 2 | graft src/pallets_sphinx_themes |
2 | 3 | global-exclude *.py[co] |
0 | 0 | Metadata-Version: 1.1 |
1 | 1 | Name: Pallets-Sphinx-Themes |
2 | Version: 1.1.2 | |
2 | Version: 1.1.4 | |
3 | 3 | Summary: Sphinx themes for Pallets and related projects. |
4 | 4 | Home-page: https://github.com/pallets/pallets-sphinx-themes/ |
5 | Author: The Pallets Team | |
5 | Author: Pallets | |
6 | 6 | Author-email: contact@palletsprojects.com |
7 | License: BSD | |
7 | License: BSD-3-Clause | |
8 | 8 | Description: Pallets Sphinx Themes |
9 | 9 | ===================== |
10 | 10 |
7 | 7 | |
8 | 8 | setup( |
9 | 9 | name="Pallets-Sphinx-Themes", |
10 | version="1.1.2", | |
10 | version="1.1.4", | |
11 | 11 | url="https://github.com/pallets/pallets-sphinx-themes/", |
12 | license="BSD", | |
13 | author="The Pallets Team", | |
12 | license="BSD-3-Clause", | |
13 | author="Pallets", | |
14 | 14 | author_email="contact@palletsprojects.com", |
15 | 15 | description="Sphinx themes for Pallets and related projects.", |
16 | 16 | long_description=readme, |
18 | 18 | package_dir={"": "src"}, |
19 | 19 | include_package_data=True, |
20 | 20 | zip_safe=False, |
21 | install_requires=["sphinx", "packaging"], | |
21 | install_requires=["Sphinx", "packaging"], | |
22 | 22 | entry_points={ |
23 | 23 | "pygments.styles": [ |
24 | 24 | "pocoo = pallets_sphinx_themes.themes.pocoo:PocooStyle", |
0 | 0 | Metadata-Version: 1.1 |
1 | 1 | Name: Pallets-Sphinx-Themes |
2 | Version: 1.1.2 | |
2 | Version: 1.1.4 | |
3 | 3 | Summary: Sphinx themes for Pallets and related projects. |
4 | 4 | Home-page: https://github.com/pallets/pallets-sphinx-themes/ |
5 | Author: The Pallets Team | |
5 | Author: Pallets | |
6 | 6 | Author-email: contact@palletsprojects.com |
7 | License: BSD | |
7 | License: BSD-3-Clause | |
8 | 8 | Description: Pallets Sphinx Themes |
9 | 9 | ===================== |
10 | 10 |
63 | 63 | def canonical_url(app, pagename, templatename, context, doctree): |
64 | 64 | """Build the canonical URL for a page. Appends the path for the |
65 | 65 | page to the base URL specified by the |
66 | ``html_context["canonical_url"]`` config. | |
66 | ``html_context["canonical_url"]`` config and stores it in | |
67 | ``html_context["page_canonical_url"]``. | |
67 | 68 | """ |
68 | 69 | base = context.get("canonical_url") |
69 | 70 | |
71 | 72 | return |
72 | 73 | |
73 | 74 | target = app.builder.get_target_uri(pagename) |
74 | context["canonical_url"] = base + target | |
75 | context["page_canonical_url"] = base + target | |
75 | 76 | |
76 | 77 | |
77 | 78 | @only_pallets_theme() |
17 | 17 | pre, * pre { padding: 7px 0 7px 30px!important; |
18 | 18 | margin: 15px 0!important; |
19 | 19 | line-height: 1.3; } |
20 | ||
20 | ||
21 | 21 | /* colors */ |
22 | 22 | div.body { color: #3E4349; } |
23 | 23 | a { color: #5D2CD1; } |
5 | 5 | {%- endset %} |
6 | 6 | |
7 | 7 | {% block extrahead %} |
8 | {%- if canonical_url %} | |
9 | <link rel="canonical" href="{{ canonical_url }}"> | |
8 | {%- if page_canonical_url %} | |
9 | <link rel="canonical" href="{{ page_canonical_url }}"> | |
10 | 10 | {%- endif %} |
11 | 11 | <script>DOCUMENTATION_OPTIONS.URL_ROOT = '{{ url_root }}';</script> |
12 | {%- if READTHEDOCS and not readthedocs_docsearch %} | |
13 | <script> | |
14 | if (typeof READTHEDOCS_DATA !== 'undefined') { | |
15 | if (!READTHEDOCS_DATA.features) { | |
16 | READTHEDOCS_DATA.features = {}; | |
17 | } | |
18 | READTHEDOCS_DATA.features.docsearch_disabled = true; | |
19 | } | |
20 | </script> | |
21 | {%- endif %} | |
22 | 12 | {{ super() }} |
23 | 13 | {%- endblock %} |
24 | 14 | |
43 | 33 | <span id="sidebar-top"></span> |
44 | 34 | {{- super() }} |
45 | 35 | {%- endblock %} |
36 | ||
37 | {% block footer %} | |
38 | {{ 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 | {% endblock %} |