Skip to content

Commit

Permalink
Allow disabling selectors (#1626)
Browse files Browse the repository at this point in the history
There was a bug with how we render a Python bool value into JavaScript.
This PR fixes that issue.

Closes #1620
  • Loading branch information
humitos authored Nov 4, 2024
1 parent 7b894f5 commit 5db7796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx_rtd_theme/static/js/versions.js_t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const themeFlyoutDisplay = "{{ theme_flyout_display }}";
const themeVersionSelector = "{{ theme_version_selector }}";
const themeLanguageSelector = "{{ theme_language_selector }}";
const themeVersionSelector = {{ 'true' if theme_version_selector|tobool else 'false' }};
const themeLanguageSelector = {{ 'true' if theme_language_selector|tobool else 'false' }};

if (themeFlyoutDisplay === "attached") {
function renderLanguages(config) {
Expand Down

0 comments on commit 5db7796

Please sign in to comment.