Skip to content

Commit 6611140

Browse files
committed
Merge branch '4.x' into HEAD
2 parents 54b1991 + 0938c19 commit 6611140

File tree

516 files changed

+28066
-21945
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

516 files changed

+28066
-21945
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
create-release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Release
15+
uses: softprops/action-gh-release@v1
16+
if: startsWith(github.ref, 'refs/tags/')
17+
with:
18+
body: "Changelog: https://www.sphinx-doc.org/en/master/changes.html"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test with the HEAD of docutils
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * SUN"
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
- name: Check Python version
17+
run: python --version
18+
- name: Unpin docutils
19+
run: sed -i -e "s/'docutils>=.*'/'docutils'/" setup.py
20+
- name: Install graphviz
21+
run: sudo apt-get install graphviz
22+
- name: Install dependencies
23+
run: pip install -U tox codecov
24+
- name: Run Tox
25+
run: tox -e du-latest -- -vv

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
name: [py36, py37, py38, py39]
11+
name: [py36, py37, py38, py39, py310]
1212
include:
1313
- name: py36
1414
python: 3.6
@@ -23,9 +23,12 @@ jobs:
2323
python: 3.9
2424
docutils: du17
2525
coverage: "--cov ./ --cov-append --cov-config setup.cfg"
26-
- name: py310-dev
27-
python: 3.10-dev
26+
- name: py310
27+
python: "3.10"
2828
docutils: du17
29+
- name: py311-dev
30+
python: 3.11-dev
31+
docutils: py311
2932
env:
3033
PYTEST_ADDOPTS: ${{ matrix.coverage }}
3134

@@ -47,6 +50,9 @@ jobs:
4750
run: sudo apt-get install graphviz
4851
- name: Install dependencies
4952
run: pip install -U tox codecov
53+
- name: Install the latest py package (for py3.11-dev)
54+
run: pip install -U git+https://github.com/pytest-dev/py
55+
if: ${{ matrix.python == '3.11-dev' }}
5056
- name: Run Tox
5157
run: tox -e ${{ matrix.docutils }} -- -vv
5258
- name: codecov

.github/workflows/transifex.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
ref: 4.x
1616
- name: Set up Python
1717
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.9 # https://github.com/transifex/transifex-client/pull/330
1820
- name: Install dependencies
1921
run: pip install -U babel jinja2 transifex-client
2022
- name: Extract translations from source code
@@ -33,6 +35,8 @@ jobs:
3335
ref: 4.x
3436
- name: Set up Python
3537
uses: actions/setup-python@v2
38+
with:
39+
python-version: 3.9 # https://github.com/transifex/transifex-client/pull/330
3640
- name: Install dependencies
3741
run: pip install -U babel jinja2 transifex-client
3842
- name: Extract translations from source code
@@ -49,3 +53,4 @@ jobs:
4953
commit-message: 'Update message catalogs'
5054
branch: bot/pull-translations
5155
title: Update message catalogs
56+
labels: i18n

CHANGES

Lines changed: 215 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
Release 4.3.0 (in development)
1+
Release 4.4.0 (in development)
22
==============================
33

44
Dependencies
55
------------
66

7+
* #10007: Use ``importlib_metadata`` for python-3.9 or older
8+
* #10007: Drop ``setuptools``
9+
710
Incompatible changes
811
--------------------
912

@@ -13,23 +16,76 @@ Deprecated
1316
Features added
1417
--------------
1518

16-
* #9639: autodoc: Support asynchronous generator functions
19+
* #9075: autodoc: Add a config variable :confval:`autodoc_typehints_format`
20+
to suppress the leading module names of typehints of function signatures (ex.
21+
``io.StringIO`` -> ``StringIO``)
22+
* #9831: Autosummary now documents only the members specified in a module's
23+
``__all__`` attribute if :confval:`autosummary_ignore_module_all` is set to
24+
``False``. The default behaviour is unchanged. Autogen also now supports
25+
this behavior with the ``--respect-module-all`` switch.
26+
* #9555: autosummary: Improve error messages on failure to load target object
27+
* #9800: extlinks: Emit warning if a hardcoded link is replaceable
28+
by an extlink, suggesting a replacement.
29+
* #9961: html: Support nested <kbd> HTML elements in other HTML builders
30+
* #10013: html: Allow to change the loading method of JS via ``loading_method``
31+
parameter for :meth:`Sphinx.add_js_file()`
32+
* #9551: html search: "Hide Search Matches" link removes "highlight" parameter
33+
from URL
34+
* #9815: html theme: Wrap sidebar components in div to allow customizing their
35+
layout via CSS
36+
* #9827: i18n: Sort items in glossary by translated terms
37+
* #9899: py domain: Allows to specify cross-reference specifier (``.`` and
38+
``~``) as ``:type:`` option
39+
* #9894: linkcheck: add option ``linkcheck_exclude_documents`` to disable link
40+
checking in matched documents.
41+
* #9793: sphinx-build: Allow to use the parallel build feature in macOS on macOS
42+
and Python3.8+
43+
* #10055: sphinx-build: Create directories when ``-w`` option given
44+
* #9993: std domain: Allow to refer an inline target (ex. ``_`target name```)
45+
via :rst:role:`ref` role
46+
* #9391: texinfo: improve variable in ``samp`` role
47+
* #9578: texinfo: Add :confval:`texinfo_cross_references` to disable cross
48+
references for readability with standalone readers
1749

1850
Bugs fixed
1951
----------
2052

21-
* #9630: autodoc: Failed to build cross references if :confval:`primary_domain`
22-
is not 'py'
23-
* #9644: autodoc: Crashed on getting source info from problematic object
24-
* #9630: autosummary: Failed to build summary table if :confval:`primary_domain`
25-
is not 'py'
53+
* #9866: autodoc: doccomment for the imported class was ignored
54+
* #9883: autodoc: doccomment for the alias to mocked object was ignored
55+
* #9908: autodoc: debug message is shown on building document using NewTypes
56+
with Python 3.10
57+
* #9968: autodoc: instance variables are not shown if __init__ method has
58+
position-only-arguments
59+
* #9194: autodoc: types under the "typing" module are not hyperlinked
60+
* #10009: autodoc: Crashes if target object raises an error on getting docstring
61+
* #10058: autosummary: Imported members are not shown when
62+
``autodoc_class_signature = 'separated'``
63+
* #9947: i18n: topic directive having a bullet list can't be translatable
64+
* #9878: mathjax: MathJax configuration is placed after loading MathJax itself
65+
* #9857: Generated RFC links use outdated base url
66+
* #9909: HTML, prevent line-wrapping in literal text.
67+
* #10061: html theme: Configuration values added by themes are not be able to
68+
override from conf.py
69+
* #10073: imgconverter: Unnecessary availablity check is called for "data" URIs
70+
* #9925: LaTeX: prohibit also with ``'xelatex'`` line splitting at dashes of
71+
inline and parsed literals
72+
* #9944: LaTeX: extra vertical whitespace for some nested declarations
73+
* #9940: LaTeX: Multi-function declaration in Python domain has cramped
74+
vertical spacing in latexpdf output
75+
* #10015: py domain: types under the "typing" module are not hyperlinked defined
76+
at info-field-list
77+
* #9390: texinfo: Do not emit labels inside footnotes
78+
* #9979: Error level messages were displayed as warning messages
79+
* #10057: Failed to scan documents if the project is placed onto the root
80+
directory
2681
* #9636: code-block: ``:dedent:`` handled numeric argument ``0`` like no argument was given
2782
* #9636: code-block: ``:dedent:`` without argument did strip newlines
2883

84+
2985
Testing
3086
--------
3187

32-
Release 4.2.1 (in development)
88+
Release 4.3.3 (in development)
3389
==============================
3490

3591
Dependencies
@@ -50,6 +106,140 @@ Bugs fixed
50106
Testing
51107
--------
52108

109+
Release 4.3.2 (released Dec 19, 2021)
110+
=====================================
111+
112+
Bugs fixed
113+
----------
114+
115+
* #9917: C and C++, parse fundamental types no matter the order of simple type
116+
specifiers.
117+
118+
Release 4.3.1 (released Nov 28, 2021)
119+
=====================================
120+
121+
Features added
122+
--------------
123+
124+
* #9864: mathjax: Support chnaging the loading method of MathJax to "defer" via
125+
:confval:`mathjax_options`
126+
127+
Bugs fixed
128+
----------
129+
130+
* #9838: autodoc: AttributeError is raised on building document for functions
131+
decorated by functools.lru_cache
132+
* #9879: autodoc: AttributeError is raised on building document for an object
133+
having invalid __doc__ attribute
134+
* #9844: autodoc: Failed to process a function wrapped with functools.partial if
135+
:confval:`autodoc_preserve_defaults` enabled
136+
* #9872: html: Class namespace collision between autodoc signatures and
137+
docutils-0.17
138+
* #9868: imgmath: Crashed if the dvisvgm command failed to convert equation
139+
* #9864: mathjax: Failed to render equations via MathJax v2. The loading method
140+
of MathJax is back to "async" method again
141+
142+
Release 4.3.0 (released Nov 11, 2021)
143+
=====================================
144+
145+
Dependencies
146+
------------
147+
148+
* Support Python 3.10
149+
150+
Incompatible changes
151+
--------------------
152+
153+
* #9649: ``searchindex.js``: the embedded data has changed format to allow
154+
objects with the same name in different domains.
155+
* #9672: The rendering of Python domain declarations is implemented
156+
with more docutils nodes to allow better CSS styling.
157+
It may break existing styling.
158+
* #9672: the signature of
159+
:py:meth:`domains.py.PyObject.get_signature_prefix` has changed to
160+
return a list of nodes instead of a plain string.
161+
* #9695: ``domains.js.JSObject.display_prefix`` has been changed into a method
162+
``get_display_prefix`` which now returns a list of nodes
163+
instead of a plain string.
164+
* #9695: The rendering of Javascript domain declarations is implemented
165+
with more docutils nodes to allow better CSS styling.
166+
It may break existing styling.
167+
* #9450: mathjax: Load MathJax via "defer" strategy
168+
169+
Deprecated
170+
----------
171+
172+
* ``sphinx.ext.autodoc.AttributeDocumenter._datadescriptor``
173+
* ``sphinx.writers.html.HTMLTranslator._fieldlist_row_index``
174+
* ``sphinx.writers.html.HTMLTranslator._table_row_index``
175+
* ``sphinx.writers.html5.HTML5Translator._fieldlist_row_index``
176+
* ``sphinx.writers.html5.HTML5Translator._table_row_index``
177+
178+
Features added
179+
--------------
180+
181+
* #9639: autodoc: Support asynchronous generator functions
182+
* #9664: autodoc: ``autodoc-process-bases`` supports to inject reST snippet as a
183+
base class
184+
* #9691: C, added new info-field ``retval``
185+
for :rst:dir:`c:function` and :rst:dir:`c:macro`.
186+
* C++, added new info-field ``retval`` for :rst:dir:`cpp:function`.
187+
* #9618: i18n: Add :confval:`gettext_allow_fuzzy_translations` to allow "fuzzy"
188+
messages for translation
189+
* #9672: More CSS classes on Python domain descriptions
190+
* #9695: More CSS classes on Javascript domain descriptions
191+
* #9683: Revert the removal of ``add_stylesheet()`` API. It will be kept until
192+
the Sphinx-6.0 release
193+
* #2068, add :confval:`intersphinx_disabled_reftypes` for disabling
194+
interphinx resolution of cross-references that do not have an explicit
195+
inventory specification. Specific types of cross-references can be disabled,
196+
e.g., ``std:doc`` or all cross-references in a specific domain,
197+
e.g., ``std:*``.
198+
* #9623: Allow to suppress "toctree contains reference to excluded document"
199+
warnings using :confval:`suppress_warnings`
200+
201+
Bugs fixed
202+
----------
203+
204+
* #9630: autodoc: Failed to build cross references if :confval:`primary_domain`
205+
is not 'py'
206+
* #9644: autodoc: Crashed on getting source info from problematic object
207+
* #9655: autodoc: mocked object having doc comment is warned unexpectedly
208+
* #9651: autodoc: return type field is not generated even if
209+
:confval:`autodoc_typehints_description_target` is set to "documented" when
210+
its info-field-list contains ``:returns:`` field
211+
* #9657: autodoc: The base class for a subclass of mocked object is incorrect
212+
* #9607: autodoc: Incorrect base class detection for the subclasses of the
213+
generic class
214+
* #9755: autodoc: memory addresses are shown for aliases
215+
* #9752: autodoc: Failed to detect type annotation for slots attribute
216+
* #9756: autodoc: Crashed if classmethod does not have __func__ attribute
217+
* #9757: autodoc: :confval:`autodoc_inherit_docstrings` does not effect to
218+
overridden classmethods
219+
* #9781: autodoc: :confval:`autodoc_preserve_defaults` does not support
220+
hexadecimal numeric
221+
* #9630: autosummary: Failed to build summary table if :confval:`primary_domain`
222+
is not 'py'
223+
* #9670: html: Fix download file with special characters
224+
* #9710: html: Wrong styles for even/odd rows in nested tables
225+
* #9763: html: parameter name and its type annotation are not separated in HTML
226+
* #9649: HTML search: when objects have the same name but in different domains,
227+
return all of them as result instead of just one.
228+
* #7634: intersphinx: references on the file in sub directory are broken
229+
* #9737: LaTeX: hlist is rendered as a list containing "aggedright" text
230+
* #9678: linkcheck: file extension was shown twice in warnings
231+
* #9697: py domain: An index entry with parens was registered for ``py:method``
232+
directive with ``:property:`` option
233+
* #9775: py domain: Literal typehint was converted to a cross reference when
234+
:confval:`autodoc_typehints='description'`
235+
* #9708: needs_extension failed to check double-digit version correctly
236+
* #9688: Fix :rst:dir:`code`` does not recognize ``:class:`` option
237+
* #9733: Fix for logging handler flushing warnings in the middle of the docs
238+
build
239+
* #9656: Fix warnings without subtype being incorrectly suppressed
240+
* Intersphinx, for unresolved references with an explicit inventory,
241+
e.g., ``proj:myFunc``, leave the inventory prefix in the unresolved text.
242+
53243
Release 4.2.0 (released Sep 12, 2021)
54244
=====================================
55245

@@ -120,6 +310,7 @@ Bugs fixed
120310
with the HEAD of 3.10
121311
* #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
122312
* #9456: html search: html_copy_source can't control the search summaries
313+
* #9500: LaTeX: Failed to build Japanese document on Windows
123314
* #9435: linkcheck: Failed to check anchors in github.com
124315

125316
Release 4.1.1 (released Jul 15, 2021)
@@ -1555,6 +1746,14 @@ Bugs fixed
15551746
:confval:`intersphinx_mapping` on :event:`config-inited` event
15561747
* #7343: Sphinx builds has been slower since 2.4.0 on debug mode
15571748

1749+
Release 2.4.5 (released Nov 18, 2021)
1750+
=====================================
1751+
1752+
Dependencies
1753+
------------
1754+
1755+
* #9807: Restrict docutils to 0.17.x or older
1756+
15581757
Release 2.4.4 (released Mar 05, 2020)
15591758
=====================================
15601759

@@ -2391,6 +2590,14 @@ Testing
23912590

23922591
* Add a helper function: ``sphinx.testing.restructuredtext.parse()``
23932592

2593+
Release 1.8.6 (released Nov 18, 2021)
2594+
=====================================
2595+
2596+
Dependencies
2597+
------------
2598+
2599+
* #9807: Restrict docutils to 0.17.x or older
2600+
23942601
Release 1.8.5 (released Mar 10, 2019)
23952602
=====================================
23962603

EXAMPLES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ Books produced using Sphinx
430430
* `"Theoretical Physics Reference" <https://www.theoretical-physics.net/>`__
431431
* `"The Varnish Book" <https://info.varnish-software.com/the-varnish-book>`__
432432

433-
Theses produced using Sphinx
433+
These produced using Sphinx
434434
----------------------------
435435

436436
* `"A Web-Based System for Comparative Analysis of OpenStreetMap Data by the Use

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
License for Sphinx
22
==================
33

4-
Copyright (c) 2007-2021 by the Sphinx team (see AUTHORS file).
4+
Copyright (c) 2007-2022 by the Sphinx team (see AUTHORS file).
55
All rights reserved.
66

77
Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)