Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Warn on deprecated Python-specific index types (#11412) | Adam Turner | 2023-05-09 | 1 | -10/+14 |
| | |||||
* | Fix COM812 | Adam Turner | 2023-02-18 | 1 | -5/+5 |
| | |||||
* | Add ``content_offset`` parameter to ``nested_parse_with_titles`` (#11147) | Jeremy Maitin-Shepard | 2023-02-15 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | 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``. | ||||
* | Resolve Ruff SIM114 violations | Adam Turner | 2023-02-15 | 1 | -1/+1 |
| | |||||
* | Handle exceptions for ``get_node_source`` and ``get_node_line`` | Adam Turner | 2023-01-10 | 1 | -3/+7 |
| | |||||
* | Restore Sphinx 5 ``nodes.Element`` copying behaviour | Adam Turner | 2023-01-10 | 1 | -0/+15 |
| | |||||
* | Suppress ``ValueError`` in ``apply_source_workaround`` (#11092) | Adam Turner | 2023-01-05 | 1 | -1/+3 |
| | |||||
* | De-glob mypy whitelist for 'sphinx.domains.*' (#11064) | danieleades | 2023-01-02 | 1 | -1/+1 |
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | Shrink mypy whitelist for 'util.nodes' module (#11061) | danieleades | 2023-01-02 | 1 | -4/+4 |
| | |||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -5/+5 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -9/+9 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -11/+10 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -1/+4 |
| | |||||
* | Enable Ruff's pylint checks | Adam Turner | 2022-12-29 | 1 | -2/+1 |
| | | | | | Also fix two PLW0602 warnings (``global`` without assignment) and five PLW0120 warnings (else clause on loop without break). | ||||
* | remove blanket 'noqas' | Daniel Eades | 2022-12-16 | 1 | -1/+3 |
| | |||||
* | Run the ``pyupgrade`` tool | Adam Turner | 2022-10-17 | 1 | -1/+1 |
| | |||||
* | Increase minimum Docutils to 0.18 | Adam Turner | 2022-09-27 | 1 | -24/+2 |
| | |||||
* | Increase minimum Docutils to 0.17 | Adam Turner | 2022-09-27 | 1 | -19/+3 |
| | |||||
* | Improve static typing strictness (#10569) | danieleades | 2022-07-18 | 1 | -2/+3 |
| | |||||
* | Remove redundant static typing casts (#10612) | danieleades | 2022-07-02 | 1 | -2/+2 |
| | |||||
* | Collapse single line docstrings | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | |||||
* | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -2/+2 |
| | |||||
* | Fix module docstring first line | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove module titles in docstrings | Adam Turner | 2022-02-19 | 1 | -3/+0 |
| | |||||
* | Migrate to Node.findall() from Node.traverse() | Takeshi KOMIYA | 2022-01-03 | 1 | -11/+12 |
| | | | | | | | | 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. | ||||
* | i18n: meta strings are not translated with docutils-0.18 | Takeshi KOMIYA | 2022-01-02 | 1 | -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``. | ||||
* | A happy new year! | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| | |||||
* | Fix #9947: i18n: topic directive having a bullet list can't be translatable | Takeshi KOMIYA | 2021-12-10 | 1 | -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. | ||||
* | Support docutils-0.18: Consume iterator of Element.traverse() | Takeshi KOMIYA | 2021-10-27 | 1 | -2/+2 |
| | | | | | | | 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. | ||||
* | Check complete ancestry of text nodes for smartquotes eligibility. | Justin Turner Arthur | 2021-08-21 | 1 | -7/+9 |
| | | | | Fixes sphinx-doc/sphinx#9564. | ||||
* | Improve sphinx.util.nodes docstrings | Louis Maddox | 2021-07-18 | 1 | -5/+5 |
| | |||||
* | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2021-05-03 | 1 | -9/+12 |
| | |||||
* | refactor: use raw Type for type annotations | Takeshi KOMIYA | 2021-04-04 | 1 | -1/+1 |
| | |||||
* | refactor: Use PEP-526 based variable annotation (sphinx.util) | Takeshi KOMIYA | 2021-03-10 | 1 | -2/+2 |
| | |||||
* | Fix #7199: py domain: Add a new confval: python_use_unqualified_type_names | Takeshi KOMIYA | 2021-03-06 | 1 | -3/+3 |
| | | | | | | Add a new config variable: python_use_unqualified_type_names. If enabled, it goes to suppress the module name of the python reference if it can be resolved. | ||||
* | Filter pending_xref_condition node on failed resolution | Takeshi KOMIYA | 2021-03-06 | 1 | -0/+10 |
| | |||||
* | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
|\ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype | ||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-12-14 | 1 | -38/+38 |
|\ \ | |/ | |||||
| * | refactor with pyupgrade | Takeshi KOMIYA | 2020-11-25 | 1 | -38/+38 |
| | | | | | | | | | | | | Run `pyupgrade --py3-only --keep-percent-format` to refine our code. Note: --keep-percent-format is required to keep translations available. | ||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-11-12 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | Sort imports with isort | François Freitag | 2020-11-11 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip. | ||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-07-24 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | i18n: process math_block as a literal node | Victor "multun" Collod | 2020-07-16 | 1 | -0/+1 |
| | | |||||
* | | Close #7784: i18n: The alt text for image is translated by default | Takeshi KOMIYA | 2020-07-19 | 1 | -6/+10 |
| | | | | | | | | | | Make alt text for image translatable by default without settings of gettext_additional_targets. | ||||
* | | Merge tag 'v3.1.1' | Takeshi KOMIYA | 2020-07-05 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix #7803: Fix typo in import-block for type annotation | Takeshi KOMIYA | 2020-06-09 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-06-04 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Merge branch '3.0.x' into 3.x | Takeshi KOMIYA | 2020-06-03 | 1 | -1/+2 |
| |\ |