diff --git a/.flake8 b/.flake8 index 474181f8b89..36d126945d4 100644 --- a/.flake8 +++ b/.flake8 @@ -19,9 +19,7 @@ ignore = SIM115, SIM117, SIM223, - SIM300, SIM401, - SIM904, SIM905, SIM907, exclude = diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index fb0d7281ed9..218ad439c70 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -23,7 +23,7 @@ body: ``index.rst`` file, and for ``sphinx.ext.autodoc`` bugs, this should ideally be a single ``index.rst`` file, and a single example Python module. - value: | + placeholder: | Minimal method (you can also paste the contents of ``index.rst`` and ``conf.py`` into this report): ```bash @@ -50,9 +50,10 @@ body: value: | ## Environment info - - type: input + - type: textarea attributes: label: Environment Information + render: text description: >- Install the latest Sphinx ``pip install -U "sphinx>=5.3"`` @@ -60,14 +61,15 @@ body: and paste the output here. validations: required: true - - type: input + - type: textarea attributes: label: Sphinx extensions + render: python description: >- Attempt to reproduce your error with the smallest set of extensions possible. This makes it easier to determine where the problem you are encountering is. - e.g. ["sphinx.ext.autodoc", "recommonmark"] + e.g. ``["sphinx.ext.autodoc", "recommonmark"]`` validations: required: false - type: textarea diff --git a/LICENSE b/LICENSE index e0becc60be5..1442dea8fa0 100644 --- a/LICENSE +++ b/LICENSE @@ -4,7 +4,7 @@ License for Sphinx Unless otherwise indicated, all code in the Sphinx project is licenced under the two clause BSD licence below. -Copyright (c) 2007-2022 by the Sphinx team (see AUTHORS file). +Copyright (c) 2007-2023 by the Sphinx team (see AUTHORS file). All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/doc/extdev/deprecated.rst b/doc/extdev/deprecated.rst index 1692f2d4ec3..2315413926f 100644 --- a/doc/extdev/deprecated.rst +++ b/doc/extdev/deprecated.rst @@ -144,12 +144,12 @@ The following is a list of deprecated interfaces. * - ``favicon`` variable in HTML templates - 4.0 - - TBD + - 6.0 - ``favicon_url`` * - ``logo`` variable in HTML templates - 4.0 - - TBD + - 6.0 - ``logo_url`` * - ``sphinx.directives.patches.ListTable`` diff --git a/pyproject.toml b/pyproject.toml index 1f060208d00..dfe93108d8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ dependencies = [ "sphinxcontrib-serializinghtml>=1.1.5", "sphinxcontrib-qthelp", "Jinja2>=3.0", - "Pygments>=2.12", + "Pygments>=2.13", "docutils>=0.18,<0.20", "snowballstemmer>=2.0", "babel>=2.9", diff --git a/sphinx/builders/epub3.py b/sphinx/builders/epub3.py index 76776554e9f..6b5d7e475e2 100644 --- a/sphinx/builders/epub3.py +++ b/sphinx/builders/epub3.py @@ -148,11 +148,11 @@ def navigation_doc_metadata(self, navlist: List[NavPoint]) -> Dict[str, Any]: """Create a dictionary with all metadata for the nav.xhtml file properly escaped. """ - metadata = {} - metadata['lang'] = html.escape(self.config.epub_language) - metadata['toc_locale'] = html.escape(self.guide_titles['toc']) - metadata['navlist'] = navlist - return metadata + return { + 'lang': html.escape(self.config.epub_language), + 'toc_locale': html.escape(self.guide_titles['toc']), + 'navlist': navlist + } def build_navigation_doc(self) -> None: """Write the metainfo file nav.xhtml.""" diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 4bba2724ea2..b79a4a78080 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -290,6 +290,7 @@ def _bug_report_info() -> int: import docutils import jinja2 + import pygments print('Please paste all output below into the bug report template\n\n') print('```text') @@ -299,6 +300,7 @@ def _bug_report_info() -> int: print(f'Sphinx version: {sphinx.__display_version__}') print(f'Docutils version: {docutils.__version__}') print(f'Jinja2 version: {jinja2.__version__}') + print(f'Pygments version: {pygments.__version__}') print('```') return 0 diff --git a/sphinx/templates/graphviz/graphviz.css b/sphinx/templates/graphviz/graphviz.css index 19e7afd385b..8d81c02ed99 100644 --- a/sphinx/templates/graphviz/graphviz.css +++ b/sphinx/templates/graphviz/graphviz.css @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- graphviz extension. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/agogo/layout.html b/sphinx/themes/agogo/layout.html index d76050c9baa..75c21c26ca5 100644 --- a/sphinx/themes/agogo/layout.html +++ b/sphinx/themes/agogo/layout.html @@ -5,7 +5,7 @@ Sphinx layout template for the agogo theme, originally written by Andi Albrecht. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "basic/layout.html" %} diff --git a/sphinx/themes/agogo/static/agogo.css_t b/sphinx/themes/agogo/static/agogo.css_t index 14c5e52ce13..a2386942591 100644 --- a/sphinx/themes/agogo/static/agogo.css_t +++ b/sphinx/themes/agogo/static/agogo.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- agogo theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/basic/defindex.html b/sphinx/themes/basic/defindex.html index 6f370f2c269..6fcdb9ce019 100644 --- a/sphinx/themes/basic/defindex.html +++ b/sphinx/themes/basic/defindex.html @@ -4,7 +4,7 @@ Default template for the "index" page. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #}{{ warn('Now base template defindex.html is deprecated.') }} {%- extends "layout.html" %} diff --git a/sphinx/themes/basic/domainindex.html b/sphinx/themes/basic/domainindex.html index 9b4b0ccac9f..c5b0dad61e0 100644 --- a/sphinx/themes/basic/domainindex.html +++ b/sphinx/themes/basic/domainindex.html @@ -4,7 +4,7 @@ Template for domain indices (module index, ...). - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "layout.html" %} diff --git a/sphinx/themes/basic/genindex-single.html b/sphinx/themes/basic/genindex-single.html index faf9e6ef094..dd1d1f04a52 100644 --- a/sphinx/themes/basic/genindex-single.html +++ b/sphinx/themes/basic/genindex-single.html @@ -4,7 +4,7 @@ Template for a "single" page of a split index. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {% macro indexentries(firstname, links) %} diff --git a/sphinx/themes/basic/genindex-split.html b/sphinx/themes/basic/genindex-split.html index aa8b7853e4b..df2c2c2f72c 100644 --- a/sphinx/themes/basic/genindex-split.html +++ b/sphinx/themes/basic/genindex-split.html @@ -4,7 +4,7 @@ Template for a "split" index overview page. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "layout.html" %} diff --git a/sphinx/themes/basic/genindex.html b/sphinx/themes/basic/genindex.html index 470acf41d93..465b612aa48 100644 --- a/sphinx/themes/basic/genindex.html +++ b/sphinx/themes/basic/genindex.html @@ -4,7 +4,7 @@ Template for an "all-in-one" index. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "layout.html" %} diff --git a/sphinx/themes/basic/globaltoc.html b/sphinx/themes/basic/globaltoc.html index 47ba991e1dd..dd5cd6f35b2 100644 --- a/sphinx/themes/basic/globaltoc.html +++ b/sphinx/themes/basic/globaltoc.html @@ -4,7 +4,7 @@ Sphinx sidebar template: global table of contents. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #}

{{ _('Table of Contents') }}

diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html index 6f5a7f82362..f22b1212419 100644 --- a/sphinx/themes/basic/layout.html +++ b/sphinx/themes/basic/layout.html @@ -4,7 +4,7 @@ Master layout template for Sphinx themes. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- block doctype -%}{%- if html5_doctype %} diff --git a/sphinx/themes/basic/localtoc.html b/sphinx/themes/basic/localtoc.html index efb590a06a5..f53db07a8f6 100644 --- a/sphinx/themes/basic/localtoc.html +++ b/sphinx/themes/basic/localtoc.html @@ -4,7 +4,7 @@ Sphinx sidebar template: local table of contents. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- if display_toc %} diff --git a/sphinx/themes/basic/page.html b/sphinx/themes/basic/page.html index a02f4402035..a490fc69c16 100644 --- a/sphinx/themes/basic/page.html +++ b/sphinx/themes/basic/page.html @@ -4,7 +4,7 @@ Master template for simple pages. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "layout.html" %} diff --git a/sphinx/themes/basic/relations.html b/sphinx/themes/basic/relations.html index ac8308fccad..86ed02eed46 100644 --- a/sphinx/themes/basic/relations.html +++ b/sphinx/themes/basic/relations.html @@ -4,7 +4,7 @@ Sphinx sidebar template: relation links. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- if prev %} diff --git a/sphinx/themes/basic/search.html b/sphinx/themes/basic/search.html index 96bb9b9b403..f29d9db5089 100644 --- a/sphinx/themes/basic/search.html +++ b/sphinx/themes/basic/search.html @@ -4,7 +4,7 @@ Template for the search page. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "layout.html" %} diff --git a/sphinx/themes/basic/searchbox.html b/sphinx/themes/basic/searchbox.html index 90c5a6877c9..0cd45230276 100644 --- a/sphinx/themes/basic/searchbox.html +++ b/sphinx/themes/basic/searchbox.html @@ -4,7 +4,7 @@ Sphinx sidebar template: quick search box. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- if pagename != "search" and builder != "singlehtml" %} diff --git a/sphinx/themes/basic/sourcelink.html b/sphinx/themes/basic/sourcelink.html index 3b5b91d994e..2ff0f0059b4 100644 --- a/sphinx/themes/basic/sourcelink.html +++ b/sphinx/themes/basic/sourcelink.html @@ -4,7 +4,7 @@ Sphinx sidebar template: "show source" link. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- if show_source and has_source and sourcename %} diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index 401824a5cba..9d5e4419d04 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- basic theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/basic/static/doctools.js b/sphinx/themes/basic/static/doctools.js index 527b876ca63..d06a71d7518 100644 --- a/sphinx/themes/basic/static/doctools.js +++ b/sphinx/themes/basic/static/doctools.js @@ -4,7 +4,7 @@ * * Base JavaScript utilities for all Sphinx HTML documentation. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/basic/static/language_data.js_t b/sphinx/themes/basic/static/language_data.js_t index 9811d4529aa..80f2a4f5343 100644 --- a/sphinx/themes/basic/static/language_data.js_t +++ b/sphinx/themes/basic/static/language_data.js_t @@ -5,7 +5,7 @@ * This script contains the language-specific data used by searchtools.js, * namely the list of stopwords, stemmer, scorer and splitter. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/basic/static/searchtools.js b/sphinx/themes/basic/static/searchtools.js index e89e34d4e77..97d56a74d82 100644 --- a/sphinx/themes/basic/static/searchtools.js +++ b/sphinx/themes/basic/static/searchtools.js @@ -4,7 +4,7 @@ * * Sphinx JavaScript utilities for the full-text search. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/bizstyle/layout.html b/sphinx/themes/bizstyle/layout.html index 603eb23260f..6fd1e18edd5 100644 --- a/sphinx/themes/bizstyle/layout.html +++ b/sphinx/themes/bizstyle/layout.html @@ -4,7 +4,7 @@ Sphinx layout template for the bizstyle theme. - :copyright: Copyright 2011-2014 by Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {% extends "basic/layout.html" %} diff --git a/sphinx/themes/bizstyle/static/bizstyle.css_t b/sphinx/themes/bizstyle/static/bizstyle.css_t index a96aef5772b..1f012c4c208 100644 --- a/sphinx/themes/bizstyle/static/bizstyle.css_t +++ b/sphinx/themes/bizstyle/static/bizstyle.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- business style theme. * - * :copyright: Copyright 2011-2014 by Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/bizstyle/static/bizstyle.js_t b/sphinx/themes/bizstyle/static/bizstyle.js_t index 959c5c5827b..fd0865e5d8a 100644 --- a/sphinx/themes/bizstyle/static/bizstyle.js_t +++ b/sphinx/themes/bizstyle/static/bizstyle.js_t @@ -6,7 +6,7 @@ // // This theme was created by referring to 'sphinxdoc' // -// :copyright: Copyright 2012-2014 by Sphinx team, see AUTHORS. +// :copyright: Copyright 2007-2023 by Sphinx team, see AUTHORS. // :license: BSD, see LICENSE for details. // const initialiseBizStyle = () => { diff --git a/sphinx/themes/classic/layout.html b/sphinx/themes/classic/layout.html index be9c4f441e8..e6a5c43bc49 100644 --- a/sphinx/themes/classic/layout.html +++ b/sphinx/themes/classic/layout.html @@ -4,7 +4,7 @@ Sphinx layout template for the classic theme. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "basic/layout.html" %} diff --git a/sphinx/themes/classic/static/classic.css_t b/sphinx/themes/classic/static/classic.css_t index a15e7eeae75..8a903e82295 100644 --- a/sphinx/themes/classic/static/classic.css_t +++ b/sphinx/themes/classic/static/classic.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- classic theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/classic/static/sidebar.js_t b/sphinx/themes/classic/static/sidebar.js_t index 1141cc2f2fc..32ae506aae0 100644 --- a/sphinx/themes/classic/static/sidebar.js_t +++ b/sphinx/themes/classic/static/sidebar.js_t @@ -16,7 +16,7 @@ * Once the browser is closed the cookie is deleted and the position * reset to the default (expanded). * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/epub/epub-cover.html b/sphinx/themes/epub/epub-cover.html index b421d4479e3..bb348bb9dba 100644 --- a/sphinx/themes/epub/epub-cover.html +++ b/sphinx/themes/epub/epub-cover.html @@ -4,7 +4,7 @@ Sample template for the html cover page. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "layout.html" %} diff --git a/sphinx/themes/epub/layout.html b/sphinx/themes/epub/layout.html index 63eaed84e63..f4bcf976100 100644 --- a/sphinx/themes/epub/layout.html +++ b/sphinx/themes/epub/layout.html @@ -4,7 +4,7 @@ Sphinx layout template for the epub theme. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "basic/layout.html" %} diff --git a/sphinx/themes/epub/static/epub.css_t b/sphinx/themes/epub/static/epub.css_t index 245582f6191..767d558be20 100644 --- a/sphinx/themes/epub/static/epub.css_t +++ b/sphinx/themes/epub/static/epub.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- epub theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/haiku/layout.html b/sphinx/themes/haiku/layout.html index cf1bd077bb5..4e148260279 100644 --- a/sphinx/themes/haiku/layout.html +++ b/sphinx/themes/haiku/layout.html @@ -4,7 +4,7 @@ Sphinx layout template for the haiku theme. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "basic/layout.html" %} diff --git a/sphinx/themes/haiku/static/haiku.css_t b/sphinx/themes/haiku/static/haiku.css_t index b338d94bdc8..bccc3ea06e5 100644 --- a/sphinx/themes/haiku/static/haiku.css_t +++ b/sphinx/themes/haiku/static/haiku.css_t @@ -16,7 +16,7 @@ * Braden Ewing * Humdinger * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/nature/static/nature.css_t b/sphinx/themes/nature/static/nature.css_t index 57e1ba7cfcc..a2f3710e168 100644 --- a/sphinx/themes/nature/static/nature.css_t +++ b/sphinx/themes/nature/static/nature.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- nature theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/nonav/layout.html b/sphinx/themes/nonav/layout.html index 264bce94ffa..06607f4695f 100644 --- a/sphinx/themes/nonav/layout.html +++ b/sphinx/themes/nonav/layout.html @@ -4,7 +4,7 @@ Sphinx layout template for the any help system theme. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "basic/layout.html" %} diff --git a/sphinx/themes/nonav/static/nonav.css_t b/sphinx/themes/nonav/static/nonav.css_t index c66ae99ad1c..71e3ffc08c3 100644 --- a/sphinx/themes/nonav/static/nonav.css_t +++ b/sphinx/themes/nonav/static/nonav.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- nonav theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/pyramid/static/epub.css_t b/sphinx/themes/pyramid/static/epub.css_t index 12cb97487d3..798054bdf05 100644 --- a/sphinx/themes/pyramid/static/epub.css_t +++ b/sphinx/themes/pyramid/static/epub.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- default theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/pyramid/static/pyramid.css_t b/sphinx/themes/pyramid/static/pyramid.css_t index 46b613c2bd6..4de53279805 100644 --- a/sphinx/themes/pyramid/static/pyramid.css_t +++ b/sphinx/themes/pyramid/static/pyramid.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- pylons theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/scrolls/layout.html b/sphinx/themes/scrolls/layout.html index 57554468032..da91ee90701 100644 --- a/sphinx/themes/scrolls/layout.html +++ b/sphinx/themes/scrolls/layout.html @@ -5,7 +5,7 @@ Sphinx layout template for the scrolls theme, originally written by Armin Ronacher. - :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- extends "basic/layout.html" %} diff --git a/sphinx/themes/scrolls/static/scrolls.css_t b/sphinx/themes/scrolls/static/scrolls.css_t index 58bc7dedc55..c8b947d40ac 100644 --- a/sphinx/themes/scrolls/static/scrolls.css_t +++ b/sphinx/themes/scrolls/static/scrolls.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- scrolls theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t b/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t index cfd16e31796..36d05907e17 100644 --- a/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t +++ b/sphinx/themes/sphinxdoc/static/sphinxdoc.css_t @@ -5,7 +5,7 @@ * Sphinx stylesheet -- sphinxdoc theme. Originally created by * Armin Ronacher for Werkzeug. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/sphinx/themes/traditional/static/traditional.css_t b/sphinx/themes/traditional/static/traditional.css_t index 2202ba8070e..085c98a8ca8 100644 --- a/sphinx/themes/traditional/static/traditional.css_t +++ b/sphinx/themes/traditional/static/traditional.css_t @@ -4,7 +4,7 @@ * * Sphinx stylesheet -- traditional docs.python.org theme. * - * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS. + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ diff --git a/tests/roots/test-changes/conf.py b/tests/roots/test-changes/conf.py index e9158c42988..c3b2169e4aa 100644 --- a/tests/roots/test-changes/conf.py +++ b/tests/roots/test-changes/conf.py @@ -1,4 +1,4 @@ project = 'Sphinx ChangesBuilder tests' -copyright = '2007-2022 by the Sphinx team, see AUTHORS' +copyright = '2007-2023 by the Sphinx team, see AUTHORS' version = '0.6' release = '0.6alpha1' diff --git a/tests/roots/test-root/conf.py b/tests/roots/test-root/conf.py index 1065cd1930f..6583fbb80eb 100644 --- a/tests/roots/test-root/conf.py +++ b/tests/roots/test-root/conf.py @@ -20,7 +20,7 @@ source_suffix = ['.txt', '.add', '.foo'] project = 'Sphinx ' -copyright = '2010-2016, Georg Brandl & Team' +copyright = '1234-6789, copyright text credits' # If this is changed, remember to update the versionchanges! version = '0.6' release = '0.6alpha1' diff --git a/tests/test_build_html.py b/tests/test_build_html.py index dee65613f9d..11a03b944c0 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -358,7 +358,7 @@ def test_html4_deprecation(make_app, tempdir): (".//li[@class='toctree-l1']/a", 'Testing various markup'), (".//li[@class='toctree-l2']/a", 'Inline markup'), (".//title", 'Sphinx '), - (".//div[@class='footer']", 'Georg Brandl & Team'), + (".//div[@class='footer']", 'copyright text credits'), (".//a[@href='http://python.org/']" "[@class='reference external']", ''), (".//li/p/a[@href='genindex.html']/span", 'Index'), diff --git a/tests/test_ext_viewcode.py b/tests/test_ext_viewcode.py index 7750b8da055..6d443d1c6d7 100644 --- a/tests/test_ext_viewcode.py +++ b/tests/test_ext_viewcode.py @@ -2,6 +2,7 @@ import re +import pygments import pytest @@ -31,14 +32,24 @@ def test_viewcode(app, status, warning): result = (app.outdir / '_modules/spam/mod1.html').read_text(encoding='utf8') result = re.sub('', '', result) # filter pygments classes - assert ('
[docs]' - '@decorator\n' - 'class Class1' - '(object):\n' - ' """\n' - ' this is Class1\n' - ' """
\n') in result + if pygments.__version__ >= '2.14.0': + assert ('
[docs]' + '@decorator\n' + 'class Class1' + '(object):\n' + ' """\n' + ' this is Class1\n' + ' """
\n') in result + else: + assert ('
[docs]' + '@decorator\n' + 'class Class1' + '(object):\n' + ' """\n' + ' this is Class1\n' + ' """
\n') in result @pytest.mark.sphinx('epub', testroot='ext-viewcode') diff --git a/tests/test_intl.py b/tests/test_intl.py index efe6c9bce93..07dfe8be3f4 100644 --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -6,6 +6,7 @@ import os import re +import pygments import pytest from babel.messages import mofile, pofile from babel.messages.catalog import Catalog @@ -1104,8 +1105,11 @@ def test_additional_targets_should_not_be_translated(app): expected_expr = ("""literal""" """-""" """block\n""" - """in """ + """in""" + """ """ """list""") + if pygments.__version__ < '2.14.0': + expected_expr = expected_expr.replace(""" """, ' ') assert_count(expected_expr, result, 1) # doctest block should not be translated but be highlighted @@ -1179,8 +1183,11 @@ def test_additional_targets_should_be_translated(app): expected_expr = ("""LITERAL""" """-""" """BLOCK\n""" - """IN """ + """IN""" + """ """ """LIST""") + if pygments.__version__ < '2.14.0': + expected_expr = expected_expr.replace(""" """, ' ') assert_count(expected_expr, result, 1) # doctest block should not be translated but be highlighted