Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Prefer ``contextlib.chdir`` to ``sphinx.util.osutil.cd`` | Adam Turner | 2023-03-05 | 4 | -8/+25 | |
| | ||||||
* | Update tests for Babel 2.12 (CLDR 42) | Adam Turner | 2023-03-05 | 1 | -2/+11 | |
| | ||||||
* | Resolve lint errors from Ruff 0.0.254 | Adam Turner | 2023-03-05 | 2 | -2/+2 | |
| | ||||||
* | Resolve ``flake8-return`` errors | Adam Turner | 2023-02-18 | 3 | -0/+4 | |
| | ||||||
* | Unescape quotation marks where possible | Adam Turner | 2023-02-18 | 5 | -8/+8 | |
| | ||||||
* | Fix pytest style issues | Adam Turner | 2023-02-18 | 16 | -71/+44 | |
| | ||||||
* | Avoid ``unittest.TestCase`` methods | Adam Turner | 2023-02-18 | 4 | -294/+295 | |
| | ||||||
* | Prefer ``@pytest.fixture()`` | Adam Turner | 2023-02-18 | 7 | -16/+16 | |
| | ||||||
* | Fix COM812 | Adam Turner | 2023-02-18 | 21 | -139/+139 | |
| | ||||||
* | Add ``content_offset`` parameter to ``nested_parse_with_titles`` (#11147) | Jeremy Maitin-Shepard | 2023-02-15 | 4 | -0/+56 | |
| | | | | | | | | | | | | | | | | | | | | | | | 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``. | |||||
* | Restore correct parallel search index building (#11192) | Jeremy Maitin-Shepard | 2023-02-15 | 1 | -0/+7 | |
| | | | | | | | | | | | | Revert b32841e153431ec02de31e9ec32e79ab3ac7d1c2 to fix parallel search index building The image-related changes were already reverted in 2a7c40d07f4b0e0fd2a4bc942e74634c2df24dee, but the search index changes also need to be reverted. It would be nice to support parallel search index building, but the necessary support for merging the search indices produced by each process needs to be added first. | |||||
* | Treat Python warnings as errors during testing | Adam Turner | 2023-02-15 | 2 | -2/+7 | |
| | ||||||
* | Fix Ruff bidirectional text errors | Adam Turner | 2023-02-11 | 1 | -2/+5 | |
| | ||||||
* | Skip sphinx.locale.init_console when running tests (#11159) | Jean Abou-Samra | 2023-01-31 | 1 | -0/+14 | |
| | | | | | | | Tests for Sphinx's CLIs, like test_apidoc, indirectly init_console to initialize translations for Sphinx's console domain, the one with Sphinx's log messages. This bleeds over subsequent tests by making warnings translated. Fix this by skipping init_console when running Sphinx's test suite. | |||||
* | Fix various Ruff errors | Adam Turner | 2023-01-31 | 2 | -5/+5 | |
| | ||||||
* | Update test_config.py::test_needs_sphinx for Alabaster 0.7.13 compat | Jean-François B | 2023-01-21 | 1 | -7/+7 | |
| | | | | Relates #11145 | |||||
* | Merge branch '6.1.x' | Adam Turner | 2023-01-10 | 4 | -19/+3 | |
|\ | | | | | | | | | | | # Conflicts: # CHANGES # sphinx/__init__.py | |||||
| * | Undo parallel image changes | Adam Turner | 2023-01-10 | 4 | -19/+3 | |
| | | ||||||
* | | Fix #11079 (LaTeX: figure with align disappears if not followed by text) | Jean-François B | 2023-01-08 | 1 | -3/+6 | |
| | | ||||||
* | | Adopt ``profile = "black"`` for ``isort`` | Adam Turner | 2023-01-07 | 17 | -46/+185 | |
|/ | | | | This allows using Ruff's import sorting fixers | |||||
* | Fix copying images under parallel execution (#11100) | Adam Turner | 2023-01-07 | 4 | -0/+82 | |
| | ||||||
* | LaTeX: fix 5.1.0 bugs related to topic and contents boxes (#11102) | Jean-François B | 2023-01-06 | 1 | -0/+72 | |
| | | | | | | | | | | | | | | | | | | * Fix #11095 (PDF wrong placement of shadow of topic boxes since 5.1.0) * Fix #11096 (LaTeX shadowsize regression at 5.1.0) * Fix #11099 (shadowrule legacy sphinxsetup key vanished at 5.1.0) * Fix #11101 (LaTeX div.topic_padding of sphinxsetup had wrong name) * Add some checks that various sphinxsetup keys do not break PDF build * Update LaTeX docs * Update CHANGES * Can not use :dudir:`contents` has it links to wrong place | |||||
* | Suppress ``ValueError`` in ``apply_source_workaround`` (#11092) | Adam Turner | 2023-01-05 | 1 | -2/+22 | |
| | ||||||
* | Cache doctrees more efficiently | Adam Turner | 2023-01-04 | 4 | -5/+6 | |
| | ||||||
* | Move XML Name pattern to ``epub3`` | Adam Turner | 2023-01-03 | 2 | -8/+9 | |
| | ||||||
* | Move console output utilities to ``sphinx.util.display`` | Adam Turner | 2023-01-03 | 2 | -84/+93 | |
| | | | | | - Merge `old_status_iterator` into ``status_iterator``. ``old_status_iterator`` was deprecated in version 1.6. | |||||
* | Fix #6744: support for seealso directive should be via an environment | Jean-François B | 2023-01-03 | 1 | -0/+11 | |
| | ||||||
* | Document ``typing.NewType`` as a class (#10700) | Adam Turner | 2023-01-02 | 5 | -73/+73 | |
| | ||||||
* | Use PEP 604 display for ``typing.Optional`` and ``typing.Union`` (#11072) | Adam Turner | 2023-01-02 | 5 | -163/+169 | |
| | ||||||
* | Rewrite IndexBuilder loading | Adam Turner | 2023-01-02 | 1 | -1/+8 | |
| | ||||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 15 | -70/+64 | |
| | ||||||
* | Remove obsolete HTML keyword ``link rel="shortcut"`` (#11069) | Rotzbua | 2023-01-01 | 1 | -1/+1 | |
| | | | | | | | The link relationship keyword `shortcut` does not appear in the HTML 5 specification [1]. It was used by historic browsers (i.e. Internet Explorer 6) which Sphinx no longer supports. [1]: HTML5 Specification, 4.6.7.8 Link type "icon", https://html.spec.whatwg.org/#rel-icon | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 21 | -5/+46 | |
| | ||||||
* | Happy New Year! | Adam Turner | 2023-01-01 | 1 | -1/+1 | |
| | ||||||
* | Make copyright text inclusion test date-independent | Adam Turner | 2023-01-01 | 2 | -2/+2 | |
| | | | | Improve clarity on what the test is looking for in the footer | |||||
* | Merge branch '6.0.x' | Adam Turner | 2023-01-01 | 2 | -10/+28 | |
|\ | ||||||
| * | Fix tests for Pygments 2.14 | Adam Turner | 2023-01-01 | 2 | -10/+28 | |
| | | | | | | | | | | | | Pygments 2.14 was released on 01/01/2023 [0] [0]: https://pygments.org/docs/changelog/#version-2-14-0 | |||||
* | | Reflect changes to ``Enum`` signature in Python 3.12 | Adam Turner | 2022-12-30 | 1 | -1/+4 | |
| | | ||||||
* | | Add test for multi-word key names (``kbd`` role) (#10765) | John Gardner | 2022-12-30 | 1 | -0/+8 | |
| | | ||||||
* | | Factor out HTML 4 translator (#11051) | Adam Turner | 2022-12-30 | 4 | -18/+18 | |
| | | | | | | Move the HTML 4 translator into a private module. | |||||
* | | Enable Ruff's pylint 'PLC2201' check | Adam Turner | 2022-12-30 | 6 | -109/+117 | |
| | | | | | | | | Address all cases where the comparison order check is violated | |||||
* | | Enable Ruff's flake8-bandit checks | Adam Turner | 2022-12-29 | 1 | -4/+4 | |
| | | ||||||
* | | Enable Ruff's pylint checks | Adam Turner | 2022-12-29 | 1 | -1/+0 | |
| | | | | | | | | | | Also fix two PLW0602 warnings (``global`` without assignment) and five PLW0120 warnings (else clause on loop without break). | |||||
* | | Adopt the Ruff code linting tool | Adam Turner | 2022-12-29 | 1 | -1/+1 | |
|/ | | | | https://github.com/charliermarsh/ruff | |||||
* | Add test coverage for 'today_fmt' reference substitution (#10980) | James Addison | 2022-12-29 | 2 | -0/+11 | |
| | ||||||
* | remove blanket 'noqas' | Daniel Eades | 2022-12-16 | 6 | -8/+8 | |
| | ||||||
* | Deactivate (provisorily) Python12-dev testing (#11035) | Jean-François B | 2022-12-16 | 1 | -1/+1 | |
| | | | | | | | | | | | | | * 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> | |||||
* | Run the ``pyupgrade`` tool | Adam Turner | 2022-10-17 | 31 | -75/+68 | |
| | ||||||
* | Prefer ``raise SystemExit`` to ``sys.exit`` | Adam Turner | 2022-10-17 | 2 | -6/+2 | |
| | ||||||
* | LaTeX: switch to some nicer defaults for tables and code-blocks (#10924) | Jean-François B | 2022-10-17 | 1 | -5/+7 | |
| |