diff --git a/docs/_static/js/versions.js b/docs/_static/js/versions.js index 818bc99..4958195 100644 --- a/docs/_static/js/versions.js +++ b/docs/_static/js/versions.js @@ -1,6 +1,6 @@ const themeFlyoutDisplay = "hidden"; -const themeVersionSelector = "True"; -const themeLanguageSelector = "True"; +const themeVersionSelector = true; +const themeLanguageSelector = true; if (themeFlyoutDisplay === "attached") { function renderLanguages(config) { @@ -8,10 +8,14 @@ if (themeFlyoutDisplay === "attached") { return ""; } + // Insert the current language to the options on the selector + let languages = config.projects.translations.concat(config.projects.current); + languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name)); + const languagesHTML = `
The extracted timezone can be used to show the local time instead of UTC. e.g.
->>> import arrow
+>>> import arrow
>>> print(arrow.now()) # returns non-timezone-aware time
>>> print(arrow.now(tz=get_system_tz())) # prints timezone aware time.
diff --git a/docs/py-modindex.html b/docs/py-modindex.html
index 9dd89c9..2920386 100644
--- a/docs/py-modindex.html
+++ b/docs/py-modindex.html
@@ -6,7 +6,7 @@
Python Module Index — inkycal 2.0.4 documentation
-
+
diff --git a/docs/quickstart.html b/docs/quickstart.html
index 58ca496..dcfae6a 100644
--- a/docs/quickstart.html
+++ b/docs/quickstart.html
@@ -7,7 +7,7 @@
Quickstart — inkycal 2.0.4 documentation
-
+
diff --git a/docs/search.html b/docs/search.html
index f8065c0..1501d50 100644
--- a/docs/search.html
+++ b/docs/search.html
@@ -6,7 +6,7 @@
Search — inkycal 2.0.4 documentation
-
+