Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-01A happy new year!Takeshi KOMIYA
2021-12-23Fix mypy violations (with mypy-0.930)Takeshi KOMIYA
2021-12-16Fix #9979: Error level messages were displayed as warning messagesTakeshi KOMIYA
2021-12-16Merge branch '4.3.x' into 4.xTakeshi KOMIYA
2021-12-16Fix mypy violations (with mypy-0.920)Takeshi KOMIYA
2021-12-11Merge pull request #9793 from samdoran/enable-parallel-on-macosTakeshi KOMIYA
Set multiprocessing start method to `fork`
2021-12-11Merge pull request #9953 from tk0miya/9947_source_info_less_topic_nodeTakeshi KOMIYA
Fix #9947: i18n: topic directive having a bullet list can't be translatable
2021-12-09Fix #9947: i18n: topic directive having a bullet list can't be translatableTakeshi KOMIYA
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.
2021-12-03Add `unqualified_typehints` parameter to stringify_signature()Takeshi KOMIYA
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-03Add `smartref` parameter to sphinx.util.typing:stringify()Takeshi KOMIYA
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-11-21Fix #9879: autodoc: AttributeError for object having invalid __doc__Takeshi KOMIYA
2021-11-21Fix #9838: autodoc: AttributeError is raised for lru_cacheTakeshi KOMIYA
2021-11-09Merge pull request #9828 from tk0miya/9618_gettext_allow_fuzzy_translationsTakeshi KOMIYA
Close #9618: i18n: Add gettext_allow_fuzzy_translations
2021-11-09Close #9618: i18n: Add gettext_allow_fuzzy_translationsTakeshi KOMIYA
2021-11-07Replace distutils.versions.LooseVersion by packaging.version.VersionTakeshi KOMIYA
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-10-31ntersphinx_disabled_refs, type renameJakob Lykke Andersen
2021-10-31Intersphinx, refactoringJakob Lykke Andersen
Also, when a reference is unresolved, don't strip the inventory prefix.
2021-10-31Fix a flake8 warningTakeshi KOMIYA
2021-10-31Merge pull request #9656 from sdhiscocks/suppress_warning_subtype_noneTakeshi KOMIYA
Fix issue with warnings without subtype being incorrectly suppressed
2021-10-30Merge pull request #9772 from gibsondan/loggingflushTakeshi KOMIYA
Closes #9733: Fix for logging handler flushing warnings in the middle of the docs build
2021-10-29Fix #9757: autodoc_inherit_docstrings does not effect to overriden classmethodsTakeshi KOMIYA
2021-10-28Set multiprocessing start method to forkSam Doran
Since the current code requires forking, set it explicitly rather than disabling parallelization on macOS.
2021-10-26Merge branch '4.x' into 9756_classmethod_not_having_funcTakeshi KOMIYA
2021-10-26Support docutils-0.18: Consume iterator of Element.traverse()Takeshi KOMIYA
Since 0.18, Element.traverse() returns an iterator instead of intermediate object. As a result, the return value is always considered as truthy value. And it becomes fragile when the caller modifies the doctree on the loop.
2021-10-25Closes #9733: Fix for logging handler flushing warnings in the middle of the ↵gibsondan
build Summary: My project was mysteriously dropping warnings (see https://github.com/sphinx-doc/sphinx/issues/9733 for detailed repro) and I realized that it's becaues it imports libraries like airflow or mlflow that set up loggers automatically when they are imported. This causes this handler to flush even though shouldFlush is set to always return False. A simple workaround is to override flush to be a no-op. Test Plan: Repeat repro steps from #9733 - project now always includes warnings
2021-10-22Make util.typing.restify sanitise unreproducible output (eg. memory addresses)Chris Lamb
Whilst working on the Reproducible Builds effort [0] I noticed that sphinx generates output that is not reproducible, causing a number of packages in Debian to unreproducible. Specifically, when Sphinx locates an alias of an instance when generating 'autodoc' documentation, it uses the raw Python repr(...) of the object and does not sanitise it for memory addresses (etc.) like elsewhere in Sphinx. This can result in documentation like this: -<dd><p>alias of &lt;webob.client.SendRequest object at 0x7fd769189df0&gt;</p> +<dd><p>alias of &lt;webob.client.SendRequest object at 0x7f0f02233df0&gt;</p> Patch attached that uses the object_description method, which was added to fix precisely this kind of issue. I originally filed this in Debian as bug #996948 [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/996948
2021-10-22Fix #9756: autodoc: Crashed if classmethod does not have __func__ attributeTakeshi KOMIYA
2021-09-26Merge branch '4.x' into 9607_incorrect_orig_basesTakeshi KOMIYA
2021-09-23Close #9664: autodoc: autodoc-process-bases supports reST snippetTakeshi KOMIYA
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-20Fix issue with warnings without subtype being incorrectly suppressedSteven Hiscocks
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-20Fix #9607: autodoc: Incorrect base class detectionTakeshi KOMIYA
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-17Merge pull request #9640 from tk0miya/9639_support_asyncgenfunctionTakeshi KOMIYA
Close #9639: autodoc: Support asynchronous generator functions
2021-09-16Close #9639: autodoc: Support asynchronous generator functionsTakeshi KOMIYA
2021-09-14Fix #9630: autodoc: Failed to build xrefs if primary_domain is not 'py'Takeshi KOMIYA
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-11Merge pull request #9611 from tk0miya/9560_NewType_moduleTakeshi KOMIYA
Close #9560: autodoc: Allow to refer NewType with modname in py310+
2021-09-08Fix typos discovered by codespellChristian Clauss
2021-09-05Close #9560: autodoc: Allow to refer NewType with modname in py310+Takeshi KOMIYA
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-08-29Merge branch '4.x' into 9564-fix_highlighted_code_role_smartquotesTakeshi KOMIYA
2021-08-29Merge pull request #9590 from tk0miya/9589_AnnotatedTakeshi KOMIYA
Fix #9589: autodoc: typing.Annotated has wrongly been rendered
2021-08-29Fix #9589: autodoc: typing.Annotated has wrongly been renderedTakeshi KOMIYA
At the HEAD of 3.10, the implementation of `typing.Annotated` has been changed to have __qualname__.
2021-08-21Check complete ancestry of text nodes for smartquotes eligibility.Justin Turner Arthur
Fixes sphinx-doc/sphinx#9564.
2021-08-10Merge pull request #9530 from tacaswell/fix_numpy_class_attributeTakeshi KOMIYA
FIX: do not try to compute the boolean value of a numpy array
2021-08-10Merge branch '4.1.x' into 4.xTakeshi KOMIYA
2021-08-10Fix #9537: autodoc: Some typing.* objects are brokenTakeshi KOMIYA
At the HEAD of 3.10, the implementation of `typing._GenericAlias` has been changed to have correct _name and __name__.
2021-08-06FIX: do not try to compute the boolean value of a numpy arrayThomas A Caswell
If there is a numpy array as a class attribute, then `bool(meth)` will raise.
2021-08-02Merge branch '4.x' into 4.xJames
2021-08-01Appease linterJames
2021-08-01Match formatting of other recursive typesJames
2021-08-01Recursively resolve PEP 585 builtinsJames
2021-07-30Fix #9504: autodoc: generate incorrect reference to the parent classTakeshi KOMIYA
Autodoc generates incorrect references to the parent class the target class inherites the class having `_name` attribute. It conciders the parent is a kind of SpecialForm'ed class by mistake. This uses `isinstance(X, SpecialForm)` to check that. Note: SpecialForm became a class since Python 3.7.