Skip to content

Commit 1b66532

Browse files
authored
Merge branch 'master' into typos
2 parents 2a90b28 + 6e4df0a commit 1b66532

File tree

250 files changed

+5766
-6588
lines changed

Some content is hidden

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

250 files changed

+5766
-6588
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ on: [push, pull_request]
44

55
jobs:
66
ubuntu:
7-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-18.04
88
strategy:
99
fail-fast: false
1010
matrix:
11-
name: [py35, py36, py37, py38, py39]
12-
os: [ubuntu-16.04]
11+
name: [py36, py37, py38, py39, py310-dev]
1312
include:
14-
- name: py35
15-
python: 3.5
16-
docutils: du12
1713
- name: py36
1814
python: 3.6
1915
docutils: du13
@@ -30,7 +26,6 @@ jobs:
3026
- name: py310-dev
3127
python: 3.10-dev
3228
docutils: du16
33-
os: ubuntu-latest # required
3429
env:
3530
PYTEST_ADDOPTS: ${{ matrix.coverage }}
3631

CHANGES

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,130 @@
1+
Release 4.0.0 (in development)
2+
==============================
3+
4+
Dependencies
5+
------------
6+
7+
* Drop python 3.5 support
8+
* Drop docutils 0.12 and 0.13 support
9+
* LaTeX: add ``tex-gyre`` font dependency
10+
11+
Incompatible changes
12+
--------------------
13+
14+
* domain: The ``Index`` class becomes subclasses of ``abc.ABC`` to indicate
15+
methods that must be overrided in the concrete classes
16+
* #4826: py domain: The structure of python objects is changed. A boolean value
17+
is added to indicate that the python object is canonical one
18+
* #7425: MathJax: The MathJax was changed from 2 to 3. Users using a custom
19+
MathJax configuration may have to set the old MathJax path or update their
20+
configuration for version 3. See :mod:`sphinx.ext.mathjax`.
21+
* #7784: i18n: The msgid for alt text of image is changed
22+
* #5560: napoleon: :confval:`napoleon_use_param` also affect "other parameters"
23+
section
24+
* #7996: manpage: Make a section directory on build manpage by default (see
25+
:confval:`man_make_section_directory`)
26+
* #7849: html: Change the default setting of
27+
:confval:`html_codeblock_linenos_style` to ``'inline'``
28+
* #8380: html search: search results are wrapped with ``<p>`` instead of
29+
``<div>``
30+
* html theme: Move a script tag for documentation_options.js in
31+
basic/layout.html to ``script_files`` variable
32+
* html theme: Move CSS tags in basic/layout.html to ``css_files`` variable
33+
* #8915: html theme: Emit a warning for sphinx_rtd_theme-0.2.4 or older
34+
* #8508: LaTeX: uplatex becomes a default setting of latex_engine for Japanese
35+
documents
36+
* #5977: py domain: ``:var:``, ``:cvar:`` and ``:ivar:`` fields do not create
37+
cross-references
38+
* #4550: The ``align`` attribute of ``figure`` and ``table`` nodes becomes
39+
``None`` by default instead of ``'default'``
40+
* #8769: LaTeX refactoring: split sphinx.sty into multiple files and rename
41+
some auxiliary files created in ``latex`` build output repertory
42+
* #8937: Use explicit title instead of <no title>
43+
* #8487: The :file: option for csv-table directive now recognizes an absolute
44+
path as a relative path from source directory
45+
46+
Deprecated
47+
----------
48+
49+
* :confval:`html_codeblock_linenos_style`
50+
* ``favicon`` and ``logo`` variable in HTML templates
51+
* ``sphinx.directives.patches.CSVTable``
52+
* ``sphinx.directives.patches.ListTable``
53+
* ``sphinx.directives.patches.RSTTable``
54+
* ``sphinx.ext.autodoc.directive.DocumenterBridge.filename_set``
55+
* ``sphinx.ext.autodoc.directive.DocumenterBridge.warn()``
56+
* ``sphinx.registry.SphinxComponentRegistry.get_source_input()``
57+
* ``sphinx.registry.SphinxComponentRegistry.source_inputs``
58+
* ``sphinx.transforms.FigureAligner``
59+
* ``sphinx.util.pycompat.convert_with_2to3()``
60+
* ``sphinx.util.pycompat.execfile_()``
61+
* ``sphinx.util.smartypants``
62+
* ``sphinx.util.typing.DirectiveOption``
63+
64+
Features added
65+
--------------
66+
67+
* #8924: autodoc: Support ``bound`` argument for TypeVar
68+
* #7383: autodoc: Support typehints for properties
69+
* #7549: autosummary: Enable :confval:`autosummary_generate` by default
70+
* #4826: py domain: Add ``:canonical:`` option to python directives to describe
71+
the location where the object is defined
72+
* #7199: py domain: Add :confval:`python_use_unqualified_type_names` to suppress
73+
the module name of the python reference if it can be resolved (experimental)
74+
* #7068: py domain: Add :rst:dir:`py:property` directive to describe a property
75+
* #7784: i18n: The alt text for image is translated by default (without
76+
:confval:`gettext_additional_targets` setting)
77+
* #2018: html: :confval:`html_favicon` and :confval:`html_logo` now accept URL
78+
for the image
79+
* #8070: html search: Support searching for 2characters word
80+
* #8938: imgconverter: Show the error of the command availability check
81+
* #7830: Add debug logs for change detection of sources and templates
82+
* #8201: Emit a warning if toctree contains duplicated entries
83+
* #8326: ``master_doc`` is now renamed to :confval:`root_doc`
84+
* #8942: C++, add support for the C++20 spaceship operator, ``<=>``.
85+
* #7199: A new node, ``sphinx.addnodes.pending_xref_condition`` has been added.
86+
It can be used to choose appropriate content of the reference by conditions.
87+
88+
Bugs fixed
89+
----------
90+
91+
* #8917: autodoc: Raises a warning if function has wrong __globals__ value
92+
* #8415: autodoc: a TypeVar imported from other module is not resolved (in
93+
Python 3.7 or above)
94+
* #8992: autodoc: Failed to resolve types.TracebackType type annotation
95+
* #8905: html: html_add_permalinks=None and html_add_permalinks="" are ignored
96+
* #8380: html search: Paragraphs in search results are not identified as ``<p>``
97+
* #8915: html theme: The translation of sphinx_rtd_theme does not work
98+
* #8342: Emit a warning if a unknown domain is given for directive or role (ex.
99+
``:unknown:doc:``)
100+
* #7241: LaTeX: No wrapping for ``cpp:enumerator``
101+
* #8711: LaTeX: backticks in code-blocks trigger latexpdf build warning (and font
102+
change) with late TeXLive 2019
103+
* #8253: LaTeX: Figures with no size defined get overscaled (compared to images
104+
with size explicitly set in pixels) (fixed for ``'pdflatex'/'lualatex'`` only)
105+
* #8881: LaTeX: The depth of bookmarks panel in PDF is not enough for navigation
106+
* #8874: LaTeX: the fix to two minor Pygments LaTeXFormatter output issues ignore
107+
Pygments style
108+
* #8925: LaTeX: 3.5.0 ``verbatimmaxunderfull`` setting does not work as
109+
expected
110+
* #8980: LaTeX: missing line break in ``\pysigline``
111+
* #8995: LaTeX: legacy ``\pysiglinewithargsret`` does not compute correctly
112+
available horizontal space and should use a ragged right style
113+
* #9009: LaTeX: "release" value with underscore leads to invalid LaTeX
114+
* #8911: C++: remove the longest matching prefix in
115+
:confval:`cpp_index_common_prefix` instead of the first that matches.
116+
* C, properly reject function declarations when a keyword is used
117+
as parameter name.
118+
* #8933: viewcode: Failed to create back-links on parallel build
119+
* #8960: C and C++, fix rendering of (member) function pointer types in
120+
function parameter lists.
121+
* C++, fix linking of names in array declarators, pointer to member
122+
(function) declarators, and in the argument to ``sizeof...``.
123+
* C, fix linking of names in array declarators.
124+
125+
Testing
126+
--------
127+
1128
Release 3.5.4 (in development)
2129
==============================
3130

@@ -100,6 +227,9 @@ Features added
100227
* #8775: autodoc: Support type union operator (PEP-604) in Python 3.10 or above
101228
* #8297: autodoc: Allow to extend :confval:`autodoc_default_options` via
102229
directive options
230+
* #759: autodoc: Add a new configuration :confval:`autodoc_preserve_defaults` as
231+
an experimental feature. It preserves the default argument values of
232+
functions in source code and keep them not evaluated for readability.
103233
* #8619: html: kbd role generates customizable HTML tags for compound keys
104234
* #8634: html: Allow to change the order of JS/CSS via ``priority`` parameter
105235
for :meth:`Sphinx.add_js_file()` and :meth:`Sphinx.add_css_file()`

EXAMPLES

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,20 @@ interesting examples.
1212
Documentation using the alabaster theme
1313
---------------------------------------
1414

15+
* `AIOHTTP <https://docs.aiohttp.org/>`__
1516
* `Alabaster <https://alabaster.readthedocs.io/>`__
1617
* `Blinker <https://pythonhosted.org/blinker/>`__
1718
* `Calibre <https://manual.calibre-ebook.com/>`__
18-
* `Click <http://click.pocoo.org/>`__ (customized)
19+
* `Click <https://click.palletsprojects.com/>`__ (customized)
1920
* `coala <https://docs.coala.io/>`__ (customized)
2021
* `CodePy <https://documen.tician.de/codepy/>`__
2122
* `Eve <https://docs.python-eve.org/>`__ (Python REST API framework)
2223
* `Fabric <https://docs.fabfile.org/>`__
2324
* `Fityk <https://fityk.nieto.pl/>`__
24-
* `Flask <http://flask.pocoo.org/docs/>`__
25+
* `Flask <https://flask.palletsprojects.com/>`__
2526
* `Flask-OpenID <https://pythonhosted.org/Flask-OpenID/>`__
2627
* `Invoke <https://docs.pyinvoke.org/>`__
27-
* `Jinja <http://jinja.pocoo.org/docs/>`__
28+
* `Jinja <https://jinja.palletsprojects.com/>`__
2829
* `Lino <http://www.lino-framework.org/>`__ (customized)
2930
* `marbl <https://getmarbl.readthedocs.io/>`__
3031
* `MDAnalysis <https://www.mdanalysis.org/docs/>`__ (customized)
@@ -41,7 +42,8 @@ Documentation using the alabaster theme
4142
* `Spyder <https://docs.spyder-ide.org/>`__ (customized)
4243
* `Tablib <http://docs.python-tablib.org/>`__
4344
* `urllib3 <https://urllib3.readthedocs.io/>`__ (customized)
44-
* `Werkzeug <http://werkzeug.pocoo.org/docs/>`__ (customized)
45+
* `Werkzeug <https://werkzeug.palletsprojects.com/>`__
46+
* `Write the Docs <https://writethedocs-www.readthedocs.io/>`__
4547

4648
Documentation using the classic theme
4749
-------------------------------------
@@ -132,7 +134,7 @@ Documentation using the sphinxdoc theme
132134
Documentation using the nature theme
133135
------------------------------------
134136

135-
* `Alembic <http://alembic.zzzcomputing.com/>`__
137+
* `Alembic <https://alembic.sqlalchemy.org/>`__
136138
* `Cython <http://docs.cython.org/>`__
137139
* `easybuild <https://easybuild.readthedocs.io/>`__
138140
* `jsFiddle <http://doc.jsfiddle.net/>`__
@@ -141,6 +143,7 @@ Documentation using the nature theme
141143
* `MapServer <https://mapserver.org/>`__ (customized)
142144
* `Pandas <https://pandas.pydata.org/pandas-docs/stable/>`__
143145
* `pyglet <https://pyglet.readthedocs.io/>`__ (customized)
146+
* `PyWavelets <https://pywavelets.readthedocs.io/>`__
144147
* `Setuptools <https://setuptools.readthedocs.io/>`__
145148
* `Spring Python <https://docs.spring.io/spring-python/1.2.x/sphinx/html/>`__
146149
* `StatsModels <https://www.statsmodels.org/>`__ (customized)
@@ -156,6 +159,7 @@ Documentation using another builtin theme
156159
* `PyPubSub <https://pypubsub.readthedocs.io/>`__ (bizstyle)
157160
* `Pylons <https://docs.pylonsproject.org/projects/pylons-webframework/>`__ (pyramid)
158161
* `Pyramid web framework <https://docs.pylonsproject.org/projects/pyramid/>`__ (pyramid)
162+
* `RxDock <https://www.rxdock.org/documentation/html/devel/>`__
159163
* `Sphinx <http://www.sphinx-doc.org/>`__ (sphinx13) :-)
160164
* `Valence <https://docs.valence.desire2learn.com/>`__ (haiku, customized)
161165

@@ -219,6 +223,7 @@ Documentation using sphinx_rtd_theme
219223
* `Mailman <http://docs.list.org/>`__
220224
* `MathJax <https://docs.mathjax.org/>`__
221225
* `MDTraj <http://mdtraj.org/latest/>`__ (customized)
226+
* `Mesa 3D <https://docs.mesa3d.org/>`__
222227
* `micca - MICrobial Community Analysis <https://micca.readthedocs.io/>`__
223228
* `MicroPython <https://docs.micropython.org/>`__
224229
* `Minds <https://www.minds.org/docs/>`__ (customized)
@@ -227,6 +232,7 @@ Documentation using sphinx_rtd_theme
227232
* `mod_wsgi <https://modwsgi.readthedocs.io/>`__
228233
* `MoinMoin <https://moin-20.readthedocs.io/>`__
229234
* `Mopidy <https://docs.mopidy.com/>`__
235+
* `mpi4py <https://mpi4py.readthedocs.io/>`__
230236
* `MyHDL <http://docs.myhdl.org/>`__
231237
* `Nextflow <https://www.nextflow.io/docs/latest/index.html>`__
232238
* `NICOS <https://forge.frm2.tum.de/nicos/doc/nicos-master/>`__ (customized)
@@ -247,14 +253,15 @@ Documentation using sphinx_rtd_theme
247253
* `PyVISA <https://pyvisa.readthedocs.io/>`__
248254
* `pyvista <https://docs.pyvista.org/>`__
249255
* `Read The Docs <https://docs.readthedocs.io/>`__
256+
* `ROCm Platform <https://rocm-documentation.readthedocs.io/>`__
250257
* `Free your information from their silos (French) <http://redaction-technique.org/>`__ (customized)
251258
* `Releases Sphinx extension <https://releases.readthedocs.io/>`__
252259
* `Qtile <http://docs.qtile.org/>`__
253260
* `Quex <http://quex.sourceforge.net/doc/html/main.html>`__
254261
* `QuTiP <http://qutip.org/docs/latest/>`__
255262
* `Satchmo <http://docs.satchmoproject.com/>`__
256263
* `Scapy <https://scapy.readthedocs.io/>`__
257-
* `SimGrid <http://simgrid.gforge.inria.fr/simgrid/latest/doc/>`__
264+
* `SimGrid <https://simgrid.org/doc/latest/>`__
258265
* `SimPy <https://simpy.readthedocs.io/>`__
259266
* `six <https://six.readthedocs.io/>`__
260267
* `SlamData <https://newdocs.slamdata.com>`__
@@ -283,7 +290,6 @@ Documentation using sphinx_rtd_theme
283290
* `Web Application Attack and Audit Framework (w3af) <http://docs.w3af.org/>`__
284291
* `Weblate <https://docs.weblate.org/>`__
285292
* `x265 <https://x265.readthedocs.io/>`__
286-
* `ZeroNet <https://zeronet.readthedocs.io/>`__
287293
* `Zulip <https://zulip.readthedocs.io/>`__
288294

289295
Documentation using sphinx_bootstrap_theme
@@ -319,6 +325,7 @@ Documentation using a custom theme or integrated in a website
319325
* `Doctrine <https://www.doctrine-project.org/>`__
320326
* `Enterprise Toolkit for Acrobat products <https://www.adobe.com/devnet-docs/acrobatetk/>`__
321327
* `FreeFEM <https://doc.freefem.org/introduction/>`__
328+
* `fmt <https://fmt.dev/>`__
322329
* `Gameduino <http://excamera.com/sphinx/gameduino/>`__
323330
* `gensim <https://radimrehurek.com/gensim/>`__
324331
* `GeoServer <http://docs.geoserver.org/>`__
@@ -328,6 +335,7 @@ Documentation using a custom theme or integrated in a website
328335
* `H2O.ai <http://docs.h2o.ai/>`__
329336
* `Heka <https://hekad.readthedocs.io/>`__
330337
* `Istihza (Turkish Python documentation project) <https://belgeler.yazbel.com/python-istihza/>`__
338+
* `JupyterHub <https://jupyterhub.readthedocs.io/>`__
331339
* `Kombu <http://docs.kombu.me/>`__
332340
* `Lasso <http://lassoguide.com/>`__
333341
* `Mako <http://docs.makotemplates.org/>`__

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ include sphinx-quickstart.py
1515
include sphinx-apidoc.py
1616
include tox.ini
1717
include sphinx/locale/.tx/config
18+
include sphinx/py.typed
1819

1920
recursive-include sphinx/templates *
2021
recursive-include sphinx/texinputs *

bindep.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ texlive-luatex85 [platform:rpm]
1212
texlive-anyfontsize [platform:rpm]
1313
texlive-ctablestack [platform:rpm]
1414
texlive-gnu-freefont [platform:rpm]
15+
texlive-tex-gyre [platform:rpm]
1516
latexmk [platform:rpm]
1617

1718
texlive-latex-recommended [platform:dpkg]
1819
texlive-fonts-recommended [platform:dpkg]
20+
tex-gyre [platform:dpkg]
1921
texlive-latex-extra [platform:dpkg]
2022
texlive-luatex [platform:dpkg]
2123
latexmk [platform:dpkg]

doc/_static/conf.py.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ source_suffix = '.rst'
4343
# source_encoding = 'utf-8-sig'
4444

4545
# The master toctree document.
46-
master_doc = 'index'
46+
root_doc = 'index'
4747

4848
# General information about the project.
4949
project = u'test'
@@ -252,7 +252,7 @@ latex_elements = {
252252
# (source start file, target name, title,
253253
# author, documentclass [howto, manual, or own class]).
254254
latex_documents = [
255-
(master_doc, 'test.tex', u'test Documentation',
255+
(root_doc, 'test.tex', u'test Documentation',
256256
u'test', 'manual'),
257257
]
258258

@@ -283,7 +283,7 @@ latex_documents = [
283283
# One entry per manual page. List of tuples
284284
# (source start file, name, description, authors, manual section).
285285
man_pages = [
286-
(master_doc, 'test', u'test Documentation',
286+
(root_doc, 'test', u'test Documentation',
287287
[author], 1)
288288
]
289289

@@ -298,7 +298,7 @@ man_pages = [
298298
# (source start file, target name, title, author,
299299
# dir menu entry, description, category)
300300
texinfo_documents = [
301-
(master_doc, 'test', u'test Documentation',
301+
(root_doc, 'test', u'test Documentation',
302302
author, 'test', 'One line description of project.',
303303
'Miscellaneous'),
304304
]

doc/changes.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Changelog
1010

1111
.. raw:: latex
1212

13-
\hypersetup{bookmarksdepth=1}% pdf bookmarks
1413
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}%
1514

1615
.. include:: ../CHANGES

doc/conf.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'sphinx.ext.intersphinx',
1010
'sphinx.ext.viewcode', 'sphinx.ext.inheritance_diagram']
1111

12-
master_doc = 'contents'
12+
root_doc = 'contents'
1313
templates_path = ['_templates']
1414
exclude_patterns = ['_build']
1515

@@ -59,27 +59,14 @@
5959
latex_logo = '_static/sphinx.png'
6060
latex_elements = {
6161
'fontenc': r'\usepackage[LGR,X2,T1]{fontenc}',
62-
'fontpkg': r'''
63-
\usepackage[sc]{mathpazo}
64-
\usepackage[scaled]{helvet}
65-
\usepackage{courier}
66-
\substitutefont{LGR}{\rmdefault}{cmr}
67-
\substitutefont{LGR}{\sfdefault}{cmss}
68-
\substitutefont{LGR}{\ttdefault}{cmtt}
69-
\substitutefont{X2}{\rmdefault}{cmr}
70-
\substitutefont{X2}{\sfdefault}{cmss}
71-
\substitutefont{X2}{\ttdefault}{cmtt}
72-
''',
7362
'passoptionstopackages': r'''
7463
\PassOptionsToPackage{svgnames}{xcolor}
75-
\PassOptionsToPackage{bookmarksdepth=3}{hyperref}% depth of pdf bookmarks
7664
''',
7765
'preamble': r'''
7866
\DeclareUnicodeCharacter{229E}{\ensuremath{\boxplus}}
79-
\setcounter{tocdepth}{3}% depth of what is kept from toc file
67+
\setcounter{tocdepth}{3}% depth of what main TOC shows (3=subsubsection)
8068
\setcounter{secnumdepth}{1}% depth of section numbering
8169
''',
82-
'fvset': '\\fvset{fontsize=auto}',
8370
# fix missing index entry due to RTD doing only once pdflatex after makeindex
8471
'printindex': r'''
8572
\IfFileExists{\jobname.ind}
@@ -91,6 +78,7 @@
9178
latex_use_xindy = True
9279

9380
autodoc_member_order = 'groupwise'
81+
autosummary_generate = False
9482
todo_include_todos = True
9583
extlinks = {'duref': ('http://docutils.sourceforge.net/docs/ref/rst/'
9684
'restructuredtext.html#%s', ''),

0 commit comments

Comments
 (0)