Commit Graph

17207 Commits

Author SHA1 Message Date
Takeshi KOMIYA
102393fbc2
Merge pull request #8905 from graingert/patch-1
migrate html_add_permalinks=None and html_add_permalinks=""
2021-02-28 23:37:58 +09:00
Thomas Grainger
878c116112
Update sphinx/builders/html/__init__.py 2021-02-28 14:29:07 +00:00
Thomas Grainger
ae5986f9cd
Update sphinx/builders/html/__init__.py 2021-02-28 12:00:18 +00:00
Thomas Grainger
4f01fe08fa
Merge branch 'master' into patch-1 2021-02-28 11:59:47 +00:00
Takeshi KOMIYA
fc8247a3cd
Merge pull request #8484 from tk0miya/8326_root_doc
Close #8326: Rename master_doc to root_doc
2021-02-28 17:49:32 +09:00
Takeshi KOMIYA
3059a999b2 Close #8326: Rename master_doc to root_doc
To describe the purpose more accurately, the `master_doc` is now renamed
to `root_doc`.  The old name is still available.  But it is recommeneded
to use new one from now on.
2021-02-28 17:10:57 +09:00
Takeshi KOMIYA
836cd05236
Merge pull request #8426 from tk0miya/8415_unresolved_imported_TypeVar
autodoc: an imported TypeVar is not resolved (refs: #8415)
2021-02-28 16:45:55 +09:00
Takeshi KOMIYA
7d3cc382fa autodoc: an imported TypeVar is not resolved (refs: #8415)
So far, a TypeVar is rendered without module name. As a result, it
could not be resolved if it is imported from other modules.  This
prepends its module name and make it resolvable.  This is available
only in Python 3.7 or above.

As a side effect, all of TypeVars are displayed with module name. It
should be fixed in latter step (refs: #7119)
2021-02-28 15:58:06 +09:00
Takeshi KOMIYA
6ca7c1c579
Merge pull request #8939 from tk0miya/8938_imgconverter_show_OSError
Fix #8938: imgconverter: Show the error of the command availability check
2021-02-28 12:57:32 +09:00
Takeshi KOMIYA
2c987897eb
Merge pull request #8935 from tk0miya/8933_viewcode_backlink_on_parallel_build
Fix #8933: viewcode: Failed to create back-links on parallel build
2021-02-28 12:56:58 +09:00
Takeshi KOMIYA
347ae4ff47 Fix #8938: imgconverter: Show the error of the command availability check
imgconverter extension suppresses an OSError like "Cannot allocate
memory" unexpectedly.  So the error should be shown with the warning.
2021-02-27 13:01:34 +09:00
Joaquin Anton
3f62d2f294 Use explicit title for titlenode, when no title is provided
Signed-off-by: Joaquin Anton <janton@nvidia.com>
2021-02-26 14:26:09 +01:00
Takeshi KOMIYA
4f7f3304b1
Merge pull request #8875 from tk0miya/refactor_latex_writer3
refactor: LaTeX: Use raw strings for LaTeX macros
2021-02-26 02:25:14 +09:00
Takeshi KOMIYA
20884bb0c9 refactor: LaTeX: Use raw strings for LaTeX macros 2021-02-26 02:12:48 +09:00
Takeshi KOMIYA
529386faa1
Merge pull request #8923 from tk0miya/8917_warning_for_wrong___globals__
Fix #8917: autodoc: Raises a warning if function has wrong __globals__ value
2021-02-26 02:09:09 +09:00
Takeshi KOMIYA
255b4aee05 Fix #8933: viewcode: Failed to create back-links on parallel build
On parallel build mode, viewcode losts the back-links information on
gathering results from each process.  As a result, some back-links are
missing in the generated viewcode pages.

This fixes the merging back-links process for parallel builds.
2021-02-26 02:02:09 +09:00
Takeshi KOMIYA
6d91db3b9e
Merge pull request #8927 from tk0miya/8924_TypeVar_bound
Close #8924: autodoc: Support `bound` argument for TypeVar
2021-02-26 02:00:40 +09:00
Takeshi KOMIYA
4f072ee5c2 Fix #8917: autodoc: Raises a warning if function has wrong __globals__ value
`sphinx.util.inspect:signature()` crashes with AttributeError when
subject has wrong `__globals__` value.  This ignores the error on
building.
2021-02-26 01:59:24 +09:00
Takeshi KOMIYA
4392557943
Merge pull request #8920 from tk0miya/8915_i18n_for_sphinx_rtd_theme
Fix #8915: html theme: The translation of sphinx_rtd_theme does not work
2021-02-26 01:57:40 +09:00
Jean-François B
13341c77f8
Merge pull request #8926 from jfbu/latex_maxunderfull
LaTeX: let underfull calculation in wrapped code lines ignore last line
2021-02-24 19:13:20 +01:00
jfbu
c9a1a9bb4f Gather LaTeX items in CHANGES for 4.0.0 2021-02-24 19:01:34 +01:00
jfbu
40b145c7dc Update CHANGES 2021-02-24 18:52:04 +01:00
jfbu
294870ba59 LaTeX: let underfull calculation in wrapped code lines ignore last line
Closes: #8925
2021-02-24 18:51:59 +01:00
Jakob Lykke Andersen
e0a123361d
Merge pull request #8928 from jakobandersen/c_fixes
C fixes
2021-02-24 16:22:36 +01:00
Jakob Lykke Andersen
0256daf112 C, test namespace revamp 2021-02-24 15:59:54 +01:00
Jakob Lykke Andersen
71a656498b C, simplify tests 2021-02-24 15:59:54 +01:00
Jakob Lykke Andersen
088cef98bc C, remove more dead code 2021-02-24 15:59:54 +01:00
Jakob Lykke Andersen
40f4db30e8 C, remove dead code 2021-02-24 15:59:54 +01:00
Jakob Lykke Andersen
17337a3257 C, properly error on keywords as function parameters 2021-02-24 15:59:54 +01:00
Takeshi KOMIYA
a39cf57717 Close #8924: autodoc: Support bound argument for TypeVar 2021-02-24 22:51:06 +09:00
Takeshi KOMIYA
ad3edd924c Fix #8915: html theme: The translation of sphinx_rtd_theme does not work
Since sphinx_rtd_theme-0.5.0, it supports translations.  But Sphinx core
disallows to enable it because theming framework gives special treatment
for the theme for a long time.

This goes to load it via setuptools at first to enable the translations.

Note: The special treatment for sphinx_rtd_theme (< 0.2.5) is not
removed yet.  But it will be removed in the future release.
2021-02-23 21:14:43 +09:00
Takeshi KOMIYA
3f4a58b5b4
Merge pull request #8906 from tk0miya/refactor_type_annotations
refactor: Remove meaningless type annotations
2021-02-21 13:13:31 +09:00
Jakob Lykke Andersen
26f414ffc2
Merge pull request #8912 from jakobandersen/cpp_index_prefix
C++, cpp_index_common_prefix remove longest prefix instead of first
2021-02-19 21:33:51 +01:00
Jakob Lykke Andersen
95a872e745 C++, cpp_index_common_prefix remove longest
Fixes sphinx-doc/sphinx#8911
2021-02-19 14:24:33 +01:00
jfbu
ddef4950ee LaTeX: let bookmarks use high default depth
Add bookmarksdepth key to latex_elements['sphinxsetup']
2021-02-18 13:11:28 +01:00
Thomas Grainger
7dacbd96c4
migrate html_add_permalinks=None and html_add_permalinks=""
The docs list: Set it to None or the empty string to disable permalinks.
2021-02-17 15:41:41 +00:00
Takeshi KOMIYA
7caa1c7ec4 refactor: Remove meaningless type annotations 2021-02-17 23:59:55 +09:00
Takeshi KOMIYA
faa71ee26d Merge branch '3.x' 2021-02-17 22:21:07 +09:00
Takeshi KOMIYA
f8878bb0b6
Merge pull request #8900 from tk0miya/8881_build_pdf
doc: Build PDF document on readthedocs
2021-02-17 22:18:20 +09:00
Takeshi KOMIYA
5dd4314374 doc: Build PDF document on readthedocs 2021-02-17 00:32:47 +09:00
Takeshi KOMIYA
bbdbbf3d37
Merge pull request #8899 from mcmtroffaes/patch-2
fix potential getitem error in resolve_anyref
2021-02-17 00:18:27 +09:00
Takeshi KOMIYA
f9ca909ea0 Merge branch '3.x' 2021-02-17 00:16:32 +09:00
Takeshi KOMIYA
97de316a02 Bump version 2021-02-16 23:36:48 +09:00
Takeshi KOMIYA
baed519b90 Bump to 3.5.1 final 2021-02-16 23:35:32 +09:00
Takeshi KOMIYA
e2bef2d1d2
Merge pull request #8896 from tk0miya/8883_AttributeError_assigning_annotations
Fix #8883: autodoc: AttributeError on assigning __annotations__
2021-02-16 20:38:12 +09:00
Takeshi KOMIYA
66539af2f4
Merge pull request #8893 from tk0miya/8885_AttributeError_html_context
Fix #8885: html: AttributeError for CSS/JS files on html_context
2021-02-16 20:37:01 +09:00
Matthias C. M. Troffaes
57ae92ce78
fix potential getitem error in resolve_anyref 2021-02-16 09:24:10 +00:00
Takeshi KOMIYA
82501a6f6f Fix #8885: html: AttributeError for CSS/JS files on html_context
Since 3.5.0, priority has been added to control CSS/JS files.  But it's
not working if projects installs custom CSS/JS files via `html_context`
instead of `html_css_files` and `html_js_files`.  This avoids the crash
to keep it "not broken".
2021-02-16 01:55:08 +09:00
Takeshi KOMIYA
b29ee3ded0 Fix #8883: autodoc: AttributeError on assigning __annotations__ 2021-02-16 01:35:29 +09:00
Takeshi KOMIYA
8205283823 refactor: html: Fix typo 2021-02-16 01:30:45 +09:00