summaryrefslogtreecommitdiff
path: root/sphinx/util
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge pull request #10081 from danieleades/refactor/callable-testTakeshi KOMIYA2022-01-111-1/+1
| |\ \ | | | | | | | | use 'callable' to check if object is callable (B004)
| | * | use 'callable' to check if object is callable (B004)Daniel Eades2022-01-101-1/+1
| | | |
| * | | Fix typing in docfields.pyPhilipp A2022-01-111-1/+1
| |/ /
| * | merge 'isinstance' calls (SIM101)Daniel Eades2022-01-101-2/+1
| |/
* | Merge pull request #10067 from tk0miya/10062_change_default_language_to_enTakeshi KOMIYA2022-01-121-9/+12
|\ \ | | | | | | Close #10062: Change the default language to 'en'
| * | Close #10062: Change the default language to 'en'Takeshi KOMIYA2022-01-121-9/+12
| | | | | | | | | | | | | | | Change the default language to `'en'` if any language is not set in `conf.py`.
* | | Fix typing in docfields.pyPhilipp A2022-01-101-1/+1
|/ /
* | Merge branch '4.x'Takeshi KOMIYA2022-01-091-2/+2
|\ \ | |/
| * Merge branch '4.3.x' into 4.xTakeshi KOMIYA2022-01-091-3/+3
| |\
| | * Fix mypy violations (with types-requests-2.27.3)Takeshi KOMIYA2022-01-091-3/+3
| | |
* | | Merge branch '4.x'Takeshi KOMIYA2022-01-032-11/+22
|\ \ \ | |/ /
| * | Migrate to Node.findall() from Node.traverse()Takeshi KOMIYA2022-01-032-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch '4.x'Takeshi KOMIYA2022-01-022-39/+69
|\ \ \ | |/ /
| * | Merge pull request #10043 from tk0miya/9777_docutils.nodes.metaTakeshi KOMIYA2022-01-021-2/+9
| |\ \ | | | | | | | | i18n: meta strings are not translated with docutils-0.18
| | * | i18n: meta strings are not translated with docutils-0.18Takeshi KOMIYA2022-01-021-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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``.
| * | | Merge pull request #10034 from tk0miya/10027_autodoc_typehints_format_for_basesTakeshi KOMIYA2022-01-021-37/+60
| |\ \ \ | | |/ / | |/| | Fix #10027: autodoc_typehints_format does not work with :show-inheritance:
| | * | Add `mode` parameter to sphinx.util.typing:restify()Takeshi KOMIYA2022-01-011-37/+60
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch '4.x'Takeshi KOMIYA2022-01-0129-29/+29
|\ \ \ \ | |/ / /
| * | | Merge branch '4.3.x' into 4.xTakeshi KOMIYA2022-01-0129-29/+29
| |\ \ \ | | | |/ | | |/|
| | * | A happy new year!Takeshi KOMIYA2022-01-0129-29/+29
| | | |
* | | | Merge branch '4.x'Takeshi KOMIYA2022-01-014-40/+61
|\ \ \ \ | |/ / /
| * | | Fix some messages are still not translatedTakeshi KOMIYA2021-12-271-2/+2
| | |/ | |/|
| * | Merge branch '4.x' into 9194_Literal_type_not_hyperlinkedTakeshi KOMIYA2021-12-261-2/+3
| |\ \
| | * | Fix docs: docs for show_return_annotation param for stringify_signature() is ↵Takeshi KOMIYA2021-12-251-2/+3
| | | | | | | | | | | | | | | | not explained
| * | | refactor: Merge arguments of sphinx.util.typing:stringify()Takeshi KOMIYA2021-12-262-43/+50
| | | |
| * | | Fix #9194: autodoc: Prepend the "typing" module name on the signatureTakeshi KOMIYA2021-12-262-23/+33
| |/ / | | | | | | | | | | | | To create hyperlinks to container types automatically, this prepends the module names for the types under "typing" module.
| * | Merge branch '4.x' into drop-translator-specific-unknown_visit-callsTakeshi KOMIYA2021-12-246-71/+105
| |\ \ | | |/
| * | drop translator-specific unknown_visit callsJames Knight2021-12-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the need for various translators from raising a `NotImplementedError` exception when missing support for a specific node type. docutils will already raise [1][2] a `NotImplementedError` exception for these cases. This help reduce the implementation inside Sphinx as well as prevents the possible undesired replication of unknown-node handling with third-party extensions [3]. In most cases, generating a warning message for an unsupported node type can be preferred. Providing an indication that a node is not supported can be easier for a user of Sphinx to understand a limitation of a builder over a generic "not implemented" exception. This commit takes the logging call which is already used by `texinfo` and applies it to the `SphinxTranslator` base class -- which any Sphinx translator implementation can use. [1]: https://repo.or.cz/docutils.git/blob/d169015ee0f412cffd69b33654d8a119d99bc0f3:/docutils/nodes.py#l2048 [2]: https://repo.or.cz/docutils.git/blob/53716a13b48128af6045139d3cd2909f61e7ed8e:/docutils/nodes.py#l1897 [3]: https://github.com/sphinx-doc/sphinx/issues/9921 Signed-off-by: James Knight <james.d.knight@live.com>
* | | Merge branch '4.x'Takeshi KOMIYA2021-12-242-7/+14
|\ \ \ | | |/ | |/|
| * | Fix mypy violations (with mypy-0.930)Takeshi KOMIYA2021-12-241-6/+6
| | |
| * | Fix #9979: Error level messages were displayed as warning messagesTakeshi KOMIYA2021-12-171-1/+8
| | |
* | | Merge branch 'master' into RemovedInSphinx50WarningTakeshi KOMIYA2021-12-173-4/+4
|\ \ \ | |/ /
| * | Merge branch '4.3.x' into 4.xTakeshi KOMIYA2021-12-173-4/+4
| |\ \
| | * | Fix mypy violations (with mypy-0.920)Takeshi KOMIYA2021-12-173-4/+4
| | |/
* | | refactor: Remove RemovedInSphinx50Warning (partially)Takeshi KOMIYA2021-12-174-144/+4
|/ /
* | Merge pull request #9793 from samdoran/enable-parallel-on-macosTakeshi KOMIYA2021-12-111-11/+4
|\ \ | | | | | | Set multiprocessing start method to `fork`
| * | Set multiprocessing start method to forkSam Doran2021-10-281-11/+4
| | | | | | | | | | | | | | | Since the current code requires forking, set it explicitly rather than disabling parallelization on macOS.
* | | Merge pull request #9953 from tk0miya/9947_source_info_less_topic_nodeTakeshi KOMIYA2021-12-111-0/+5
|\ \ \ | | | | | | | | Fix #9947: i18n: topic directive having a bullet list can't be translatable
| * | | Fix #9947: i18n: topic directive having a bullet list can't be translatableTakeshi KOMIYA2021-12-101-0/+5
| | |/ | |/| | | | | | | | | | | | | It seems docutils does not fill the topic node with the source info when a topic directive has a bullet list. As a workaround, This fills the source info of them.
* | | Add `unqualified_typehints` parameter to stringify_signature()Takeshi KOMIYA2021-12-031-3/+6
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Add `smartref` parameter to sphinx.util.typing:stringify()Takeshi KOMIYA2021-12-031-46/+72
|/ / | | | | | | | | | | 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.
* | Fix #9879: autodoc: AttributeError for object having invalid __doc__Takeshi KOMIYA2021-11-221-2/+9
| |
* | Fix #9838: autodoc: AttributeError is raised for lru_cacheTakeshi KOMIYA2021-11-211-2/+11
| |
* | Merge pull request #9828 from tk0miya/9618_gettext_allow_fuzzy_translationsTakeshi KOMIYA2021-11-101-2/+2
|\ \ | | | | | | Close #9618: i18n: Add gettext_allow_fuzzy_translations
| * | Close #9618: i18n: Add gettext_allow_fuzzy_translationsTakeshi KOMIYA2021-11-101-2/+2
| | |
* | | Replace distutils.versions.LooseVersion by packaging.version.VersionTakeshi KOMIYA2021-11-071-2/+2
|/ / | | | | | | | | | | | | 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
* | ntersphinx_disabled_refs, type renameJakob Lykke Andersen2021-10-311-2/+2
| |
* | Intersphinx, refactoringJakob Lykke Andersen2021-10-311-1/+2
| | | | | | | | Also, when a reference is unresolved, don't strip the inventory prefix.
* | Fix a flake8 warningTakeshi KOMIYA2021-10-311-3/+4
| |
* | Merge pull request #9656 from sdhiscocks/suppress_warning_subtype_noneTakeshi KOMIYA2021-10-311-1/+2
|\ \ | | | | | | Fix issue with warnings without subtype being incorrectly suppressed