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

Version selector appears even with 'version_selector': False #1620

Open
Hyrla opened this issue Oct 14, 2024 · 1 comment
Open

Version selector appears even with 'version_selector': False #1620

Hyrla opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@Hyrla
Copy link

Hyrla commented Oct 14, 2024

Problem

The version selector appears on the top left even if there is only one version and version_selector is set to False in html_theme_options.

Reproducible Project

Project documentation: https://esieabot.readthedocs.io/en/latest/
Project documentation conf.py file: https://gitlab.esiea.fr/esieabot/esieabot-docs/rtd/-/blob/main/docs/source/conf.py

Error Logs/Results

image

Expected Results

It think it was expected that the version selector shouldn't be there at all?

Environment Info

  • Python Version: 3.12
  • Sphinx Version: 8.3.1
  • RTD Theme Version: latest (3.0.1)
@Hyrla Hyrla added Bug A bug Needed: replication Bug replication is required labels Oct 14, 2024
@humitos
Copy link
Member

humitos commented Oct 14, 2024

Hrm, this is due this code:

const themeVersionSelector = "{{ theme_version_selector }}";
const themeLanguageSelector = "{{ theme_language_selector }}";

which renders as:

const themeVersionSelector = "False";
const themeLanguageSelector = "True";

We should update it to use a filter to make True -> true and remove the quotes.

@humitos humitos added Accepted Accepted issue on our roadmap and removed Needed: replication Bug replication is required labels Oct 14, 2024
@humitos humitos self-assigned this Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
Status: Planned
Development

No branches or pull requests

2 participants