Skip to content

Commit 866719f

Browse files
committed
Merge branch '4.x' into 9427
2 parents dd89c36 + c24b7a0 commit 866719f

File tree

297 files changed

+24890
-18379
lines changed

Some content is hidden

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

297 files changed

+24890
-18379
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Bug report
2+
description: Something is not working correctly.
3+
labels: "bug"
4+
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Describe the bug
9+
description: >-
10+
A clear and concise description of what the bug is.
11+
validations:
12+
required: true
13+
14+
- type: textarea
15+
attributes:
16+
label: How to Reproduce
17+
description: Please provide steps to reproduce this bug.
18+
value: |
19+
<Paste your command-line here which cause the problem>
20+
```
21+
$ git clone https://github.com/.../some_project
22+
$ cd some_project
23+
$ pip install -r requirements.txt
24+
$ cd docs
25+
$ make html SPHINXOPTS="-D language=de"
26+
$ # open _build/html/index and see bla bla
27+
```
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
attributes:
33+
label: Expected behavior
34+
description: >-
35+
A clear and concise description of what you expected to happen.
36+
37+
- type: input
38+
attributes:
39+
label: Your project
40+
description: >-
41+
Link to your sphinx project, or attach zipped small project sample.
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
attributes:
47+
label: Screenshots
48+
description: >-
49+
If applicable, add screenshots to help explain your problem.
50+
validations:
51+
required: false
52+
53+
- type: markdown
54+
attributes:
55+
value: |
56+
## Environment info
57+
58+
- type: input
59+
attributes:
60+
label: OS
61+
description: >-
62+
[e.g. Unix/Linux/Mac/Win/other with version]
63+
validations:
64+
required: true
65+
- type: input
66+
attributes:
67+
label: Python version
68+
validations:
69+
required: true
70+
- type: input
71+
attributes:
72+
label: Sphinx version
73+
validations:
74+
required: true
75+
- type: input
76+
attributes:
77+
label: Sphinx extensions
78+
description: >-
79+
[e.g. sphinx.ext.autodoc, recommonmark]
80+
validations:
81+
required: false
82+
- type: input
83+
attributes:
84+
label: Extra tools
85+
description: >-
86+
[e.g. Browser, tex or something else]
87+
validations:
88+
required: false
89+
- type: textarea
90+
attributes:
91+
label: Additional context
92+
description: >-
93+
Add any other context about the problem here.
94+
[e.g. URL or Ticket]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/lock.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Lock old threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
action:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: dessant/lock-threads@v2
16+
with:
17+
github-token: ${{ github.token }}
18+
issue-lock-inactive-days: '30'
19+
pr-lock-inactive-days: '30'

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ 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
28-
# docutils: du16
26+
- name: py310-dev
27+
python: 3.10-dev
28+
docutils: du17
2929
env:
3030
PYTEST_ADDOPTS: ${{ matrix.coverage }}
3131

.github/workflows/transifex.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Sync translations on repository and transifex.com
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * SUN"
6+
workflow_dispatch:
7+
8+
jobs:
9+
push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
ref: 4.x
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
- name: Install dependencies
19+
run: pip install -U babel jinja2 transifex-client
20+
- name: Extract translations from source code
21+
run: python setup.py extract_messages
22+
- name: Push translations to transifex.com
23+
run: cd sphinx/locale && tx push -s --no-interactive --parallel
24+
env:
25+
TX_TOKEN: ${{ secrets.TX_TOKEN }}
26+
27+
pull:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
with:
33+
ref: 4.x
34+
- name: Set up Python
35+
uses: actions/setup-python@v2
36+
- name: Install dependencies
37+
run: pip install -U babel jinja2 transifex-client
38+
- name: Extract translations from source code
39+
run: python setup.py extract_messages
40+
- name: Pull translations to transifex.com
41+
run: cd sphinx/locale && tx pull -a -f --no-interactive --parallel
42+
env:
43+
TX_TOKEN: ${{ secrets.TX_TOKEN }}
44+
- name: Compile message catalogs
45+
run: python setup.py compile_catalog
46+
- name: Create Pull Request
47+
uses: peter-evans/create-pull-request@v3
48+
with:
49+
commit-message: 'Update message catalogs'
50+
branch: bot/pull-translations
51+
title: Update message catalogs

CHANGES

Lines changed: 116 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,114 @@
1+
Release 4.1.0 (in development)
2+
==============================
3+
4+
Dependencies
5+
------------
6+
7+
* Support jinja2-3.0
8+
9+
Incompatible changes
10+
--------------------
11+
12+
Deprecated
13+
----------
14+
15+
* The ``app`` argument of ``sphinx.environment.BuildEnvironment`` becomes
16+
required
17+
* ``sphinx.application.Sphinx.html_theme``
18+
* ``sphinx.ext.autosummary._app``
19+
* ``sphinx.util.docstrings.extract_metadata()``
20+
21+
Features added
22+
--------------
23+
24+
* #8107: autodoc: Add ``class-doc-from`` option to :rst:dir:`autoclass`
25+
directive to control the content of the specific class like
26+
:confval:`autoclass_content`
27+
* #8588: autodoc: :confval:`autodoc_type_aliases` now supports dotted name. It
28+
allows you to define an alias for a class with module name like
29+
``foo.bar.BazClass``
30+
* #9175: autodoc: Special member is not documented in the module
31+
* #9195: autodoc: The arguments of ``typing.Literal`` are wrongly rendered
32+
* #9185: autodoc: :confval:`autodoc_typehints` allows ``'both'`` setting to
33+
allow typehints to be included both in the signature and description
34+
* #4257: autodoc: Add :confval:`autodoc_class_signature` to separate the class
35+
entry and the definition of ``__init__()`` method
36+
* #8061, #9218: autodoc: Support variable comment for alias classes
37+
* #3014: autodoc: Add :event:`autodoc-process-bases` to modify the base classes
38+
of the class definitions
39+
* #9272: autodoc: Render enum values for the default argument value better
40+
* #9384: autodoc: ``autodoc_typehints='none'`` now erases typehints for
41+
variables, attributes and properties
42+
* #3257: autosummary: Support instance attributes for classes
43+
* #9358: html: Add "heading" role to the toctree items
44+
* #9129: html search: Show search summaries when html_copy_source = False
45+
* #9307: html search: Prevent corrections and completions in search field
46+
* #9120: html theme: Eliminate prompt characters of code-block from copyable
47+
text
48+
* #9176: i18n: Emit a debug message if message catalog file not found under
49+
:confval:`locale_dirs`
50+
* #9414: LaTeX: Add xeCJKVerbAddon to default fvset config for Chinese documents
51+
* #9016: linkcheck: Support checking anchors on github.com
52+
* #9016: linkcheck: Add a new event :event:`linkcheck-process-uri` to modify
53+
URIs before checking hyperlinks
54+
* #6525: linkcheck: Add :confval:`linkcheck_allowed_redirects` to mark
55+
hyperlinks that are redirected to expected URLs as "working"
56+
* #1874: py domain: Support union types using ``|`` in info-field-list
57+
* #9268: py domain: :confval:`python_use_unqualified_type_names` supports type
58+
field in info-field-list
59+
* #9097: Optimize the parallel build
60+
* #9131: Add :confval:`nitpick_ignore_regex` to ignore nitpicky warnings using
61+
regular expressions
62+
* #9174: Add ``Sphinx.set_html_assets_policy`` to tell extensions to include
63+
HTML assets in all the pages. Extensions can check this via
64+
``Sphinx.registry.html_assets_policy``
65+
* C++, add support for
66+
67+
- ``inline`` variables,
68+
- ``consteval`` functions,
69+
- ``constinit`` variables,
70+
- ``char8_t``,
71+
- ``explicit(<constant expression>)`` specifier,
72+
- digit separators in literals, and
73+
- constraints in placeholder type specifiers, aka. adjective syntax
74+
(e.g., ``Sortable auto &v``).
75+
76+
* C, add support for digit separators in literals.
77+
* #9166: LaTeX: support containers in LaTeX output
78+
79+
80+
Bugs fixed
81+
----------
82+
83+
* #8872: autodoc: stacked singledispatches are wrongly rendered
84+
* #8597: autodoc: a docsting having metadata only should be treated as
85+
undocumented
86+
* #9185: autodoc: typehints for overloaded functions and methods are inaccurate
87+
* #9250: autodoc: The inherited method not having docstring is wrongly parsed
88+
* #9283: autodoc: autoattribute directive failed to generate document for an
89+
attribute not having any comment
90+
* #9364: autodoc: single element tuple on the default argument value is wrongly
91+
rendered
92+
* #9362: autodoc: AttributeError is raised on processing a subclass of Tuple[()]
93+
* #9317: html: Pushing left key causes visiting the next page at the first page
94+
* #9381: html: URL for html_favicon and html_log does not work
95+
* #9270: html theme : pyramid theme generates incorrect logo links
96+
* #9217: manpage: The name of manpage directory that is generated by
97+
:confval:`man_make_section_directory` is not correct
98+
* #9350: manpage: Fix font isn't reset after keyword at the top of samp role
99+
* #9306: Linkcheck reports broken link when remote server closes the connection
100+
on HEAD request
101+
* #9280: py domain: "exceptions" module is not displayed
102+
* #9319: quickstart: Make sphinx-quickstart exit when conf.py already exists
103+
* #9387: xml: XML Builder ignores custom visitors
104+
* #9224: ``:param:`` and ``:type:`` fields does not support a type containing
105+
whitespace (ex. ``Dict[str, str]``)
106+
* #8945: when transforming typed fields, call the specified role instead of
107+
making an single xref. For C and C++, use the ``expr`` role for typed fields.
108+
109+
Testing
110+
--------
111+
1112
Release 4.0.4 (in development)
2113
==============================
3114

@@ -519,7 +630,7 @@ Bugs fixed
519630
* #8567: autodoc: Instance attributes are incorrectly added to Parent class
520631
* #8566: autodoc: The ``autodoc-process-docstring`` event is emitted to the
521632
alias classes unexpectedly
522-
* #8583: autodoc: Unnecessary object comparision via ``__eq__`` method
633+
* #8583: autodoc: Unnecessary object comparison via ``__eq__`` method
523634
* #8565: linkcheck: Fix PriorityQueue crash when link tuples are not
524635
comparable
525636

@@ -585,7 +696,7 @@ Bugs fixed
585696
* #8443: autodoc: autodata directive can't create document for PEP-526 based
586697
type annotated variables
587698
* #8443: autodoc: autoattribute directive can't create document for PEP-526
588-
based uninitalized variables
699+
based uninitialized variables
589700
* #8480: autodoc: autoattribute could not create document for __slots__
590701
attributes
591702
* #8503: autodoc: autoattribute could not create document for a GenericAlias as
@@ -742,7 +853,7 @@ Bugs fixed
742853
* #8091: autodoc: AttributeError is raised on documenting an attribute on Python
743854
3.5.2
744855
* #8099: autodoc: NameError is raised when target code uses ``TYPE_CHECKING``
745-
* C++, fix parsing of template template paramters, broken by the fix of #7944
856+
* C++, fix parsing of template template parameters, broken by the fix of #7944
746857

747858
Release 3.2.0 (released Aug 08, 2020)
748859
=====================================
@@ -1031,7 +1142,7 @@ Bugs fixed
10311142
* #3673: autodoc: member-order="bysource" does not work for a module having
10321143
__all__
10331144
* #7668: autodoc: wrong retann value is passed to a handler of
1034-
autodoc-proccess-signature
1145+
autodoc-process-signature
10351146
* #7711: autodoc: fails with ValueError when processing numpy objects
10361147
* #7791: autodoc: TypeError is raised on documenting singledispatch function
10371148
* #7551: autosummary: a nested class is indexed as non-nested class
@@ -1237,7 +1348,7 @@ Features added
12371348
* #6417: py domain: Allow to make a style for arguments of functions and methods
12381349
* #7238, #7239: py domain: Emit a warning on describing a python object if the
12391350
entry is already added as the same name
1240-
* #7341: py domain: type annotations in singature are converted to cross refs
1351+
* #7341: py domain: type annotations in signature are converted to cross refs
12411352
* Support priority of event handlers. For more detail, see
12421353
:py:meth:`.Sphinx.connect()`
12431354
* #3077: Implement the scoping for :rst:dir:`productionlist` as indicated

0 commit comments

Comments
 (0)