Commit Graph
4 Commits
Author SHA1 Message Date
Manuel Kaufmann f4a47f1401 Keep the `translated` attribute on translated nodes (#11502)
This particular commit ensures that the ``translated`` attribute
is retained on translated nodes so that developers may use it
to improve the experience on translations.
This attribute can be useful to calculate
the translated percentage of a particular document,
to visually mark paragraphs as not translated,
and many other applications.
2023-07-23 21:00:24 +01:00
Manuel Kaufmann f312792023 Merge branch '4.x' into humitos/add-html-assets-in-all-pages 2021-06-14 17:04:09 +02:00
Manuel Kaufmann c818a70528 Rename variable to html_assets_policy 2021-06-14 16:50:26 +02:00
Manuel Kaufmann d01e776c81 Add Sphinx.add_html_assets_in_all_pages
This new method in the `Sphinx` object allows extensions to communicate to
Sphinx that it's preferred to include HTML assets in all the pages. However,
it's extensions developers' responsability to follow this config and decide
whether or not include the assets required.

Extensions developers' can check `Sphinx.html_assets_in_all_pages` together with
any other logic they may have to decide if the assets will be included in the
rendered page or not.

Closes #9115
2021-05-06 15:21:12 +02:00