Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-22 | Deprecate DocumenterBridge.warn() | Takeshi KOMIYA | |
Since 1.6, sphinx.util.logging module became the default logging interface of Sphinx. It allows sphinx-components to output log without the app (or env) object. According to the policy, DocumenterBridge.warn() is no longer needed and should be replaced by the logging module. | |||
2021-03-20 | Rename DocumenterBridge.filename_set to record_dependencies | Takeshi KOMIYA | |
DocumenterBridge.filename_set has been used since its beginning. On the other hand, in docutils, record_dependencies attribute is well-used to store the list of dependency files. So this renames it to docutils' standard attribute. | |||
2021-03-15 | refactor: Use PEP-526 based variable annotation (sphinx.ext) | Takeshi KOMIYA | |
2021-03-15 | Merge pull request #8983 from tk0miya/7523_autodoc_property | Takeshi KOMIYA | |
Fix #7383: autodoc: Support typehints for properties | |||
2021-03-13 | Fix #7383: autodoc: Support typehints for properties | Takeshi KOMIYA | |
py:property directive now outputs py:property directive to describe its type annotation. | |||
2021-03-13 | refactor: Add a type alias for the option_spec of directives; OptionSpec | Takeshi KOMIYA | |
2021-03-09 | Close #7549: autosummary: Enable autosummary_generate by default | Takeshi KOMIYA | |
2021-03-06 | Fix #759: autodoc: Add sphinx.ext.autodoc.preserve_defaults extension | Takeshi KOMIYA | |
Add a new extension `sphinx.ext.autodoc.preserve_defaults`. It preserves the default argument values of function signatures in source code and keep them not evaluated for readability. This is an experimental extension and it will be integrated into autodoc core in Sphinx-4.0. | |||
2021-03-06 | intersphinx: Support pending_xref_condition | Takeshi KOMIYA | |
2021-02-28 | Merge pull request #8939 from tk0miya/8938_imgconverter_show_OSError | Takeshi KOMIYA | |
Fix #8938: imgconverter: Show the error of the command availability check | |||
2021-02-28 | Merge pull request #8935 from tk0miya/8933_viewcode_backlink_on_parallel_build | Takeshi KOMIYA | |
Fix #8933: viewcode: Failed to create back-links on parallel build | |||
2021-02-27 | Fix #8938: imgconverter: Show the error of the command availability check | Takeshi KOMIYA | |
imgconverter extension suppresses an OSError like "Cannot allocate memory" unexpectedly. So the error should be shown with the warning. | |||
2021-02-25 | Fix #8933: viewcode: Failed to create back-links on parallel build | Takeshi KOMIYA | |
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-24 | Close #8924: autodoc: Support `bound` argument for TypeVar | Takeshi KOMIYA | |
2021-02-16 | Merge branch '3.x' | Takeshi KOMIYA | |
2021-02-15 | Fix #8883: autodoc: AttributeError on assigning __annotations__ | Takeshi KOMIYA | |
2021-02-15 | Sometimes _viewcode_modules can be False; don't crash when it is | Dustin Spicuzza | |
- Fixes #8880 | |||
2021-02-04 | Merge branch '3.x' into merge_3.x_into_master | jfbu | |
Resolved Conflicts: sphinx/texinputs/sphinxpackagefootnote.sty | |||
2021-02-04 | Merge pull request #8297 from pbudzyns/exclude-members-fix | Takeshi KOMIYA | |
Local autodoc options override or extend autodoc_default_options. | |||
2021-02-02 | Merge branch '3.x' into master_with_merged_3.x | jfbu | |
2021-02-01 | Fix #8782: todo: Cross references in todolist get broken | Takeshi KOMIYA | |
On resolving cross reference nodes in todolist, some of them get broken because todo extension does not rewrite the "refdoc" attribute of them. | |||
2021-02-01 | Fix #8800: autodoc: Uninitialized attributes in superclass are recognized as ↵ | Takeshi KOMIYA | |
undocumented Unintentionally, uninitialized attributes defined at superclasses are recognized as undocumented in the filtering step. Therefore, they are filtered if `:undoc-members:` option given. | |||
2021-02-01 | Merge remote-tracking branch 'upstream/3.x' into exclude-members-fix | pbudzyns | |
2021-02-01 | check if autodoc_defaults are str, fix tests | pbudzyns | |
2021-01-31 | refactor: AttributeError handling for getslots() is not needed | Takeshi KOMIYA | |
2021-01-31 | refactor: AttributeError handling for getall() is not needed | Takeshi KOMIYA | |
2021-01-31 | refactor: AttributeError handling for getannotations() is not needed | Takeshi KOMIYA | |
2021-01-31 | refactor: AttributeError handling for getmro() is not needed | Takeshi KOMIYA | |
Internally, sphinx.util.inspect.getmro() uses `safe_getattr()` with the `default` keyword. Therefore it never raises AttributeError even if the subject raises an error on accessing `__mro__` attribute. This fixes the wrong its usage. | |||
2021-01-30 | Merge branch '3.x' | Takeshi KOMIYA | |
2021-01-29 | code format | pbudzyns | |
2021-01-29 | add private-members as extendable | pbudzyns | |
2021-01-29 | local options handling | pbudzyns | |
2021-01-27 | Merge branch '3.x' | Takeshi KOMIYA | |
2021-01-27 | graphviz: Image node is not rendered if graph file is in subdir (refs: #8232) | Takeshi KOMIYA | |
To support images for graphviz, graphviz commands (ex. dots) should be invoked at the directory placed the graph file. | |||
2021-01-25 | redundant '+' has no effect | pbudzyns | |
2021-01-25 | Merge pull request #8757 from tk0miya/8756_viewcode_purge_doc | Takeshi KOMIYA | |
Fix #8756: viewcode: highlighted code is generated even if not referenced | |||
2021-01-25 | add more extendable options and tests | pbudzyns | |
2021-01-25 | add more extendable options and tests | pbudzyns | |
2021-01-24 | Fix #8756: viewcode: highlighted code is generated even if not referenced | Takeshi KOMIYA | |
viewcode does not purge unreferenced modules on incremental build. This adds env-purge-doc handler to clean them. | |||
2021-01-24 | Merge branch '3.x' | Takeshi KOMIYA | |
2021-01-24 | Fix #8134: autodoc: crashes when mocked decorator takes arguments | Takeshi KOMIYA | |
autodoc crashed when a decorator in mocked module takes arguments because mock system returns the first argument for the decorator as a decorated object. This changes the approach for mocking decorators that remembers arguments for each decoration, and fetch the latest argument on generating document. | |||
2021-01-24 | Merge pull request #8731 from tk0miya/8004_preprocess_types_for_google | Takeshi KOMIYA | |
Fix #8004: napoleon_preprocess_types for Google style docstrings | |||
2021-01-23 | Fix #8004: napoleon_preprocess_types for Google style docstrings | Takeshi KOMIYA | |
Type definitions in Google style docstrings are rendered as references when :confval:`napoleon_preprocess_types` enabled. | |||
2021-01-22 | Fix #8727: apidoc: namespace module file is not generated if no submodules | Takeshi KOMIYA | |
sphinx-apidoc should generate a namespace module file when `--implicit-namespace` option given. This fixes the case the namespace module has subpackages, but no submodules. | |||
2021-01-22 | Merge branch '3.x' | Takeshi KOMIYA | |
2021-01-22 | Fix #8704: viewcode: anchors are generated in incremental build | Takeshi KOMIYA | |
The anchors for viewcode was generated in the reading phase only if supported builder is used. It causes anchors are missing on the incremental build after the build for non supported builder. This introduces `viewcode_anchor` node to insert the anchor even if non supported builders. They will be converted to the anchor tag in the resolving phase for supported builders. Or, they will be removed for non supported builders. | |||
2021-01-21 | Fix #8720: viewcode: module pages are generated for epub on incremental build | Takeshi KOMIYA | |
The module pages should be generated for epub only if enabled via configuration. But they are generated after the build for other viewcode-supported builders. This checks the current builder on generating module pages. | |||
2021-01-20 | Close #5560: napoleon_use_param also affect "other parameters" section | Takeshi KOMIYA | |
2021-01-19 | refactor: autosummary: Deprecate _simple_info() and _simple_warn() | Takeshi KOMIYA | |
2021-01-19 | Merge pull request #8703 from tk0miya/refactor_viewcode2 | Takeshi KOMIYA | |
refactor: viewcode: Fix type annotations |