Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.3.1
->^4.0.0
Release Notes
sphinx-doc/sphinx
v4.4.0
Compare Source
=====================================
Dependencies
importlib_metadata
for python-3.9 or oldersetuptools
Features added
autodoc_typehints_format
to suppress the leading module names of typehints of function signatures (ex.
io.StringIO
->StringIO
)__all__
attribute if :confval:autosummary_ignore_module_all
is set toFalse
. The default behaviour is unchanged. Autogen also now supportsthis behavior with the
--respect-module-all
switch.by an extlink, suggesting a replacement.
loading_method
parameter for :meth:
Sphinx.add_js_file()
from URL
layout via CSS
.
and~
) as:type:
optionlinkcheck_exclude_documents
to disable linkchecking in matched documents.
and Python3.8+
-w
option giventarget name```) via :rst:role:
ref` rolesamp
roletexinfo_cross_references
to disable crossreferences for readability with standalone readers
external
for explictlookup in the external projects, without resolving to the local project.
Bugs fixed
with Python 3.10
position-only-arguments
autodoc_class_signature = 'separated'
override from conf.py
'xelatex'
line splitting at dashes ofinline and parsed literals
vertical spacing in latexpdf output
at info-field-list
directory
:dedent:
without argument did strip newlinesv4.3.2
Compare Source
=====================================
Bugs fixed
specifiers.
v4.3.1
Compare Source
=====================================
Features added
:confval:
mathjax_options
Bugs fixed
decorated by functools.lru_cache
having invalid doc attribute
:confval:
autodoc_preserve_defaults
enableddocutils-0.17
of MathJax is back to "async" method again
v4.3.0
Compare Source
=====================================
Dependencies
Incompatible changes
searchindex.js
: the embedded data has changed format to allowobjects with the same name in different domains.
with more docutils nodes to allow better CSS styling.
It may break existing styling.
:py:meth:
domains.py.PyObject.get_signature_prefix
has changed toreturn a list of nodes instead of a plain string.
domains.js.JSObject.display_prefix
has been changed into a methodget_display_prefix
which now returns a list of nodesinstead of a plain string.
with more docutils nodes to allow better CSS styling.
It may break existing styling.
Deprecated
sphinx.ext.autodoc.AttributeDocumenter._datadescriptor
sphinx.writers.html.HTMLTranslator._fieldlist_row_index
sphinx.writers.html.HTMLTranslator._table_row_index
sphinx.writers.html5.HTML5Translator._fieldlist_row_index
sphinx.writers.html5.HTML5Translator._table_row_index
Features added
autodoc-process-bases
supports to inject reST snippet as abase class
retval
for :rst:dir:
c:function
and :rst:dir:c:macro
.retval
for :rst:dir:cpp:function
.gettext_allow_fuzzy_translations
to allow "fuzzy"messages for translation
add_stylesheet()
API. It will be kept untilthe Sphinx-6.0 release
intersphinx_disabled_reftypes
for disablinginterphinx resolution of cross-references that do not have an explicit
inventory specification. Specific types of cross-references can be disabled,
e.g.,
std:doc
or all cross-references in a specific domain,e.g.,
std:*
.warnings using :confval:
suppress_warnings
Bugs fixed
primary_domain
is not 'py'
:confval:
autodoc_typehints_description_target
is set to "documented" whenits info-field-list contains
:returns:
fieldgeneric class
autodoc_inherit_docstrings
does not effect tooverridden classmethods
autodoc_preserve_defaults
does not supporthexadecimal numeric
primary_domain
is not 'py'
return all of them as result instead of just one.
py:method
directive with
:property:
option:confval:
autodoc_typehints='description'
does not recognize
:class:`` optionbuild
e.g.,
proj:myFunc
, leave the inventory prefix in the unresolved text.v4.2.0
Compare Source
=====================================
Features added
3.10 or above
template variable
sphinx_version_tuple
:py:property:
directive supports:classmethod:
option to describe the class property
builddir
as an argumentBugs fixed
namespace package
class inherites the class having
_name
attributetyping
module are not displayedwell with the HEAD of 3.10
__init__()
and
__new__()
list[int]
)are not displayed well
are not removed completely
failed to fetch the content of the page
:type:
option for :rst:dir:py:property
directive doesnot create a hyperlink
function pointers.
language-highlighted
:code:
role.v4.1.2
Compare Source
=====================================
Incompatible changes
github.com (ex. anchors in reST/Markdown documents)
Bugs fixed
typing.NewType
are not displayed wellwith the HEAD of 3.10
typing
module are not displayed wellwith the HEAD of 3.10
autodoc_class_signature = "separated"
v4.1.1
Compare Source
=====================================
Dependencies
Bugs fixed
v4.1.0
Compare Source
=====================================
Dependencies
Deprecated
app
argument ofsphinx.environment.BuildEnvironment
becomesrequired
sphinx.application.Sphinx.html_theme
sphinx.ext.autosummary._app
sphinx.util.docstrings.extract_metadata()
Features added
#8107: autodoc: Add
class-doc-from
option to :rst:dir:autoclass
directive to control the content of the specific class like
:confval:
autoclass_content
#8588: autodoc: :confval:
autodoc_type_aliases
now supports dotted name. Itallows you to define an alias for a class with module name like
foo.bar.BazClass
#9175: autodoc: Special member is not documented in the module
#9195: autodoc: The arguments of
typing.Literal
are wrongly rendered#9185: autodoc: :confval:
autodoc_typehints
allows'both'
setting toallow typehints to be included both in the signature and description
#4257: autodoc: Add :confval:
autodoc_class_signature
to separate the classentry and the definition of
__init__()
method#8061, #9218: autodoc: Support variable comment for alias classes
#3014: autodoc: Add :event:
autodoc-process-bases
to modify the base classesof the class definitions
#9272: autodoc: Render enum values for the default argument value better
#9384: autodoc:
autodoc_typehints='none'
now erases typehints forvariables, attributes and properties
#3257: autosummary: Support instance attributes for classes
#9358: html: Add "heading" role to the toctree items
#9225: html: Add span tag to the return typehint of method/function
#9129: html search: Show search summaries when html_copy_source = False
#9307: html search: Prevent corrections and completions in search field
#9120: html theme: Eliminate prompt characters of code-block from copyable
text
#9176: i18n: Emit a debug message if message catalog file not found under
:confval:
locale_dirs
#9414: LaTeX: Add xeCJKVerbAddon to default fvset config for Chinese documents
#9016: linkcheck: Support checking anchors on github.com
#9016: linkcheck: Add a new event :event:
linkcheck-process-uri
to modifyURIs before checking hyperlinks
#6525: linkcheck: Add :confval:
linkcheck_allowed_redirects
to markhyperlinks that are redirected to expected URLs as "working"
#1874: py domain: Support union types using
|
in info-field-list#9268: py domain: :confval:
python_use_unqualified_type_names
supports typefield in info-field-list
#9097: Optimize the parallel build
#9131: Add :confval:
nitpick_ignore_regex
to ignore nitpicky warnings usingregular expressions
#9174: Add
Sphinx.set_html_assets_policy
to tell extensions to includeHTML assets in all the pages. Extensions can check this via
Sphinx.registry.html_assets_policy
C++, add support for
inline
variables,consteval
functions,constinit
variables,char8_t
,explicit(<constant expression>)
specifier,(e.g.,
Sortable auto &v
).C, add support for digit separators in literals.
#9166: LaTeX: support containers in LaTeX output
Bugs fixed
undocumented
attribute not having any comment
rendered
class) via autoclass directive
:confval:
man_make_section_directory
is not correcton HEAD request
(e.g.
Callable[[], None])
will be rendered with a bracket missing(
Callable[], None]
):param:
and:type:
fields does not support a type containingwhitespace (ex.
Dict[str, str]
)making an single xref. For C and C++, use the
expr
role for typed fields.v4.0.3
Compare Source
=====================================
Features added
_Decimal32
,_Decimal64
, and_Decimal128
.c_extra_keywords
to allow user-defined keywordsduring parsing.
sphinx.util:force_decode()
to become some 3rd partyextensions available again during 5.0
Bugs fixed
versionchanged
with contents being a listwill cause error during pdf build
with Japanese engines
See also :confval:
c_extra_keywords
.v4.0.2
Compare Source
=====================================
Dependencies
Incompatible changes
(see :confval:
man_make_section_directory
)Bugs fixed
that does not support the node installs a missing-reference handler
v4.0.1
Compare Source
=====================================
Bugs fixed
from a property of the class
autosummary_generate
cross-reference" warning
v4.0.0
Compare Source
=====================================
Dependencies
4.0.0b1
tex-gyre
font dependency4.0.0b2
Some themes do not support it, and you need to update your custom CSS to
upgrade it.
Incompatible changes
4.0.0b1
autodoc_typehints='description'
andautoclass_content='class'
setIndex
class becomes subclasses ofabc.ABC
to indicatemethods that must be overridden in the concrete classes
is added to indicate that the python object is canonical one
MathJax configuration may have to set the old MathJax path or update their
configuration for version 3. See :mod:
sphinx.ext.mathjax
.napoleon_use_param
also affect "other parameters"section
:confval:
man_make_section_directory
):confval:
html_codeblock_linenos_style
to'inline'
<p>
instead of<div>
basic/layout.html to
script_files
variablecss_files
variabledocuments
:var:
,:cvar:
and:ivar:
fields do not createcross-references
align
attribute offigure
andtable
nodes becomesNone
by default instead of'default'
some auxiliary files created in
latex
build output repertorypath as a relative path from source directory
4.0.0b2
cpp:expr
and:rst:role:
cpp:texpr
.Deprecated
html_codeblock_linenos_style
favicon
andlogo
variable in HTML templatessphinx.directives.patches.CSVTable
sphinx.directives.patches.ListTable
sphinx.directives.patches.RSTTable
sphinx.ext.autodoc.directive.DocumenterBridge.filename_set
sphinx.ext.autodoc.directive.DocumenterBridge.warn()
sphinx.registry.SphinxComponentRegistry.get_source_input()
sphinx.registry.SphinxComponentRegistry.source_inputs
sphinx.transforms.FigureAligner
sphinx.util.pycompat.convert_with_2to3()
sphinx.util.pycompat.execfile_()
sphinx.util.smartypants
sphinx.util.typing.DirectiveOption
Features added
4.0.0b1
bound
argument for TypeVarwhen the class has two different names; a canonical name and an alias name
autodoc_typehints_description_target
to controlthe behavior of
autodoc_typehints=description
autodoc_docstring_signature
will continue to lookfor multiple signature lines without backslash character
autosummary_generate
by default:canonical:
option to python directives to describethe location where the object is defined
python_use_unqualified_type_names
to suppressthe module name of the python reference if it can be resolved (experimental)
py:property
directive to describe a property:confval:
gettext_additional_targets
setting)html_favicon
and :confval:html_logo
now accept URLfor the image
master_doc
is now renamed to :confval:root_doc
<=>
.sphinx.addnodes.pending_xref_condition
has been added.It can be used to choose appropriate content of the reference by conditions.
4.0.0b2
Any
arguments causes nit-picky warningpy37+
alias objects are defined on the document
nodes
for details.mathjax_config
to:confval:
mathjax2_config
and add :confval:mathjax3_config
Bugs fixed
4.0.0b1
Python 3.7 or above)
<p>
:unknown:doc:
)cpp:enumerator
change) with late TeXLive 2019
with size explicitly set in pixels) (fixed for
'pdflatex'/'lualatex'
only)Pygments style
verbatimmaxunderfull
setting does not work asexpected
\pysigline
\pysiglinewithargsret
does not compute correctlyavailable horizontal space and should use a ragged right style
:confval:
cpp_index_common_prefix
instead of the first that matches.as parameter name.
function parameter lists.
(function) declarators, and in the argument to
sizeof...
.4.0.0b2
KeyError
when analias
directive is the first C/C++directive in a file with another C/C++ directive later.
4.0.0b3
v3.5.4
=====================================
Dependencies
Bugs fixed
#9078: autodoc: Async staticmethods and classmethods are considered as non
async coroutine-functions with Python3.10
#8870, #9001, #9051: html theme: The style are not applied with docutils-0.17
sidebar
directivev3.5.3
=====================================
Features added
v3.5.2
Compare Source
=====================================
Bugs fixed
v3.5.1
Compare Source
=====================================
Bugs fixed
read-only class
:confval:
html_context
unparsable python module found
v3.5.0
Compare Source
=====================================
Dependencies
multicol
(it is anyhow a required part of the official latex2ebase distribution)
Incompatible changes
html_add_permalinks
is replaced by:confval:
html_permalinks
and :confval:html_permalinks_icon
Deprecated
sphinx.builders.linkcheck.CheckExternalLinksBuilder.anchors_ignore
sphinx.builders.linkcheck.CheckExternalLinksBuilder.auth
sphinx.builders.linkcheck.CheckExternalLinksBuilder.broken
sphinx.builders.linkcheck.CheckExternalLinksBuilder.good
sphinx.builders.linkcheck.CheckExternalLinksBuilder.redirected
sphinx.builders.linkcheck.CheckExternalLinksBuilder.rqueue
sphinx.builders.linkcheck.CheckExternalLinksBuilder.to_ignore
sphinx.builders.linkcheck.CheckExternalLinksBuilder.workers
sphinx.builders.linkcheck.CheckExternalLinksBuilder.wqueue
sphinx.builders.linkcheck.node_line_or_0()
sphinx.ext.autodoc.AttributeDocumenter.isinstanceattribute()
sphinx.ext.autodoc.directive.DocumenterBridge.reporter
sphinx.ext.autodoc.importer.get_module_members()
sphinx.ext.autosummary.generate._simple_info()
sphinx.ext.autosummary.generate._simple_warn()
sphinx.writers.html.HTMLTranslator.permalink_text
sphinx.writers.html5.HTML5Translator.permalink_text
Features added
value of the variable if docstring contains
:meta hide-value:
ininfo-field-list
implementation if they're ellipsis
autodoc_default_options
viadirective options
autodoc_preserve_defaults
asan experimental feature. It preserves the default argument values of
functions in source code and keep them not evaluated for readability.
priority
parameterfor :meth:
Sphinx.add_js_file()
and :meth:Sphinx.add_css_file()
calls
app.add_js_file()
orapp.add_css_file()
on:event:
html-page-context
event:confval:
html_permalinks_icon
Snowball (v2.1.0)
type
:confval:
napoleon_custom_styles
references when :confval:
napoleon_preprocess_types
enabledproject_copyright
as an alias of :confval:copyright
highlight_language
supports multiple languagescode-block
and :rst:dir:literalinclude
supports automaticdedent via no-argument
:dedent:
optionmaxdepth
option to :rst:dir:cpp:alias
to insert nesteddeclarations.
noroot
option to :rst:dir:c:alias
to render only nesteddeclarations.
noroot
option to :rst:dir:cpp:alias
to render only nesteddeclarations.
Bugs fixed
class
:meta public:
does not effect to variablescontains invalid type comments
undocumented
object that raises an exception on
hasattr()
:recursive: option
search language that does not split on +)
footnote reference
availability of the same URL twice
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.