Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Autosummary: Always emit grouped ``ImportError`` exceptions (#11380) | Adam Turner | 2023-04-28 | 1 | -15/+5 |
| | |||||
* | autosummary: Support documenting inherited attributes (#10691) | Jens Hedegaard Nielsen | 2023-04-06 | 1 | -7/+17 |
| | | | | | | | | | | | The current implementation of ``import_ivar_by_name`` filters attributes if the name of the object that the attribute belongs to does not match the object being documented. However, for inherited attributes this is not the case. Filtering only on the attribute name seems to resolve the issue. It is not clear to me if there are any unwanted sideeffects of this and we should filter on the list of qualnames for the object and all its super classes (if any). Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | Autosummary: Extend ``__all__`` members to template rendering (#10811) | Clément Pinard | 2023-04-06 | 1 | -3/+49 |
| | | | | | | | | | | | | | When ``False``, the ``autosummary_ignore_module_all`` option adds members to the module's members entry that will be used for autodoc, but otherwise ignores it. As such, if a class is available in the ``__all__``, it won't be generated. This commit aims to extend the ``__all__`` handling not only to members, but also to corresponding attribute types (function, classes, exceptions, modules) The ``imported_members`` option is set to ``True`` if the object has an ``__all__`` member and ``autosummary_ignore_module_all`` is ``False`` | ||||
* | Remove ``sphinx.locale.setlocale`` | Adam Turner | 2023-03-24 | 1 | -4/+3 |
| | |||||
* | Resolve ``flake8-return`` errors | Adam Turner | 2023-02-18 | 2 | -3/+2 |
| | |||||
* | Fix COM812 | Adam Turner | 2023-02-18 | 2 | -4/+4 |
| | |||||
* | Resolve Ruff SIM114 violations | Adam Turner | 2023-02-15 | 1 | -6/+6 |
| | |||||
* | Fix various Ruff errors | Adam Turner | 2023-01-31 | 1 | -2/+4 |
| | |||||
* | Adopt ``profile = "black"`` for ``isort`` | Adam Turner | 2023-01-07 | 2 | -8/+24 |
| | | | | This allows using Ruff's import sorting fixers | ||||
* | Document ``typing.NewType`` as a class (#10700) | Adam Turner | 2023-01-02 | 1 | -3/+2 |
| | |||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 2 | -8/+8 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 2 | -16/+16 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 2 | -55/+55 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 2 | -0/+4 |
| | |||||
* | Factor out HTML 4 translator (#11051) | Adam Turner | 2022-12-30 | 1 | -2/+2 |
| | | | Move the HTML 4 translator into a private module. | ||||
* | Merge branch '5.x' | Adam Turner | 2022-09-25 | 1 | -0/+3 |
|\ | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGES # doc/conf.py # sphinx/__init__.py # sphinx/builders/html/__init__.py # sphinx/domains/python.py # tests/test_build_html.py | ||||
| * | Define extra indent as a class attribute | Adam Turner | 2022-09-25 | 1 | -0/+3 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-09-09 | 2 | -16/+23 |
|\ \ | |/ | | | | | | | | | | | | | | | # Conflicts: # setup.py # sphinx/application.py # sphinx/environment/__init__.py # sphinx/ext/autodoc/directive.py # tests/test_build_html.py | ||||
| * | Fix more strict static typing errors (#10681) | danieleades | 2022-08-28 | 2 | -16/+23 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-07-24 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | # Conflicts: # CHANGES # sphinx/__init__.py | ||||
| * | Update include_patterns implementation (#10680) | Adam Turner | 2022-07-23 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-07-18 | 1 | -3/+4 |
|\ \ | |/ | | | | | | | | | # Conflicts: # sphinx/ext/autodoc/__init__.py # sphinx/writers/html5.py | ||||
| * | Improve static typing strictness (#10569) | danieleades | 2022-07-18 | 1 | -3/+4 |
| | | |||||
* | | Merge branch '5.x' | Adam Turner | 2022-07-17 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Add `include_patterns` as the opposite of `exclude_patterns` (#10518) | Adam Turner | 2022-07-17 | 1 | -1/+1 |
| | | |||||
* | | Remove deprecated items for Sphinx 6.0 (#10471) | Adam Turner | 2022-06-16 | 1 | -10/+1 |
|/ | |||||
* | remove unnecessary generators (C400, C401) | Daniel Eades | 2022-06-03 | 2 | -3/+3 |
| | |||||
* | remove unnecessary list calls around 'sorted' (C413) | Daniel Eades | 2022-06-03 | 1 | -1/+1 |
| | |||||
* | Fix #10509: autosummary: autosummary fails with a shared library | Takeshi KOMIYA | 2022-06-03 | 1 | -2/+6 |
| | |||||
* | autosummary: global variables having doc-comment are considered as ↵ | Takeshi KOMIYA | 2022-05-07 | 1 | -2/+4 |
| | | | | non-imported members of the module | ||||
* | Fix a flake8 warning | Takeshi KOMIYA | 2022-05-07 | 1 | -1/+0 |
| | |||||
* | Merge branch '5.x' into 10258_autosummary | Takeshi KOMIYA | 2022-05-07 | 2 | -137/+50 |
|\ | |||||
| * | Remove deprecated code for Sphinx 5.0 | Adam Turner | 2022-04-17 | 2 | -86/+10 |
| | | |||||
| * | Merge branch '4.x' | Takeshi KOMIYA | 2022-03-19 | 2 | -51/+40 |
| |\ | |||||
| | * | Merge pull request #10212 from AA-Turner/remove-module-docstring-titles | Takeshi KOMIYA | 2022-03-14 | 2 | -50/+39 |
| | |\ | | | | | | | | | Remove module docstring titles | ||||
| | | * | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 2 | -6/+0 |
| | | | | |||||
| | | * | Conform to PEP 257 summary line conventions | Adam Turner | 2022-02-20 | 2 | -4/+7 |
| | | | | |||||
| | | * | Fix module docstring indentation | Adam Turner | 2022-02-20 | 2 | -40/+40 |
| | | | | |||||
| | | * | Fix module docstring first line | Adam Turner | 2022-02-20 | 2 | -4/+2 |
| | | | | |||||
| | | * | Remove module titles in docstrings | Adam Turner | 2022-02-19 | 2 | -6/+0 |
| | | | | |||||
| | * | | Close #10234: autosummary: Add "autosummary" CSS class to summary tables | Takeshi KOMIYA | 2022-03-06 | 1 | -1/+1 |
| | |/ | |||||
* | | | Do not pass attr_docs as an argument into ModuleScanner.scan | Matyas Novak | 2022-03-14 | 1 | -4/+6 |
| | | | |||||
* | | | Recognize a documented attribute of a module as non-imported. | Matyas Novak | 2022-03-11 | 1 | -5/+6 |
|/ / | |||||
* | | Merge branch '4.x' | Takeshi KOMIYA | 2022-01-17 | 2 | -4/+4 |
|\ \ | |/ | |||||
| * | address some unused loop control variables (B007) | Daniel Eades | 2022-01-12 | 2 | -4/+4 |
| | | |||||
* | | Merge branch '4.x' | Takeshi KOMIYA | 2022-01-16 | 1 | -2/+0 |
|\ \ | |/ | |||||
| * | Fix #10058: autosummary: Imported members are not shown | Takeshi KOMIYA | 2022-01-11 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Merge branch '4.x' | Takeshi KOMIYA | 2022-01-03 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Migrate to Node.findall() from Node.traverse() | Takeshi KOMIYA | 2022-01-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | autosummary: autosummary: import_by_name() now raises ImportExceptionGroup | Takeshi KOMIYA | 2022-01-02 | 2 | -8/+14 |
|/ | | | | | It starts to `ImportExceptionGroup` exception instead of `ImportError` by default when it failed to import target object. |