Commit Graph

18830 Commits

Author SHA1 Message Date
Takeshi KOMIYA
9a42e42a40
Merge pull request #10069 from tk0miya/10055_ensuredir_for_warnfile
Close #10055: sphinx-build: Create directories when `-w` option given
2022-01-12 02:35:15 +09:00
Takeshi KOMIYA
99c144d8cd
Merge pull request #10079 from tk0miya/10061_confval_added_by_themes_not_initialized
Fix #10061: html theme: Confvals added by themes are not initialized
2022-01-12 02:34:52 +09:00
Takeshi KOMIYA
2b784e23d8
Merge pull request #10080 from danieleades/refactor/simplify-set-comparison
simplify some set comparisons (SIM109)
2022-01-12 02:34:21 +09:00
Takeshi KOMIYA
726f2eaa97
Merge pull request #10085 from tk0miya/10058_autodoc_class_signature_misleads_autosummary
Fix #10058: autosummary: Imported members are not shown
2022-01-12 02:32:10 +09:00
marxin
5295c5d4e8 Latex: fix vertical spacing for cpp:function.
As described in the issue, there is a pair of
`\pysigstartmultiline/\pysigstopmultiline` for each `desc_signature`
element and thus there is extra spacing when multiple functions
are documented.

Fixes: #9924.
2022-01-11 15:25:13 +01:00
Daniel Eades
e51591d061 simplify some set comparisons (SIM109) 2022-01-10 19:56:30 +00:00
Takeshi KOMIYA
e79681c768
Merge pull request #10081 from danieleades/refactor/callable-test
use 'callable' to check if object is callable (B004)
2022-01-11 02:32:17 +09:00
Takeshi KOMIYA
b5f4d2d883
Merge pull request #10083 from danieleades/refactor/named-tuples
use class-style syntax for 'NamedTuple's
2022-01-11 02:29:03 +09:00
Philipp A
547f0a2d02 Fix typing in docfields.py 2022-01-11 02:28:27 +09:00
Takeshi KOMIYA
7f0166780f Fix #10058: autosummary: Imported members are not shown
Originally, the `check_module()` call was added at 21b8384 to hide
imported members on generating stubs.  But it was incorrect approach.
Therefore it was disabled by b433197 and fixed the original issue by
another approach at 2390c554.

Finally, the `check_module()` call becomes meaningless code.  But, at
present, it causes that imported members are not shown when
`autodoc_class_signature` is 'separated'.  To resolve the problem, this
removes the meaningless call.
2022-01-11 02:18:29 +09:00
Daniel Eades
574e787bf1 use class-style syntax for 'NamedTuple's 2022-01-10 15:35:27 +00:00
Daniel Eades
61ff90460d use 'callable' to check if object is callable (B004) 2022-01-10 13:51:35 +00:00
Takeshi KOMIYA
2a3ea2e490 Fix #10061: html theme: Confvals added by themes are not initialized 2022-01-10 19:04:44 +09:00
Takeshi KOMIYA
72d352f64e
Merge pull request #10075 from danieleades/refactor/merge-isinstance-calls
merge 'isinstance' calls (SIM101)
2022-01-10 16:37:55 +09:00
Daniel Eades
3a3c03a045 merge 'isinstance' calls (SIM101) 2022-01-10 07:08:56 +00:00
Takeshi KOMIYA
5bf0e3ad18
Merge pull request #10071 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-01-09 12:55:28 +09:00
tk0miya
eb13171afe Update message catalogs 2022-01-09 00:12:45 +00:00
Takeshi KOMIYA
ce41a5e3f0 Close #10055: sphinx-build: Create directories when -w option given 2022-01-09 04:04:31 +09:00
Takeshi KOMIYA
ce99cd4832 Fix #10057: Failed to scan documents on the root directory
get_matching_files() incorrectly drops the first character of each
path on scanning documents.  It will help users to exclude paths
via exclude_patterns setting.

Note: Users need to configure `exclude_patterns` to put their document
on the root directory.  This does not help to avoid recursive symlinks
(ex. /proc, /sys)
2022-01-09 03:57:55 +09:00
Takeshi KOMIYA
87eda92a52
Merge pull request #10066 from tk0miya/mypy-0.931-4.x
Fix mypy violations (with mypy-0.931)
2022-01-09 01:19:36 +09:00
Takeshi KOMIYA
9db86f6aab Fix mypy violations (with mypy-0.931) 2022-01-09 01:11:22 +09:00
Takeshi KOMIYA
441c2e306a Merge branch '4.3.x' into 4.x 2022-01-09 01:08:08 +09:00
Takeshi KOMIYA
c81dd9b82f
Merge pull request #10065 from tk0miya/mypy-0.931
Fix mypy violations (with mypy-0.931)
2022-01-09 01:07:56 +09:00
Takeshi KOMIYA
a80023f381 Fix mypy violations (with types-requests-2.27.3) 2022-01-09 00:59:32 +09:00
Takeshi KOMIYA
a98b605100 Fix mypy violations (with mypy-0.931) 2022-01-09 00:54:35 +09:00
Takeshi KOMIYA
356b397928
Merge pull request #10064 from tk0miya/du-latest
CI: refactor tox.ini; Install HEAD of docutils directly
2022-01-09 00:44:05 +09:00
Takeshi KOMIYA
ab5b8dc9ee CI: refactor tox.ini; Install HEAD of docutils directly 2022-01-08 22:57:31 +09:00
Takeshi KOMIYA
6402acde81
Merge pull request #10051 from tk0miya/9777_quotes_in_manpage
test: manpage: double quotes are escaped since docutils-0.18
2022-01-03 12:16:28 +09:00
Takeshi KOMIYA
3d5ddb68ee
Merge pull request #10050 from tk0miya/9777_Node.findall
test: Migrate to Node.findall() from Node.traverse()
2022-01-03 12:16:05 +09:00
Takeshi KOMIYA
d1a070efd8 test: manpage: double quotes are escaped since docutils-0.18
Double quotes are escaped to `\(dq` on manpage output since
docutils-0.18.
2022-01-03 02:01:46 +09:00
Takeshi KOMIYA
a0e44a7300 test: Migrate to Node.findall() from Node.traverse() 2022-01-03 01:06:20 +09:00
Takeshi KOMIYA
08a87d945a
Merge pull request #10044 from tk0miya/9777_Node.findall
Migrate to Node.findall() from Node.traverse()
2022-01-03 00:57:31 +09:00
Takeshi KOMIYA
05a898ecb4 Migrate to Node.findall() from Node.traverse()
Node.traverse() was marked as deprecated since docutils-0.18.  Instead
of it, Node.findall() has been added as successor of traverse().

This applies a patch to docutils-0.17 or older to be available
Node.findall() and use it.
2022-01-03 00:35:29 +09:00
Takeshi KOMIYA
a091917219
Merge pull request #10047 from tk0miya/refactor_PYTHONWARNINGS_filters
CI: Remove unused no longer needed PYTHONWARNINGS
2022-01-02 18:20:38 +09:00
Takeshi KOMIYA
c16b36c499 CI: Remove unused no longer needed PYTHONWARNINGS 2022-01-02 15:03:20 +09:00
Takeshi KOMIYA
daf57f2488
Merge pull request #10043 from tk0miya/9777_docutils.nodes.meta
i18n: meta strings are not translated with docutils-0.18
2022-01-02 12:24:59 +09:00
Takeshi KOMIYA
6a6a4b5800 i18n: meta strings are not translated with docutils-0.18
i18n feature for meta strings does not work if docutils-0.18 used.

Note: Since docutils-0.18, patch for meta directive is no longer
needed because it uses a picklable meta nodes; ``docutils.nodes.meta``.
2022-01-02 12:11:08 +09:00
Takeshi KOMIYA
e434dd6998
Merge pull request #10042 from tk0miya/9820_distutils
refactor: Reduce usages of distutils (refs: #9820)
2022-01-02 12:08:49 +09:00
Takeshi KOMIYA
f4f7341db2
Merge pull request #10045 from sphinx-doc/bot/pull-translations
Update message catalogs
2022-01-02 11:40:50 +09:00
Takeshi KOMIYA
e1c090d9f7
Merge pull request #10034 from tk0miya/10027_autodoc_typehints_format_for_bases
Fix #10027: autodoc_typehints_format does not work with :show-inheritance:
2022-01-02 11:39:22 +09:00
tk0miya
42d7351fda Update message catalogs 2022-01-02 00:12:37 +00:00
Takeshi KOMIYA
91f9572817
Merge pull request #10039 from tk0miya/new_year_updates2
A happy new year! (again)
2022-01-01 22:01:12 +09:00
Takeshi KOMIYA
0ba202009d refactor: Reduce usages of distutils (refs: #9820)
distutils module is now deprecated and will be removed since Python
3.12.  So this reduces the usages of the module.
2022-01-01 21:38:56 +09:00
Takeshi KOMIYA
e023d1082d A happy new year! (again) 2022-01-01 20:03:17 +09:00
Takeshi KOMIYA
f38bd8e952 Merge branch '4.3.x' into 4.x 2022-01-01 20:02:10 +09:00
Takeshi KOMIYA
8b7c81bc94
Merge pull request #10035 from tk0miya/new_year_updates
A happy new year!
2022-01-01 20:01:56 +09:00
Takeshi KOMIYA
b22134dcd3
Merge pull request #10031 from tk0miya/9555_ImportExceptionGroup_for_autosummary
Close #9555: autosummary: Improve error messages on failure to load target object
2022-01-01 19:00:10 +09:00
Takeshi KOMIYA
b84771dcd2 A happy new year! 2022-01-01 18:45:03 +09:00
Takeshi KOMIYA
3fc98a2b3d Fix #10027: autodoc_typehints_format does not work with :show-inheritance: 2022-01-01 18:06:57 +09:00
Takeshi KOMIYA
6df45e0ead Add mode parameter to sphinx.util.typing:restify()
To make the typehints in "Bases" field simple, this adds a new parameter
`mode` to sphinx.util.typing:restify() to suppress the leading module
name from typehints in "Bases" field.
2022-01-01 14:24:43 +09:00