Takeshi KOMIYA
e3ee8b378a
Close #9993 : std domain: Allow to refer an inline target via ref role
2021-12-21 02:51:59 +09:00
jfbu
9e8e3f9a6e
LaTeX: separate terms from their definitions by a CR ( fix #9985 )
2021-12-20 18:47:53 +01:00
Takeshi KOMIYA
40db5694fa
Merge pull request #9992 from tk0miya/debug_print
...
test: Remove debug print
2021-12-19 18:31:52 +09:00
Takeshi KOMIYA
627d73a683
test: Remove debug print
2021-12-19 18:15:56 +09:00
Takeshi KOMIYA
cacbca6dd4
Merge pull request #9987 from tk0miya/9968_ivar_not_shown
...
Fix #9968 : autodoc: ivars are not shown if __init__ has posonlyargs
2021-12-19 13:18:58 +09:00
Takeshi KOMIYA
e7e08d2a78
Fix #9968 : autodoc: ivars are not shown if __init__ has posonlyargs
2021-12-19 12:53:15 +09:00
Takeshi KOMIYA
a9a9bd2563
Fix #9979 : Error level messages were displayed as warning messages
2021-12-17 02:10:21 +09:00
Takeshi KOMIYA
8d0fd9e74a
Merge branch '4.3.x' into 4.x
2021-12-17 02:09:04 +09:00
Takeshi KOMIYA
3626c75de0
Merge pull request #9957 from tk0miya/refactor_DeprecationWarnings
...
Reduce DeprecationWarnings
2021-12-16 01:38:32 +09:00
Takeshi KOMIYA
8e23b03263
refactor: texinfo: Remove CR char from output
...
The CR character was added for readability of output. But it makes the
texinfo writer a bit complicated. This removes it from output to keep
our code simple (reducing conditions).
2021-12-11 23:05:36 +09:00
Takeshi KOMIYA
5563f672ec
Merge branch '4.x' into fix-footnote-in-info
2021-12-11 22:59:56 +09:00
Takeshi KOMIYA
dcfc3f60ec
refactor: ssl.wrap_context() has been deprecated now
2021-12-11 11:38:24 +09:00
Takeshi KOMIYA
555e74b8ca
refactor: app.html_themes was replaced by registry.html_themes
2021-12-11 11:38:24 +09:00
Takeshi KOMIYA
4c7df3f09a
Merge pull request #9793 from samdoran/enable-parallel-on-macos
...
Set multiprocessing start method to `fork`
2021-12-11 11:23:34 +09:00
Takeshi KOMIYA
d3162d1ff2
Merge pull request #9931 from tk0miya/9075_autodoc_unqualified_typehints
...
Close #9075 : autodoc: Add a config variable autodoc_unqualified_typehints
2021-12-11 10:59:23 +09:00
Takeshi KOMIYA
9c6ebdf347
Fix flake8 warnings
2021-12-11 10:33:07 +09:00
Takeshi KOMIYA
8d071a8e8f
Merge branch '4.x' into texinfo-add-texinfo_emit_document_references
2021-12-11 10:27:50 +09:00
Takeshi KOMIYA
b232b00cf8
Merge pull request #9391 from marxin/info-samp-with-variable
...
texinfo: improve variable in :samp: directives
2021-12-11 10:25:07 +09:00
Christian Roth
10023da895
linkcheck: Exclude links from matched documents
2021-12-08 10:01:45 +01:00
Takeshi KOMIYA
c71ff1cd21
Close #9075 : autodoc: Add a config variable autodoc_unqualified_typehints
...
If autodoc_unqualified_typehints feature enabled, autodoc suppresses the
leading module names of typehints of function signatures (ex.
`io.StringIO` -> `StringIO`)
2021-12-03 18:05:49 +09:00
Takeshi KOMIYA
5aa6cbbca8
Add unqualified_typehints
parameter to stringify_signature()
...
To make the generated function signatures simple, this adds a new
parameter `unqualified_typehints` to sphinx.util.inspect:
stringify_signature() to suppress the leading module name of
typehints.
2021-12-03 18:05:49 +09:00
Takeshi KOMIYA
80f79aef91
Add smartref
parameter to sphinx.util.typing:stringify()
...
To make the generated function signatures simple, this adds a new
parameter `smartref` to sphinx.util.typing:stringify() to suppress the
leading module name from typehints.
2021-12-03 18:05:49 +09:00
Jakob Lykke Andersen
f8f26286ad
C, simple type specifier parsing, handling macro-keywords
2021-12-01 19:33:23 +01:00
Jakob Lykke Andersen
c09643c21f
C, fix parsing of fundamental types
...
When multiple simple type specifiers are part of the type,
then they may appear in any order.
2021-11-30 22:00:54 +01:00
Jakob Lykke Andersen
67d673406f
C++, fix parsing of fundamental types
...
When multiple simple type specifiers are part of the type,
then they may appear in any order.
2021-11-30 22:00:20 +01:00
Kian-Meng, Ang
5161341b3e
Fix typos
2021-11-30 05:48:44 +08:00
gschwaer
1caf4823f2
feat: add tests and fix None rtype
2021-11-29 20:06:37 +01:00
Takeshi KOMIYA
5eaed2bed7
py domain: Allow "~" prefix as a prefix of typehints in signature
...
Now python domain supports the "~" prefix at the beginning of the
typehints of the function signatures:
.. py:function:: func(x: ~typing.Dict)
It's rescognized as the same as python reference roles do
(ex. :py:class:`~typing.Dict`).
2021-11-30 01:54:23 +09:00
Takeshi KOMIYA
a3edc982c1
Merge pull request #9902 from tk0miya/9899_pydomain_crossref_specifier_in_typefield
...
Fix #9899 : py domain: Allows cross-reference specifier to :type: option
2021-11-30 01:43:51 +09:00
Takeshi KOMIYA
e8e45a3678
Merge pull request #9905 from tk0miya/9883_ismock
...
Fix #9883 : autodoc: doccomment for the alias to mocked object was ignored
2021-11-30 01:37:41 +09:00
Takeshi KOMIYA
e25589ca1d
Merge branch '4.x' into 9899_pydomain_crossref_specifier_in_typefield
2021-11-30 01:37:04 +09:00
Takeshi KOMIYA
74d912133a
Merge pull request #9800 from hoefling/extlinks/replacements-check
...
Proposal: check if hardcoded URLs can be replaced with extlinks
2021-11-29 09:36:55 +09:00
Takeshi KOMIYA
f88ac53e51
Fix #9883 : autodoc: doccomment for the alias to mocked object was ignored
2021-11-29 02:06:16 +09:00
Takeshi KOMIYA
acaf70596e
Fix #9899 : py domain: Allows cross-reference specifier to :type: option
2021-11-29 00:32:56 +09:00
Takeshi KOMIYA
17467b7ae2
test: Try to import nodes.meta first (for the latest docutils)
2021-11-28 13:01:50 +09:00
Takeshi KOMIYA
2b0ba5089b
Merge remote-tracking branch 'origin/4.x' into 4.x
2021-11-26 02:55:56 +09:00
Takeshi KOMIYA
f2295d2f07
Merge branch '4.3.x' into 4.x
2021-11-26 02:55:41 +09:00
Takeshi KOMIYA
15d834e4d8
Merge pull request #9831 from Yoshanuikabundi/autosummary___all__
...
Allow autosummary to respect __all__
2021-11-26 02:15:43 +09:00
Takeshi KOMIYA
c8f019ab50
Fix #9868 : ImportError on testing sphinx.util.inspect
...
In some Linux distribution, ImportError is raised on testing
sphinx.util.inspect because _testcapi is not installed.
2021-11-23 18:22:08 +09:00
Takeshi KOMIYA
259de307ca
Merge branch '4.3.x' into 4.x
2021-11-23 18:17:13 +09:00
Josh Mitchell
73b7cd51ea
Fix lints and reorder args of members_of
2021-11-22 13:57:56 +11:00
Takeshi KOMIYA
fb92547b91
Fix #9866 : autodoc: doccoment for the imported class was ignored
...
Autodoc tried to scan doccomment on the module where the class defined.
But it failed to get it if the class is imported from other module.
This analyzes the target module to obtain the doccomment.
2021-11-21 18:50:54 +09:00
Takeshi KOMIYA
e2c6146b3e
Fix #9864 : mathjax: Failed to render equations via MathJax v2
...
MathJax library has been loaded via "defer" method since v4.3.0. But
it prevents to work MathJax v2. This rollbacks the change and use
"async" method as default again.
To support changing the loading method, this allows to specify it via
mathjax_options.
2021-11-21 18:27:35 +09:00
Matt Ficke
2ed4bed33a
Update RFC base url
...
The tools.ietf.org subdomain is being wound down and services are moving to
datatracker.ietf.org. Links to RFC documents using the old subdomain are being
redirected to datatracker; this updates the configured `rfc_base_url` to
point to the current subdomain.
Discussion: https://mailarchive.ietf.org/arch/msg/ietf/0n-6EXEmkTp3Uv_vj-5Vnm3o0bo/
2021-11-16 10:52:02 -05:00
Josh Mitchell
8e45229fee
Fixed missed ignore___all__ -> ignore_module_all
2021-11-15 13:27:26 +11:00
Josh Mitchell
79089b5fa4
Corrections from review by tk0miya
2021-11-15 13:18:47 +11:00
Josh Mitchell
ad0071ddb7
#2021 : Allow autosummary to respect __all__
2021-11-15 13:16:33 +11:00
Martin Liska
9ec829fb50
texinfo: simplify reference emission.
...
The commit adds a new config value 'texinfo_emit_document_references'
that blocks the emission of inline references and make it better readable
with legacy stand-alone reader ``info``.
Before the change we emit:
Default option value for @ref{e,,-Wshift-overflow3}.
while with texinfo_emit_document_references == True:
Default option value for -Wshift-overflow3.
It addresses limitations mentioned in Sphinx' FAQ:
https://www.sphinx-doc.org/en/master/faq.html#texinfo-info
2021-11-12 14:00:48 +01:00
oleg.hoefling
8356260554
extlinks: replacement suggestions for hardcoded links
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-11-12 09:38:59 +01:00
Takeshi KOMIYA
1317eeedae
Merge pull request #9828 from tk0miya/9618_gettext_allow_fuzzy_translations
...
Close #9618 : i18n: Add gettext_allow_fuzzy_translations
2021-11-10 01:45:07 +09:00
Takeshi KOMIYA
563936b969
Merge pull request #9829 from tk0miya/9450_load_mathjax_as_defer
...
Close #9450 : mathjax: Load MathJax via "defer" strategy
2021-11-10 01:32:43 +09:00
Takeshi KOMIYA
203094b4c3
Close #9618 : i18n: Add gettext_allow_fuzzy_translations
2021-11-10 01:32:02 +09:00
Takeshi KOMIYA
4cd19b8274
Close #9450 : mathjax: Load MathJax via "defer" strategy
...
To allow configure MathJax via static JS file, it should be loaded via
"defer" strategy.
2021-11-09 01:54:56 +09:00
Martin Liska
faed8cb8db
texinfo: improve variable in :samp: directives
...
The following snippet:
Show :samp:`Samp with a {variable}.`
Ends in .info as:
Show ‘Samp with a `variable'.’
Which is suboptimal and @var{variable} should be rather used.
That results in ‘Samp with a VARIABLE.’.
2021-11-08 11:30:44 +01:00
Takeshi KOMIYA
ee1cae8c1c
Replace distutils.versions.LooseVersion by packaging.version.Version
...
Distutils module are now deprecated and will be removed in Python 3.12.
This replaces it by packaging module and reduces the dependency to it.
refs: #9820
2021-11-07 20:15:07 +09:00
Takeshi KOMIYA
1f91a0f8bd
Merge pull request #9799 from tk0miya/9781_autodoc_preserve_hexadecimal
...
Fix #9781 : autodoc_preserve_defaults does not support hexadecimal
2021-11-01 00:58:33 +09:00
Jakob Lykke Andersen
56002be5e1
rename intersphinx_disabled_{refs -> reftypes}
...
And change format for domains to {name}:*
2021-10-31 13:56:26 +01:00
Jakob Lykke Andersen
cfbac2ceaa
intersphinx_disabled_refs, rename 'all' to '*'
2021-10-31 13:23:23 +01:00
Jakob Lykke Andersen
0d9f4cd469
Generalize to disable specific refs as well.
2021-10-31 13:15:47 +01:00
Jakob Lykke Andersen
f22faa7e06
Add intersphinx_disabled_domains
...
Fixes sphinx-doc/sphinx#2068
Replaces sphinx-doc/sphinx#8981
2021-10-31 13:15:47 +01:00
Jakob Lykke Andersen
961f5af096
Intersphinx, refactoring
...
Also, when a reference is unresolved, don't strip the inventory prefix.
2021-10-31 13:15:46 +01:00
Takeshi KOMIYA
4475dab99e
Merge pull request #9656 from sdhiscocks/suppress_warning_subtype_none
...
Fix issue with warnings without subtype being incorrectly suppressed
2021-10-31 15:51:14 +09:00
Takeshi KOMIYA
cda266333e
Merge pull request #9798 from tk0miya/9775_Literal
...
Fix #9775 : py domain: Literal typehint was converted to a cross reference
2021-10-31 15:43:19 +09:00
Takeshi KOMIYA
b8844eb339
Fix #9781 : autodoc_preserve_defaults does not support hexadecimal
2021-10-31 01:11:56 +09:00
Takeshi KOMIYA
52787deb32
Fix #9775 : py domain: Literal typehint was converted to a cross reference
2021-10-30 16:57:33 +09:00
Takeshi KOMIYA
3c5b31b50d
Fix #9757 : autodoc_inherit_docstrings does not effect to overriden classmethods
2021-10-30 02:01:38 +09:00
Sam Doran
83225767cb
Set multiprocessing start method to fork
...
Since the current code requires forking, set it explicitly rather than disabling
parallelization on macOS.
2021-10-28 12:38:56 -04:00
Takeshi KOMIYA
b778ee806e
Fix #9752 : autodoc: Failed to detect type annotation for slots attribute
2021-10-23 14:59:36 +09:00
Takeshi KOMIYA
179e0bf8a2
refactor: Node.traverse() will returns generator since 0.18
2021-10-10 15:50:39 +09:00
Takeshi KOMIYA
2e36027474
Merge branch '4.x' into 9708_needs_extension_logic
2021-10-09 15:17:23 +09:00
Takeshi KOMIYA
3c9e53852d
Fix #9708 : needs_extension failed to check double-digit version correctly
2021-10-09 14:59:05 +09:00
Takeshi KOMIYA
2a7775dbb8
Merge branch '4.x' into 9697_property_with_parens
2021-10-09 14:49:57 +09:00
Takeshi KOMIYA
2760b3bb79
test: Support python-3.11
2021-10-09 14:41:39 +09:00
Takeshi KOMIYA
34f957f131
Merge branch '4.x' into 9697_property_with_parens
2021-10-09 14:00:39 +09:00
Takeshi KOMIYA
7f6d8e97cb
Merge pull request #9701 from tk0miya/docutils-0.18
...
Follow new structure of docutils-0.18
2021-10-09 13:55:32 +09:00
Takeshi KOMIYA
335f95afde
Support docutils-0.18; Meta directive and meta node has moved
2021-10-03 19:18:53 +09:00
Jakob Lykke Andersen
a64196f048
js/py nodes, update arglist rendering
2021-10-03 10:17:31 +02:00
Jakob Lykke Andersen
06d3d7356e
js nodes, update name rendering
2021-10-03 10:17:31 +02:00
Jakob Lykke Andersen
37083fcc1a
js nodes, update display_prefix
2021-10-03 10:17:31 +02:00
Takeshi KOMIYA
b9204186f0
Fix #9697 : An index entry with parens was registered for py:method
2021-10-03 13:03:23 +09:00
Jakob Lykke Andersen
fb45dba61e
py nodes, isort fix
2021-10-02 12:42:17 +02:00
Jakob Lykke Andersen
01ef6a437f
py nodes, PyObject anno
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
ae7865aaf8
py nodes, PyProperty get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
5a3b7f130d
py nodes, PyMethod get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
51e7b6d2aa
py nodes, PyClassLike, get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
83fcc98dbc
py nodes, PyFunction get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
8cd0847590
py nodes, PyProperty
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
73ade60654
py nodes, PyAttribute value
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
2e37c5719d
py nodes, PyAttribute type
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
e008b43683
py nodes, PyVariable value
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
3979bbad7f
py nodes, PyVariable type
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
3a1bd32665
py nodes, arglist
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
92a9df7451
py nodes, Tuple
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
c00e608783
py nodes, List
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
1cb8c56720
py nodes, BitOr
2021-10-02 12:41:40 +02:00
oleg.hoefling
36a6fcaef1
don't print file extension twice in linkcheck warnings
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-09-27 22:12:57 +02:00
Takeshi KOMIYA
d288907fd1
Merge branch '4.x' into 9607_incorrect_orig_bases
2021-09-27 02:21:14 +09:00
Takeshi KOMIYA
0ea135e6d4
Merge branch '4.x' into 9657_qualname_of_mock
2021-09-27 01:58:44 +09:00
Takeshi KOMIYA
232dbe41c5
Merge pull request #9673 from tk0miya/9651_autodoc_typehints_description_target
...
Fix #9651 : autodoc_typehints_description_target was confused by :returns:
2021-09-27 01:58:10 +09:00
Takeshi KOMIYA
72e5090403
Merge pull request #9649 from jakobandersen/searchindex_fix
...
Searchindex fix when objects have the same name
2021-09-27 01:54:50 +09:00
Takeshi KOMIYA
5fb6fb6039
Fix #9651 : autodoc_typehints_description_target was confused by :returns:
...
It only checks the existence of `:return:` field. And it does not check
`:returns:` field. It causes the absence of return types.
2021-09-26 02:10:13 +09:00
Takeshi KOMIYA
de59a72fe6
Merge pull request #9665 from tk0miya/9664_autodoc_process_bases_injection
...
Close #9664 : autodoc: autodoc-process-bases supports reST snippet
2021-09-26 00:54:42 +09:00
Jakob Lykke Andersen
b6e60d4993
search, store objects as array to retain all
2021-09-25 10:59:49 +02:00
Jakob Lykke Andersen
356583fe8f
search, test update
2021-09-25 10:59:24 +02:00
Takeshi KOMIYA
d75e3171cd
Merge pull request #9670 from jonppe/fix-download-file-with-special-characters
...
Fix download file with special characters
2021-09-25 14:38:48 +09:00
Johannes Aalto
fa3b334ed0
Add test for encoding local file links with special characters
...
Add test to make sure Sphinx uses proper URL encoding for
special characters in file names.
Use test_html_download() since it test_html5_output() doesn't
quite seem to have easy pattern to verify the contents of href
attribute.
Issue #3097
Signed-off-by: Johannes Aalto <ext-johannes.aalto@vaisala.com>
2021-09-24 20:34:09 +03:00
Takeshi KOMIYA
d13b86e02f
Close #9664 : autodoc: autodoc-process-bases supports reST snippet
...
This allows to inject a reST snippet through autodoc-process-bases
event. It helps to modify the base classes of any class to the expected
mark-up'ed text by custom extension.
2021-09-23 10:59:01 +09:00
Latosha Maltba
cf9b5b5be9
Add tests for :dedent: option of code-block directive
2021-09-21 09:19:53 +00:00
Takeshi KOMIYA
e79efef63a
Fix #9657 : autodoc: basecls for a subclass of mocked object is incorrect
2021-09-21 02:03:31 +09:00
Steven Hiscocks
e38456d4e1
Fix issue with warnings without subtype being incorrectly suppressed
...
This fixes an issue with warnings that have been raised with no subtype
being suppressed if a suppress warnings value with a subtype has been set.
e.g. all `autodoc` warnings should not be suppressed if
`autodoc.import_object` is only set to be suppressed.
2021-09-20 12:16:14 +01:00
Takeshi KOMIYA
10b7f0e252
Fix #9607 : autodoc: Incorrect base class detection
...
In case of the descendants of generic class, the value of
obj.__orig_bases__ is incorrect because it returns original base
arguments for the child of the generic class instead of the target
class itself.
This uses obj.__dict__ to get the correct __orig_bases__ information.
2021-09-20 13:20:26 +09:00
Takeshi KOMIYA
506590d4ba
Merge pull request #9640 from tk0miya/9639_support_asyncgenfunction
...
Close #9639 : autodoc: Support asynchronous generator functions
2021-09-18 01:03:34 +09:00
Takeshi KOMIYA
ccfca458ea
Close #9639 : autodoc: Support asynchronous generator functions
2021-09-17 02:20:40 +09:00
Takeshi KOMIYA
ed227d7d3c
Fix #9630 : autodoc: Failed to build xrefs if primary_domain is not 'py'
...
Autodoc generates reST code that uses raw `:obj:` and `:class:` xrefs to
refer the classes and types. But they're fragile because they assume
the primary_domain=='py'.
This adds `:py:` prefix to these xrefs to make them robust.
2021-09-14 23:59:47 +09:00
Takeshi KOMIYA
260f217a3d
Merge pull request #9594 from hkuno/pr/no_empty_desc_4.x
...
let user skip printing command description
2021-09-11 19:08:37 +09:00
Takeshi KOMIYA
571929974a
Add a testcase for #9694
2021-09-11 18:47:24 +09:00
Takeshi KOMIYA
c44ee0ebaa
Merge pull request #9611 from tk0miya/9560_NewType_module
...
Close #9560 : autodoc: Allow to refer NewType with modname in py310+
2021-09-11 17:19:54 +09:00
Christian Clauss
d2c95dfd0c
overridden
2021-09-08 02:33:10 +02:00
Christian Clauss
86583c578c
Fix typos discovered by codespell
2021-09-08 02:15:25 +02:00
Takeshi KOMIYA
c5b35efce3
Close #9560 : autodoc: Allow to refer NewType with modname in py310+
...
Before 3.10, an instance of NewType has incorrect module name. But it
was fixed on 3.10. This starts to use the module info if the
interpreter is 3.10+.
2021-09-05 18:28:27 +09:00
Takeshi KOMIYA
bd5e40ce3a
Merge pull request #9609 from tk0miya/9608_apidoc_pymod_definition_for_implicit_namespace
...
Fix #9608 : apidoc: module is not described if implicit namespace package
2021-09-05 16:34:58 +09:00
Takeshi KOMIYA
a3f08fe298
Merge pull request #9606 from tk0miya/9600_typehints_including_commas
...
Fix #9600 : autosummary: Typehints including commas confuses autosummary
2021-09-05 16:34:01 +09:00
Takeshi KOMIYA
223d615011
Fix #9608 : apidoc: module is not described if implicit namespace package
...
To make implicit namespace packages referencable, this outputs empty
module definitions for them.
2021-09-04 22:44:04 +09:00
Takeshi KOMIYA
0a8655b733
Fix #9600 : autosummary: Typehints including commas confuses autosummary
2021-09-04 01:54:11 +09:00
Takeshi KOMIYA
34664ce4ce
Fix #9576 : py domain: Literal typehint was converted to a cross reference
...
The content of Literal typehint should not be converted to cross
references.
2021-09-03 22:09:30 +09:00
Takeshi KOMIYA
3e24190564
Fix #9585 : py:property directive does not create a hyperlink for types
2021-08-31 23:55:12 +09:00
Takeshi KOMIYA
a4a0b97835
Merge pull request #9569 from jakelishman/fix-autosummary-sections
...
Fix #9568 : autosummary: summarise overlined sectioned headings correctly
2021-08-29 17:17:52 +09:00
Takeshi KOMIYA
760820f5ed
Merge branch '4.x' into fix-autosummary-sections
2021-08-29 16:47:43 +09:00
Takeshi KOMIYA
276f943610
Merge branch '4.x' into 9564-fix_highlighted_code_role_smartquotes
2021-08-29 16:43:50 +09:00
Takeshi KOMIYA
95648432c4
Merge branch '4.1.x' into 4.x
2021-08-21 21:03:18 +09:00
Justin Turner Arthur
adcda091d9
Check complete ancestry of text nodes for smartquotes eligibility.
...
Fixes sphinx-doc/sphinx#9564 .
2021-08-21 00:20:04 -05:00
Jakob Lykke Andersen
73c1520923
C++, fix parsing of defaulted fp function params
2021-08-20 18:17:42 +02:00
Jake Lishman
9d7fa75d4a
Fix #9568 : autosummary: summarise overlined sectioned headings correctly
...
Add an extra step in the autosummary summariser algorithm to get a valid
text form of section headings. This fixed issues when the first element
of a summarised document was a section heading with overlines, such as
=======
Heading
=======
Previously, the first line would be taken verbatim, which caused parse
errors in the rest of the document.
2021-08-20 17:05:58 +01:00
Jakob Lykke Andersen
4b62b6cb82
C, C++, parse <width> <complex/imaginary>
2021-08-20 17:15:34 +02:00
Jakob Lykke Andersen
a4371ea94c
C++, update fundamental type handling a la in C
2021-08-20 17:15:34 +02:00
Jakob Lykke Andersen
cf091f7bb6
C, add short int, and treat spaced types properly
2021-08-20 17:15:34 +02:00
Jakob Lykke Andersen
e2ae287f1c
C, add fract and accum
2021-08-20 17:15:34 +02:00
Jakob Lykke Andersen
c5962b70bd
C, update fundamental types, including GNU exts
...
Fixes sphinx-doc/sphinx#9535
2021-08-20 17:15:34 +02:00
Takeshi KOMIYA
bde6c8d2ef
Fix test: Tests has been broken with pygments-2.10+
2021-08-19 23:26:42 +09:00
James
596ad5523d
Merge branch '4.x' into 4.x
2021-08-02 00:32:14 +01:00
James
423b10a848
Add some tests
2021-08-02 00:20:08 +01:00
Jeremy Maitin-Shepard
6c969ac87e
Fix autodoc_docstring_signature support for __init__ and __new__
...
The `MethodDocumenter.get_doc` method added by
51ae283a38
prevents
DocstringSignatureMixin from working correctly for __init__ and
__new__ methods. Additionally, the __new__ docstring was not obtained
correctly.
This commit checks for `self._new_docstrings` being set, and also
corrects the logic for obtaining the __new__ docstring.
There still remains the issue that when the class signature is
obtained from the signature of __init__ or __new__, only the real
signature is used, due to the use of `sphinx.util.inspect.signature`;
the autodoc_docstring_signature option does not have any effect.
2021-07-31 09:32:40 -07:00
Takeshi KOMIYA
3dd562ad6a
Merge branch '4.x' into 9487_typehint_for_cached_property
2021-07-23 02:22:38 +09:00
Takeshi KOMIYA
05cce83cc7
Merge branch '4.1.x' into 4.x
2021-07-23 02:16:33 +09:00
Takeshi KOMIYA
65c089bd40
Fix #9487 : autodoc: typehint for cached_property is not shown
2021-07-22 23:25:03 +09:00
Takeshi KOMIYA
9ebdc987b0
Merge pull request #9467 from tk0miya/9435_disable_rewrite_github_anchor
...
Fix #9435 : linkcheck: Failed to check anchors in github.com
2021-07-20 01:15:29 +09:00
Takeshi KOMIYA
f9941b9402
Merge pull request #9464 from Gobot1234/4.x
...
Add support for PEP 585 generics
2021-07-20 01:14:12 +09:00
Takeshi KOMIYA
362f36d35d
Merge pull request #9461 from tk0miya/9445_class_property
...
Close #9445 : Support class properties
2021-07-20 01:12:04 +09:00
Takeshi KOMIYA
501abc67b6
Merge pull request #9478 from tk0miya/9443
...
Fix testcases that failed in python3.10.0b4
2021-07-20 00:39:43 +09:00
Takeshi KOMIYA
0565da6512
Fix testcases that failed in python3.10.0b4
2021-07-20 00:25:32 +09:00
James
451811c40c
Respond to feedback
2021-07-18 10:55:38 +01:00
Takeshi KOMIYA
a35b009adc
Fix #9435 : linkcheck: Failed to check anchors in github.com
...
The approach of `rewrite_github_anchor` makes some anchors valid. But
it also makes other kind of anchors invalid. This disables the handler
to make them valid again (while 4.1.x release).
2021-07-18 13:03:57 +09:00
Takeshi KOMIYA
38d80c3d0f
Close #9445 : autodoc: Support class properties
...
Since python 3.9, `classmethod` starts to support creating a "class
property". This supports to generate document for it.
2021-07-17 16:39:50 +09:00
Takeshi KOMIYA
120525563c
Cloase #9445 : :py:property: directive now supports :classmethod: option
...
Since python 3.9, `classmethod` starts to support creating a "class
property". This allows to describe it.
2021-07-17 14:24:31 +09:00
Karolina Surma
42d9d11247
Fix testcase: Enum changes were reverted in Python 3.10
2021-07-14 08:40:03 +02:00
Simon Hausmann
3a50abc5c9
Fix handling of local paths in html_logo/html_favicon directorives in conf.py
...
Merge request #9381 broke support for local logos/favicons as it
retained the paths that are passed to the template engine. That's wrong
as the actual path will be in _static/.
This should fix #9438
2021-07-13 18:03:36 +02:00
Martin Liska
1227799abf
texinfo: fix emission of @footnote directives.
...
Right now, labels are emitted as part of a @footnote directive.
That results in e.g.
Note1: (@footnote{@w{(1)}
Future versions of GCC may zero-extend...
})
which is incorrect and should be rather:
Note1: (@footnote{Future versions of GCC may zero-extend...})
2021-07-12 09:20:43 +02:00
Takeshi KOMIYA
4a2f5df9ba
Merge branch '9299' into 4.x
2021-07-11 19:33:47 +09:00
Takeshi KOMIYA
e6d3adf5d9
intersphinx: Add testcase for case insensitive term match (refs: #9299 )
2021-07-11 19:33:38 +09:00
Takeshi KOMIYA
f40c2837dc
Merge pull request #9225 from doerwalter/typehint-html
...
Add HTML markup to method/function return typehint
2021-07-11 12:03:40 +09:00
Takeshi KOMIYA
866719f48f
Merge branch '4.x' into 9427
2021-07-11 02:12:32 +09:00
Takeshi KOMIYA
dd89c3689e
py domain: Add testcase for empty callable (refs: #9427 )
2021-07-11 02:12:23 +09:00
Takeshi KOMIYA
8c62099456
Merge pull request #9415 from tk0miya/9362_AttributeError_for_subclass_of_empty_tuple
...
Fix #9362 : autodoc: AttributeError is raised for a subclass of Tuple[()]
2021-07-09 02:55:29 +09:00
Eisuke Kawashima
652ebf1bf5
Fix typo
2021-07-08 08:16:22 +09:00
Takeshi KOMIYA
007dee7590
Fix #9362 : autodoc: AttributeError is raised for a subclass of Tuple[()]
2021-07-07 09:13:44 +09:00
Takeshi KOMIYA
5e5bca98f7
Merge branch '4.x' into 6525_linkcheck_warn_redirects
2021-07-07 02:09:50 +09:00
Takeshi KOMIYA
00d28e1e98
Merge branch '9320' into 4.x
2021-07-07 02:06:36 +09:00
Takeshi KOMIYA
c2e4820ba3
Fix a flake8 violation
2021-07-07 02:06:30 +09:00
Takeshi KOMIYA
7bd4603d85
Merge pull request #9358 from jonels-msft/menu-headings
...
Provide more semantic structure for screen-readers
2021-07-07 01:58:18 +09:00
David A. Ham
c218cf2192
Merge branch 'sphinx-doc:4.x' into container-latex
2021-07-04 20:24:49 +01:00
David Ham
52aac40148
Update tests to match code changes.
2021-07-04 20:15:56 +01:00
Takeshi KOMIYA
25e1221d1f
Merge branch '4.x' into humitos/add-html-assets-in-all-pages
2021-07-04 12:53:08 +09:00
Takeshi KOMIYA
54c6c666c1
Merge pull request #9386 from tk0miya/9384_autodoc_typehints_supports_attributes
...
Fix #9384 : autodoc_typehints='none' supports typehints for attributes
2021-07-04 11:24:04 +09:00
Takeshi KOMIYA
bc616d3b1a
Merge pull request #9367 from tk0miya/9364_single_element_tuple
...
Fix #9364 : autodoc: 1-element tuple on the defarg is wrongly rendered
2021-06-30 21:26:57 +09:00
Takeshi KOMIYA
ec351bdf3d
Merge branch '4.0.x' into 4.x
2021-06-30 21:24:06 +09:00
Takeshi KOMIYA
83f60d4045
Merge pull request #9381 from tronical/logo-url-fix
...
Fix support for html logo and favicon as url
2021-06-30 21:22:29 +09:00
Takeshi KOMIYA
2aef00d7bd
Fix #9384 : autodoc_typehints='none' supports typehints for attributes
2021-06-29 21:57:26 +09:00
Jakob Lykke Andersen
358efdd8f3
C++, fix name mangling of literals with digit seps
2021-06-28 19:30:59 +02:00
Simon Hausmann
6a4c215cf0
Add unit test for remote logo and fav icon
2021-06-28 13:28:29 +02:00
Jakob Lykke Andersen
450d5caa37
C++, support constrains in placeholders
2021-06-24 22:32:23 +02:00
Jakob Lykke Andersen
7bc2e052c5
C++, C, support digit separators in literals
2021-06-24 21:12:26 +02:00
Jakob Lykke Andersen
799c53aa11
C++, support explicit(<expr>) specifier
2021-06-24 20:26:22 +02:00
Jakob Lykke Andersen
d5da6fdf50
C++, support char8_t
2021-06-24 19:45:44 +02:00
Jakob Lykke Andersen
b94a60dc89
C++, support consteval and constinit
2021-06-24 19:39:15 +02:00
Jakob Lykke Andersen
57237dbb07
C++, support inline variables
2021-06-24 19:15:54 +02:00
Joe Nelson
e6ae41ed52
Include "role" attribute in expected HTML fragment
2021-06-21 17:08:24 -05:00
Takeshi KOMIYA
b9158b96d2
Fix #9364 : autodoc: 1-element tuple on the defarg is wrongly rendered
2021-06-21 02:43:55 +09:00
Jakob Lykke Andersen
50f5280603
C, keyword changes
...
- Add new keywords from C23.
- Add c_extra_keywords as confval.
- Move macro names from keywords to c_extra_keywords.
Fixes sphinx-doc/sphinx#9354
2021-06-17 08:29:39 +02:00
Martin Liska
b23eefa03b
Fix :samp:{var}
in manual pages.
...
When a samp begins with a variable part, it is not unwrapped for manual
pages.
Fixes #1860 .
2021-06-16 09:30:08 +02:00
Manuel Kaufmann
f312792023
Merge branch '4.x' into humitos/add-html-assets-in-all-pages
2021-06-14 17:04:09 +02:00
Manuel Kaufmann
c818a70528
Rename variable to html_assets_policy
2021-06-14 16:50:26 +02:00
Walter Doerwald
9aedeee538
Remove configuration option html_signaturereturn_icon.
2021-06-14 14:02:19 +02:00
Raymond Sun
9ff1697939
Make test more readable
2021-06-14 16:15:50 +10:00
Raymond Sun
6a9cc9e5ea
Fix flake8 errors
2021-06-14 16:15:50 +10:00
Raymond Sun
c9aefa4a26
Readd prompt with new validator
2021-06-14 16:15:33 +10:00
Takeshi KOMIYA
7e71b759d7
Merge branch '4.x' into 4.0.x
2021-06-13 17:20:01 +09:00
Raymond Sun
81049deed6
Make quickstart just exit without reprompting
2021-06-12 00:07:34 +10:00
Raymond Sun
864a0b377d
Add test
2021-06-11 23:06:03 +10:00
Justin Mathews
cf8f5fce37
delete redundant test content
2021-06-10 11:46:17 -04:00
Justin Mathews
36c662eca5
positive test assertion
...
Co-authored-by: François Freitag <mail@franek.fr>
2021-06-10 11:43:14 -04:00
Justin Mathews
9b2a1e20e2
explicitly close the connection
...
Co-authored-by: François Freitag <mail@franek.fr>
2021-06-10 11:42:36 -04:00
Justin Mathews
134a8d8f54
reuse existing test link
...
Co-authored-by: François Freitag <mail@franek.fr>
2021-06-10 11:41:47 -04:00
Justin Mathews
a4621fb73e
test with http
...
Co-authored-by: François Freitag <mail@franek.fr>
2021-06-10 11:41:11 -04:00
Justin Mathews
db9adaceaf
Trigger the bad web server behaviour with the http_server context manager instead of relying on an external website.
2021-06-09 23:40:40 -04:00
Justin Mathews
11b4345ff5
Resolves bug #9306
2021-06-07 17:53:42 -04:00
Justin Mathews
57c866caf1
catch ConnectionError on HEAD
2021-06-07 17:53:36 -04:00
Justin Mathews
84d4a5b97a
failing test for linkcheck of US Patent page
2021-06-07 17:53:32 -04:00
Jakob Lykke Andersen
98f827ceee
Refactor C++ tests
2021-06-03 20:01:21 +02:00
Jakob Lykke Andersen
ef68bd4220
Refactor C tests
2021-06-03 19:35:14 +02:00
Jakob Lykke Andersen
92c5ee07be
Merge pull request #9155 from jakobandersen/field_roles
...
Call roles in typed fields
2021-06-03 19:28:19 +02:00
Takeshi KOMIYA
1418e3acbb
Merge pull request #9260 from tk0miya/9016_linkcheck_github_anchors
...
Close #9016 : linkcheck builder failed to check the anchors of github.com
2021-06-04 01:18:22 +09:00
Jakob Lykke Andersen
783314d54d
Field roles, add C++ test
2021-06-03 16:52:38 +02:00
Jakob Lykke Andersen
27d40519c1
Field roles, add C test
2021-06-03 16:42:57 +02:00
Takeshi KOMIYA
69cbf7aa92
Merge pull request #9285 from tk0miya/9283_autodoc_attribute_not_having_comment
...
Fix #9283 : autodoc: failed to build doc for attribute not commented
2021-06-03 21:47:58 +09:00
Takeshi KOMIYA
90470b094e
Close #9268 : python_use_unqualified_type_names supports type field
2021-06-03 00:09:16 +09:00
Takeshi KOMIYA
92335bd6e6
Close #9016 : linkcheck builder failed to check the anchors of github.com
2021-06-01 00:31:15 +09:00
Takeshi KOMIYA
988a79de65
linkcheck: Emit a warning for disallowed redirects
...
Now linkcheck builder integrates `linkcheck_warn_redirects` into
`linkcheck_allowed_redirects`. As a result, linkcheck builder will
emit a warning when "disallowed" redirection detected via
`linkcheck_allowed_redirects`.
2021-05-31 21:53:09 +09:00
Takeshi KOMIYA
676834b998
Merge branch '4.x' into 6525_linkcheck_warn_redirects
2021-05-31 02:54:41 +09:00
Takeshi KOMIYA
5c275191b6
Merge pull request #9282 from tk0miya/9280_exceptions
...
Fix #9280 : py domain: "exceptions" module is not displayed
2021-05-30 22:09:34 +09:00
Takeshi KOMIYA
9a9433e403
Fix #9283 : autodoc: failed to build doc for attribute not commented
...
Autoattribute directive should check the existence of instance attribute
that is defined inside __init__() but not having comments before
accessing it.
2021-05-30 19:48:11 +09:00
Takeshi KOMIYA
201f61f722
Fix #9280 : py domain: "exceptions" module is not displayed
...
Since v0.2, python domain gives a special treatment for the exceptions
module to suppress its name on documenting exception classes. It had
been worthy on python2 era. But the module has been removed since
python3. Therefore, the special treatment becomes harmful for user
libraries. This removes it to render module names correctly.
Note: Now we've only supported python3. So this is not incompatible.
2021-05-30 03:46:55 +09:00
Takeshi KOMIYA
31ec519d38
Close #9272 : autodoc: Render enum values for the default argument value better
2021-05-30 02:15:28 +09:00
Takeshi KOMIYA
830b3fbe2b
Merge pull request #9261 from tk0miya/9250_inherited_docstring
...
Fix #9250 : autodoc: The inherited method not having docstring is wrongly parsed
2021-05-24 01:24:23 +09:00
Walter Doerwald
798adc4f57
Add tests for html_signaturereturn_icon.
2021-05-22 20:15:11 +02:00
Takeshi KOMIYA
2ddc1d0681
Merge pull request #9258 from tk0miya/1874_piped_types_in_info-field-list
...
Close #1874 : py domain: Support union types using `|` in info-field-list
2021-05-23 00:42:56 +09:00
Takeshi KOMIYA
0fb8e33f32
Fix #9250 : autodoc: The inherited method not having docstring is wrongly parsed
...
`sphinx.util.inspect.getdoc()` clean the docstring up if the method is
inherited and not having docstring. That causes indentations are
removed on processing it.
2021-05-23 00:39:05 +09:00
Takeshi KOMIYA
5a8dec457a
refactor: reduce calls of find_pending_xref_conditions (refs: #9240 )
...
After #9246 , `find_pending_xref_conditions()` should be only called from
intended modules. At present, the Python Domain is the only module to
call it intendedly. Therefore, this removes the needless calls of the
utility function from "unintended" modules.
2021-05-22 15:34:30 +09:00
Takeshi KOMIYA
a1b0e55548
Close #1874 : py domain: Support union types using |
in info-field-list
2021-05-22 01:55:43 +09:00
Takeshi KOMIYA
4201a84b35
Add testcase for combination of allow_redirects and warn_redirects
2021-05-21 02:04:01 +09:00
Takeshi KOMIYA
ce9e2e6c74
Rename linkcheck_ignore_redirects to linkcheck_allowed_redirects
2021-05-20 23:26:16 +09:00
Takeshi KOMIYA
9a132b4f81
Merge branch '4.x' into 9224_type_containing_whitespace
2021-05-19 23:04:48 +09:00
Takeshi KOMIYA
567ff22716
Merge pull request #9231 from tk0miya/9217_manpage_section_directory
...
Fix #9217 : manpage: Dirname of man_make_section_directory is wrong
2021-05-19 23:00:03 +09:00
Takeshi KOMIYA
549f09e048
Merge pull request #9239 from igo95862/https-links
...
Upgrade URLs to use HTTPS
2021-05-19 22:59:19 +09:00
Takeshi KOMIYA
8049cd6925
Merge branch '4.0.x' into 4.x
2021-05-19 22:48:26 +09:00
Takeshi KOMIYA
2d3d668856
Fix #9240 : Unknown node error for pending_xref_condition is raised
...
Unknown node error for pending_xref_condition is raised if an extension
that does not support the node installs a missing-reference handler.
2021-05-18 01:55:36 +09:00
Takeshi KOMIYA
79d9701a00
Fix #9217 : manpage: Dirname of man_make_section_directory is wrong
...
* Correct: man/man1
* Wrong: man/1
2021-05-17 23:18:24 +09:00
Takeshi KOMIYA
d6c19126c5
Merge branch '4.0.x' into 4.x
2021-05-17 23:16:27 +09:00
Takeshi KOMIYA
b19dc365fe
Merge pull request #9233 from tk0miya/3014_autodoc-process-bases
...
Close #3014 : autodoc: Add autodoc-process-bases
2021-05-17 22:50:56 +09:00
Takeshi KOMIYA
bc7087a1a2
Merge branch '4.x' into 3014_autodoc-process-bases
2021-05-17 22:40:27 +09:00
Takeshi KOMIYA
e5f6c77263
refactor: Do config file existence check in Config.read()
2021-05-16 23:48:42 +09:00
igo95862
e67c9e5df1
doc: Upgrade docutils.sourceforge.io links to HTTPS
...
Also change any docutils.sourceforge.net link to io
top level domain.
2021-05-16 15:53:49 +03:00
Takeshi KOMIYA
630e5bd15f
manpage: Stop creating a section directory on build manpage by default
2021-05-16 17:06:58 +09:00
Takeshi KOMIYA
8d87dde43b
Merge pull request #9232 from tk0miya/9217_dont_make_section_directory
...
manpage: Stop creating a section directory on build manpage by default
2021-05-16 17:02:41 +09:00
Takeshi KOMIYA
d048025238
Merge branch '4.x' into 9218_doccomment_for_aliased_class
2021-05-16 13:57:24 +09:00
David Ham
180c3c92a4
Test for LaTeX container output.
2021-05-15 21:53:36 +01:00
Takeshi KOMIYA
707319aab2
Close #6525 : linkcheck: Add linkcheck_ignore_redirects
...
Add a new confval; linkcheck_ignore_redirects to ignore hyperlinks
that are redirected as expected.
2021-05-16 02:48:03 +09:00
Takeshi KOMIYA
05eb2ca06f
Close #6525 : linkcheck: Add linkcheck_warn_redirects
...
Add a new confval; `linkcheck_warn_redirects` to emit a warning when
the hyperlink is redirected. It's useful to detect unexpected redirects
under the warn-is-error mode.
2021-05-16 02:29:03 +09:00
Takeshi KOMIYA
51ae283a38
Close #4257 : autodoc: Add autodoc_class_signature
...
Add `autodoc_class_signature` to separate the class entry and the
definition of `__init__()` method.
2021-05-16 01:53:48 +09:00
Takeshi KOMIYA
67db20d705
Close #3014 : autodoc: Add autodoc-process-bases
...
Add `autodoc-process-bases` to modify the base classes of the class
definitions. This allows the extensions to insert or modify the list
of the base classes via event-handlers.
2021-05-16 00:46:06 +09:00
Takeshi KOMIYA
fa8117cd2f
manpage: Stop creating a section directory on build manpage by default
2021-05-15 22:23:40 +09:00