Skip to content

Fix #8915: html theme: The translation of sphinx_rtd_theme does not work - #8920

Merged
tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:8915_i18n_for_sphinx_rtd_theme
Feb 25, 2021
Merged

tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:8915_i18n_for_sphinx_rtd_theme

Conversation

@tk0miya

@tk0miya tk0miya commented Feb 23, 2021

Copy link
Copy Markdown
Member

Feature or Bugfix

  • Bugfix

Purpose

  • Since sphinx_rtd_theme-0.5.0, it supports translations. But Sphinx core
    disallows to enable it because theming framework gives special treatment
    for the theme for a long time.
  • This goes to load it via setuptools at first to enable the translations.
  • Note: The special treatment for sphinx_rtd_theme (< 0.2.0) is not
    removed yet. But it will be removed in the next major release.

@tk0miya tk0miya added this to the 4.0.0 milestone Feb 23, 2021
@tk0miya
tk0miya force-pushed the 8915_i18n_for_sphinx_rtd_theme branch from 7c0d2e2 to 7c3b422 Compare February 23, 2021 12:10
…does not work

Since sphinx_rtd_theme-0.5.0, it supports translations.  But Sphinx core
disallows to enable it because theming framework gives special treatment
for the theme for a long time.

This goes to load it via setuptools at first to enable the translations.

Note: The special treatment for sphinx_rtd_theme (< 0.2.5) is not
removed yet.  But it will be removed in the future release.
@tk0miya
tk0miya force-pushed the 8915_i18n_for_sphinx_rtd_theme branch from 7c3b422 to ad3edd9 Compare February 23, 2021 12:14
Comment thread CHANGES
* html theme: Move a script tag for documentation_options.js in
basic/layout.html to ``script_files`` variable
* html theme: Move CSS tags in basic/layout.html to ``css_files`` variable
* #8915: html theme: Emit a warning for sphinx_rtd_theme-0.2.4 or older

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: An entry_point for setuptools was added to sphinx_rtd_theme at 0.2.5 (see readthedocs/sphinx_rtd_theme#425).
But Ubuntu-18.04 bundles v0.2.4
https://packages.ubuntu.com/bionic/python3-sphinx-rtd-theme

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tk0miya
tk0miya merged commit 4392557 into sphinx-doc:master Feb 25, 2021
@tk0miya
tk0miya deleted the 8915_i18n_for_sphinx_rtd_theme branch February 25, 2021 16:57
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant