| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
(#11383)
|
| |
|
|
|
|
|
| |
(#10949)" (#11343)
This keeps some of the added tests, and avoids a full revert of ``sphinx.locale``.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit disables Sphinx's localisation features when reproducible
builds are requested, as determined by a non-empty SOURCE_DATE_EPOCH_
environment variable.
The `Reproducible Builds`_ project aims to provide confidence to
consumers of packaged software that the artefacts they're downloading
and installing have not been altered by the environment they were
built in, and can be replicated at a later date if required.
Builds of localised documentation using Sphinx currently account for
a large category of reproducible build testing failures, because the
builders intentionally use varying environment locales at build-time.
This can affect the contents of the ``objects.inv`` file.
During investigation, it turned out that many ``gettext``-localised
values (particularly in Python modules under ``sphinx.domains``) were
being translated at module-load-time and would not subsequently be
re-localised.
This creates two unusual effects:
1. Attempting to write a test case to build the same application in
two different languages was not initially possible, as the
first-loaded translation catalogue (as found in the
``sphinx.locale.translators`` global variable) would remain in-use
for subsequent application builds under different locales.
2. Localisation of strings could vary depending on whether the
relevant modules were loaded before or after the resource
catalogues were populated.
We fix this by performing all translations lazily so that module
imports can occur in any order and localisation of inventory entries
should occur only when translations of those items are requested.
Localisation can then be disabled by configuring the ``gettext``
language to the ISO-639-3 'undetermined' code (``'und'``), as this
should not have an associated translation catalogue. We also want to
prevent ``gettext`` from attempting to determine the host's locale
from environment variables (including ``LANGUAGE``).
.. _SOURCE_DATE_EPOCH: https://reproducible-builds.org/docs/source-date-epoch/
.. _Reproducible Builds: https://www.reproducible-builds.org/
|
| |
|
|
|
|
|
|
| |
This exposed names at ``sphinx.builders.html.sphinxcontrib.serializinghtml``,
etc, which offers no benefit. This was originally broken in commit
9dfbfbf16b9873de3ff94984e40b5bc41e28005e, four years ago.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|\
| |
| |
| |
| |
| | |
# Conflicts:
# CHANGES
# sphinx/__init__.py
|
| | |
|
|/ |
|
| |
|
|
|
|
|
| |
- Merge `old_status_iterator` into ``status_iterator``.
``old_status_iterator`` was deprecated in version 1.6.
|
| |
|
|
|
| |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Move the HTML 4 translator into a private module.
|
|
|
|
|
| |
It seems the original PR adding multi word key support forgot to add
commas and python helpfully just concatenated the strings instead of
building the required tuples.
|
|
|
|
| |
https://github.com/charliermarsh/ruff
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
# 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/application.py
# sphinx/environment/__init__.py
# sphinx/ext/autodoc/directive.py
# tests/test_build_html.py
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
# Conflicts:
# CHANGES
# sphinx/__init__.py
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
# Conflicts:
# sphinx/ext/autodoc/__init__.py
# sphinx/writers/html5.py
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| | |
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
|
|\ \
| |/ |
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
# Conflicts:
# .github/workflows/builddoc.yml
# .github/workflows/lint.yml
# sphinx/registry.py
|
| | |
|
|/ |
|
|\ |
|