summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Prefer ``contextlib.chdir`` to ``sphinx.util.osutil.cd``Adam Turner2023-03-058-21/+67
|
* Make ``--jobs`` a synonym for ``-j`` (#11210)Hugo van Kemenade2023-03-052-2/+6
| | | Make --jobs a synonym for -j
* Update tests for Babel 2.12 (CLDR 42)Adam Turner2023-03-051-2/+11
|
* Resolve lint errors from Ruff 0.0.254Adam Turner2023-03-054-25/+25
|
* Explicitly select all linter checksAdam Turner2023-02-181-48/+1
|
* Update Ruff configurationAdam Turner2023-02-181-5/+109
|
* Resolve ``flake8-return`` errorsAdam Turner2023-02-1829-174/+135
|
* Unescape quotation marks where possibleAdam Turner2023-02-1815-19/+19
|
* Fix pytest style issuesAdam Turner2023-02-1821-77/+51
|
* Avoid ``unittest.TestCase`` methodsAdam Turner2023-02-184-294/+295
|
* Prefer ``@pytest.fixture()``Adam Turner2023-02-188-22/+22
|
* Fix COM812Adam Turner2023-02-18101-402/+405
|
* Add ``content_offset`` parameter to ``nested_parse_with_titles`` (#11147)Jeremy Maitin-Shepard2023-02-1511-16/+72
| | | | | | | | | | | | | | | | | | | | | | | 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-Shepard2023-02-152-4/+10
| | | | | | | | | | | | 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.
* Simplify coverage workflow reportingAdam Turner2023-02-151-5/+1
| | | | | ``PYTHONDEVMODE`` and ``PYTHONWARNDEFAULTENCODING`` are used in the main tests, remove from the coverage workflow.
* Ignore ``coverage.py`` warningsAdam Turner2023-02-151-1/+1
|
* Remove ``smartypants`` from LICENSE (#11152)Karolina Surma2023-02-151-73/+0
| | | | smartypants was removed from Sphinx in commit ce31e1c0c7b32f6be93186e0fef076ef65ff0b05
* Remove unicode prefix (``u``) from strings (#11158)Mike Taves2023-02-152-11/+11
|
* Treat Python warnings as errors during testingAdam Turner2023-02-156-6/+21
|
* Refactor ``sphinx.util.images.guess_mimetype``Adam Turner2023-02-151-42/+64
|
* Always cancel in-progress workflows on new commitsAdam Turner2023-02-155-5/+5
| | | | | | | | | The current ``github.head_ref || github.run_id`` syntax only cancels in-progress GitHub Actions runs triggered by pull requests, as ``head_ref`` is only defined for pull requests, and ``run_id`` is always unique. This changes to using ``ref``, which is the name of the branch or tag linked to the commit, meaning that in-progress jobs will be cancelled on pushes to a branch.
* Update GitHub Actions workflowsAdam Turner2023-02-1510-135/+193
|
* Resolve Ruff SIM114 violationsAdam Turner2023-02-1525-138/+107
|
* LaTeX: workaround to help users of luatex-ja LaTeX classes (#11191)Jean-François B2023-02-111-4/+6
| | | Close #11179
* Define ``sphinx.builders.gettext.LocalTimeZone.tzname()``Adam Turner2023-02-111-0/+3
|
* Ensure Ruff creates logs in colour for GitHub Actions (#11190)Hugo van Kemenade2023-02-111-0/+3
|
* Correct the Python Developer Guide markup style advice link (#11189)Hugo van Kemenade2023-02-111-2/+2
|
* Fix Ruff bidirectional text errorsAdam Turner2023-02-111-2/+5
|
* Ignore some pylint checks in RuffAdam Turner2023-02-091-0/+3
|
* Collapse ``.startswith`` and ``.endswith`` testsAdam Turner2023-02-095-10/+7
|
* Skip sphinx.locale.init_console when running tests (#11159)Jean Abou-Samra2023-01-311-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 errorsAdam Turner2023-01-3110-18/+30
|
* Ignore various lint checks in RuffAdam Turner2023-01-311-0/+7
|
* Ruff code TYP renamed to TCHAdam Turner2023-01-311-1/+1
|
* Update LaTeX docsJean-François B2023-01-241-33/+56
|
* LaTeX: ``\emph`` replaced by ``\sphinxparam`` and ``\sphinxsamedocref``Jean-François B2023-01-243-2/+10
|
* Remove unneeded typing importsAdam Turner2023-01-232-11/+4
|
* Enable more Ruff checksAdam Turner2023-01-231-0/+12
|
* Detect import sorting problems with RuffAdam Turner2023-01-231-0/+1
|
* Sort imports with Ruff's conventionAdam Turner2023-01-232-4/+9
|
* Ignore ``S701`` in RuffAdam Turner2023-01-231-0/+1
|
* Ignore ``SIM115`` in RuffAdam Turner2023-01-231-0/+1
|
* Update ``PL`` code ignores in RuffAdam Turner2023-01-231-4/+3
|
* Doc of html_file_suffix (closes #11141) (#11144)Jean-François B2023-01-221-2/+2
|
* Ignore UP031 check with Ruff 0.0.229Jean-François B2023-01-221-0/+2
|
* Merge pull request #11146 from jfbu/update_test_needs_sphinxJean-François B2023-01-221-7/+7
|\ | | | | Update test_config.py::test_needs_sphinx for Alabaster 0.7.13 compat
| * Update test_config.py::test_needs_sphinx for Alabaster 0.7.13 compatJean-François B2023-01-211-7/+7
|/ | | | Relates #11145
* Merge branch '6.1.x'Adam Turner2023-01-1013-61/+67
|\ | | | | | | | | | | # Conflicts: # CHANGES # sphinx/__init__.py
| * Bump versionAdam Turner2023-01-102-3/+24
| |
| * Bump to 6.1.3 finalv6.1.3Adam Turner2023-01-102-19/+4
| |