mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Allow disabling selectors (#1626)
There was a bug with how we render a Python bool value into JavaScript. This PR fixes that issue. Closes #1620
This commit is contained in:
parent
7b894f5e7a
commit
5db7796b6e
@ -1,6 +1,6 @@
|
|||||||
const themeFlyoutDisplay = "{{ theme_flyout_display }}";
|
const themeFlyoutDisplay = "{{ theme_flyout_display }}";
|
||||||
const themeVersionSelector = "{{ theme_version_selector }}";
|
const themeVersionSelector = {{ 'true' if theme_version_selector|tobool else 'false' }};
|
||||||
const themeLanguageSelector = "{{ theme_language_selector }}";
|
const themeLanguageSelector = {{ 'true' if theme_language_selector|tobool else 'false' }};
|
||||||
|
|
||||||
if (themeFlyoutDisplay === "attached") {
|
if (themeFlyoutDisplay === "attached") {
|
||||||
function renderLanguages(config) {
|
function renderLanguages(config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user