Skip to content

Commit

Permalink
Merge branch '3.x' into function_signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya authored Mar 14, 2020
2 parents c3cc0d5 + 491048d commit 99a7386
Show file tree
Hide file tree
Showing 76 changed files with 2,431 additions and 1,421 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ jobs:
steps:
- checkout
- run: /python3.6/bin/pip install -U pip setuptools
- run: /python3.6/bin/pip install -U .[test,websupport]
- run: /python3.6/bin/pip install -U .[test]
- run: make test PYTHON=/python3.6/bin/python
4 changes: 1 addition & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
comment: false
coverage:
status:
project:
default:
enabled: no
patch:
default:
enabled: no
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
sudo: false
os: linux
dist: xenial
language: python
cache: pip

env:
Expand All @@ -9,7 +9,7 @@ env:
- SKIP_LATEX_BUILD=1
- IS_PYTHON=true

matrix:
jobs:
include:
- python: '3.5'
env:
Expand Down Expand Up @@ -37,8 +37,7 @@ matrix:
env: TOXENV=flake8

- language: node_js
node_js:
- 10.7
node_js: '10.7'
env: IS_PYTHON=false
services: xvfb

Expand Down
40 changes: 37 additions & 3 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,30 @@ Incompatible changes
* Due to the scoping changes for :rst:dir:`productionlist` some uses of
:rst:role:`token` must be modified to include the scope which was previously
ignored.
* #6903: Internal data structure of Python, reST and standard domains have
changed. The node_id is added to the index of objects and modules. Now they
contains a pair of docname and node_id for cross reference.
* #7210: js domain: Non intended behavior is removed such as ``parseInt_`` links
to ``.. js:function:: parseInt``
* #7229: rst domain: Non intended behavior is removed such as ``numref_`` links
to ``.. rst:role:: numref``
* #6903: py domain: Non intended behavior is removed such as ``say_hello_``
links to ``.. py:function:: say_hello()``
* #7246: py domain: Drop special cross reference helper for exceptions,
functions and methods

Deprecated
----------

* ``desc_signature['first']``
* ``sphinx.directives.DescDirective``
* ``sphinx.domains.std.StandardDomain.add_object()``
* ``sphinx.domains.python.PyDecoratorMixin``
* ``sphinx.parsers.Parser.app``
* ``sphinx.testing.path.Path.text()``
* ``sphinx.testing.path.Path.bytes()``
* ``sphinx.util.inspect.getargspec()``
* ``sphinx.writers.latex.LaTeXWriter.format_docclass()``

Features added
--------------
Expand All @@ -46,10 +59,15 @@ Features added
not to document inherited members of the class and uppers
* #6830: autodoc: consider a member private if docstring contains
``:meta private:`` in info-field-list
* #7165: autodoc: Support Annotated type (PEP-593)
* #2815: autodoc: Support singledispatch functions and methods
* #7079: autodoc: :confval:`autodoc_typehints` accepts ``"description"``
configuration. It shows typehints as object description
* #6558: glossary: emit a warning for duplicated glossary entry
* #3106: domain: Register hyperlink target for index page automatically
* #6558: std domain: emit a warning for duplicated generic objects
* #6830: py domain: Add new event: :event:`object-description-transform`
* #6895: py domain: Do not emit nitpicky warnings for built-in types
* py domain: Support lambda functions in function signature
* #6417: py domain: Allow to make a style for arguments of functions and methods
* Support priority of event handlers. For more detail, see
Expand All @@ -62,6 +80,12 @@ Features added
``no-scaled-link`` class
* #7144: Add CSS class indicating its domain for each desc node
* #7211: latex: Use babel for Chinese document when using XeLaTeX
* #6672: LaTeX: Support LaTeX Theming (experimental)
* #7005: LaTeX: Add LaTeX styling macro for :rst:role:`kbd` role
* #7220: genindex: Show "main" index entries at first
* #7103: linkcheck: writes all links to ``output.json``
* #7025: html search: full text search can be disabled for individual document
using ``:nosearch:`` file-wide metadata

Bugs fixed
----------
Expand All @@ -73,13 +97,16 @@ Bugs fixed
* C++, suppress warnings for directly dependent typenames in cross references
generated automatically in signatures.
* #5637: autodoc: Incorrect handling of nested class names on show-inheritance
* #7267: autodoc: error message for invalid directive options has wrong location
* #5637: inheritance_diagram: Incorrect handling of nested class names
* #7139: ``code-block:: guess`` does not work
* #7278: html search: Fix use of ``html_file_suffix`` instead of
``html_link_suffix`` in search results

Testing
--------

Release 2.4.4 (in development)
Release 2.4.5 (in development)
==============================

Dependencies
Expand All @@ -100,6 +127,15 @@ Bugs fixed
Testing
--------

Release 2.4.4 (released Mar 05, 2020)
=====================================

Bugs fixed
----------

* #7197: LaTeX: platex cause error to build image directive with target url
* #7223: Sphinx builds has been slower since 2.4.0

Release 2.4.3 (released Feb 22, 2020)
=====================================

Expand Down Expand Up @@ -183,8 +219,6 @@ Features added
* #6966: graphviz: Support ``:class:`` option
* #6696: html: ``:scale:`` option of image/figure directive not working for SVG
images (imagesize-1.2.0 or above is required)
* #7025: html search: full text search can be disabled for individual document
using ``:nosearch:`` file-wide metadata
* #6994: imgconverter: Support illustrator file (.ai) to .png conversion
* autodoc: Support Positional-Only Argument separator (PEP-570 compliant)
* autodoc: Support type annotations for variables
Expand Down
1 change: 0 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ PYTHON ?= python3
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = $(PYTHON) ../sphinx/cmd/build.py
SPHINXPROJ = sphinx
SOURCEDIR = .
BUILDDIR = _build

Expand Down
4 changes: 2 additions & 2 deletions doc/_static/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
translation.png: translation.puml
plantuml $<
translation.svg: translation.puml
plantuml -tsvg $<
clean:
rm translation.png
Binary file removed doc/_static/translation.png
Binary file not shown.
29 changes: 29 additions & 0 deletions doc/_static/translation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo',
'sphinx.ext.autosummary', 'sphinx.ext.extlinks',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode', 'sphinx.ext.inheritance_diagram']

master_doc = 'contents'
Expand Down
8 changes: 1 addition & 7 deletions doc/extdev/appapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ package.

.. automethod:: Sphinx.add_enumerable_node(node, figtype, title_getter=None, \*\*kwds)

.. method:: Sphinx.add_directive(name, func, content, arguments, \*\*options)
.. automethod:: Sphinx.add_directive(name, directiveclass)

.. automethod:: Sphinx.add_role(name, role)
Expand All @@ -54,7 +53,6 @@ package.

.. automethod:: Sphinx.add_domain(domain)

.. method:: Sphinx.add_directive_to_domain(domain, name, func, content, arguments, \*\*options)
.. automethod:: Sphinx.add_directive_to_domain(domain, name, directiveclass)

.. automethod:: Sphinx.add_role_to_domain(domain, name, role)
Expand Down Expand Up @@ -107,6 +105,7 @@ Emitting events
---------------

.. class:: Sphinx
:noindex:

.. automethod:: emit(event, \*arguments)

Expand Down Expand Up @@ -268,11 +267,6 @@ connect handlers to the events. Example:
environment from the main process. *docnames* is a set of document names
that have been read in the subprocess.

For a sample of how to deal with this event, look at the standard
``sphinx.ext.todo`` extension. The implementation is often similar to that
of :event:`env-purge-doc`, only that information is not removed, but added to
the main environment from the other environment.

.. versionadded:: 1.3

.. event:: env-updated (app, env)
Expand Down
10 changes: 10 additions & 0 deletions doc/extdev/deprecated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ The following is a list of deprecated interfaces.
- 5.0
- ``sphinx.domains.std.StandardDomain.note_object()``

* - ``sphinx.domains.python.PyDecoratorMixin``
- 3.0
- 5.0
- N/A

* - ``sphinx.parsers.Parser.app``
- 3.0
- 5.0
Expand All @@ -61,6 +66,11 @@ The following is a list of deprecated interfaces.
- 5.0
- ``inspect.getargspec()``

* - ``sphinx.writers.latex.LaTeXWriter.format_docclass()``
- 3.0
- 5.0
- LaTeX Themes

* - ``decode`` argument of ``sphinx.pycode.ModuleAnalyzer()``
- 2.4
- 4.0
Expand Down
2 changes: 2 additions & 0 deletions doc/latex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,8 @@ Macros
multiple paragraphs in header cells of tables.
.. versionadded:: 1.6.3
``\sphinxstylecodecontinued`` and ``\sphinxstylecodecontinues``.
.. versionadded:: 3.0
``\sphinxkeyboard``
- ``\sphinxtableofcontents``: it is a
wrapper (defined differently in :file:`sphinxhowto.cls` and in
:file:`sphinxmanual.cls`) of standard ``\tableofcontents``. The macro
Expand Down
1 change: 0 additions & 1 deletion doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ if "%SPHINXBUILD%" == "" (
)
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=sphinx-doc

if "%1" == "" goto help

Expand Down
5 changes: 1 addition & 4 deletions doc/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ them to generate links or output multiply used elements.
documents.

.. function:: pathto(file, 1)
:noindex:

Return the path to a *file* which is a filename relative to the root of the
generated output. Use this to refer to static files.
Expand Down Expand Up @@ -413,10 +414,6 @@ are in HTML form), these variables are also available:
nonempty if the :confval:`html_copy_source` value is ``True``.
This has empty value on creating automatically-generated files.

.. data:: title

The page title.

.. data:: toc

The local table of contents for the current page, rendered as HTML bullet
Expand Down
2 changes: 1 addition & 1 deletion doc/usage/advanced/intl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Complementary to translations provided for Sphinx-generated messages such as
navigation bars, Sphinx provides mechanisms facilitating *document* translations
in itself. See the :ref:`intl-options` for details on configuration.

.. figure:: /_static/translation.png
.. figure:: /_static/translation.svg
:width: 100%

Workflow visualization of translations in Sphinx. (The figure is created by
Expand Down
38 changes: 30 additions & 8 deletions doc/usage/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ These options influence LaTeX output.

This value determines how to group the document tree into LaTeX source files.
It must be a list of tuples ``(startdocname, targetname, title, author,
documentclass, toctree_only)``, where the items are:
theme, toctree_only)``, where the items are:

*startdocname*
String that specifies the :term:`document name` of the LaTeX file's master
Expand All @@ -1926,13 +1926,8 @@ These options influence LaTeX output.
applies. Use ``\\and`` to separate multiple authors, as in:
``'John \\and Sarah'`` (backslashes must be Python-escaped to reach LaTeX).

*documentclass*
Normally, one of ``'manual'`` or ``'howto'`` (provided by Sphinx and based
on ``'report'``, resp. ``'article'``; Japanese documents use ``'jsbook'``,
resp. ``'jreport'``.) "howto" (non-Japanese) documents will not get
appendices. Also they have a simpler title page. Other document classes
can be given. Independently of the document class, the "sphinx" package is
always loaded in order to define Sphinx's custom LaTeX commands.
*theme*
LaTeX theme. See :confval:`latex_theme`.

*toctree_only*
Must be ``True`` or ``False``. If true, the *startdoc* document itself is
Expand Down Expand Up @@ -2087,6 +2082,33 @@ These options influence LaTeX output.
This overrides the files which is provided from Sphinx such as
``sphinx.sty``.

.. confval:: latex_theme

The "theme" that the LaTeX output should use. It is a collection of settings
for LaTeX output (ex. document class, top level sectioning unit and so on).

As a built-in LaTeX themes, ``manual`` and ``howto`` are bundled.

``manual``
A LaTeX theme for writing a manual. It imports the ``report`` document
class (Japanese documents use ``jsbook``).

``howto``
A LaTeX theme for writing an article. It imports the ``article`` document
class (Japanese documents use ``jreport`` rather). :confval:`latex_appendices`
is available only for this theme.

It defaults to ``'manual'``.

.. versionadded:: 3.0

.. confval:: latex_theme_path

A list of paths that contain custom LaTeX themes as subdirectories. Relative
paths are taken as relative to the configuration directory.

.. versionadded:: 3.0


.. _text-options:

Expand Down
Loading

0 comments on commit 99a7386

Please sign in to comment.