Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Feb 25, 2021

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Feb 23, 2021

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
@@ -30,6 +30,7 @@ Incompatible 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
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
Member Author

Choose a reason for hiding this comment

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

I noticed v0.2.5 was not released. The next version of v0.2.4 is v0.3.0.
https://pypi.org/project/sphinx-rtd-theme/#history

@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.

None yet

1 participant