| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Since Python 3.7, dicts maintain insertion order.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, ``nested_parse_with_titles`` always passed ``0`` as the input
offset when invoking ``nested_parse``. When parsing the content of a
directive, as is a common use case for ``nested_parse_with_titles``,
this leads to incorrect source file/line number information, as it
does not take into account the directive's ``content_offset``, which is
always non-zero.
This issue affects *all* object descriptions due to GH-10887. It also
affects the ``sphinx.ext.ifconfig`` extension.
The ``py:module`` and ``js:module`` directives employed a workaround for
this issue, by wrapping the calls to ``nested_parse_with_title`` with
``switch_source_input``. That worked, but was more complicated (and
likely less efficient) than necessary.
This commit adds an optional ``content_offset`` parameter to
``nested_parse_with_titles``, and fixes callers to pass the appropriate
content offset when needed.
This commit eliminates the now-unnecessary calls to
``switch_source_input`` and instead specifies the correct ``content_offset``.
|
| |
|
| |
|
|
|
|
| |
This allows using Ruff's import sorting fixers
|
| |
|
| |
|
|
|
| |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix flake8 warnings
* Deactivate (provisorily) testing with 3.12-dev
(refs:
https://github.com/sphinx-doc/sphinx/pull/10995#issuecomment-1330310586
)
* Escape # in tox.ini for tox 4 compatibility ('du-latest' tests)
Co-authored-by: Daniel Eades <danieleades@hotmail.com>
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# .github/workflows/main.yml
# CHANGES
# sphinx/__init__.py
# sphinx/domains/c.py
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# CHANGES
# doc/conf.py
# sphinx/__init__.py
# sphinx/builders/html/__init__.py
# sphinx/domains/python.py
# tests/test_build_html.py
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
# Conflicts:
# setup.py
# sphinx/__init__.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Add entries in the table of contents for domain objects (e.g.
`py:function`, `rst:role`, etc). Supported domains are Javascript,
Python, and reStructuredText.
- Support content in `py:module` and `js:module` directives.
- Add the `noindexentry` and `noindex` flags to more domains.
- Add `toc_object_entries_show_parents` configuration setting
- Update documentation and tests
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# setup.py
# sphinx/application.py
# sphinx/environment/__init__.py
# sphinx/ext/autodoc/directive.py
# tests/test_build_html.py
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
# Conflicts:
# sphinx/ext/autodoc/__init__.py
# sphinx/writers/html5.py
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
Resolved merge conflicts:
sphinx/ext/extlinks.py
sphinx/ext/napoleon/docstring.py
(and removed from the latter a now unused import for flake8 F401
compliance)
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
# Conflicts:
# .github/workflows/builddoc.yml
# .github/workflows/lint.yml
# sphinx/registry.py
|
| | |
|
|/ |
|
| |
|
|
|
|
|
| |
Change ext.autodoc.importer.get_class_members to set
ObjectMember.docstring the docstring found by the source code
analyzer.
|
|\ |
|
| | |
|
|/
|
|
|
|
|
|
|
| |
In basic usage of autodoc (docstring), `args` and `kwargs` arguments
are marked up without stars. But numpydoc style recommends to mark
them up with stars.
This adds support for starred arguments in docstrings to
`autodoc_typehints` feature.
|
|\
| |
| |
| |
| | |
tk0miya/10421_autodoc_preserve_defaults_for_classmethod
Fix #10421: autodoc_preserve_defaults doesn't work on class methods
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| | |
A bit too much copy and paste in the earlier ones.
`*-members` also includes `inherited-members` and `exclude-members` which are not dealt with.
|
| | |
|
| | |
|
|/
|
|
| |
Specifically: attributes, data, properties, and type variable bounds.
|