Skip to content

Commit 2834abd

Browse files
Update documentation
1 parent 007e7c4 commit 2834abd

File tree

7 files changed

+7
-3
lines changed

7 files changed

+7
-3
lines changed
135 Bytes
Binary file not shown.
135 Bytes
Binary file not shown.
135 Bytes
Binary file not shown.
135 Bytes
Binary file not shown.
135 Bytes
Binary file not shown.

main/.doctrees/environment.pickle

135 Bytes
Binary file not shown.

main/_static/js/versions.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
const themeFlyoutDisplay = "hidden";
2-
const themeVersionSelector = "True";
3-
const themeLanguageSelector = "True";
2+
const themeVersionSelector = true;
3+
const themeLanguageSelector = true;
44

55
if (themeFlyoutDisplay === "attached") {
66
function renderLanguages(config) {
77
if (!config.projects.translations.length) {
88
return "";
99
}
1010

11+
// Insert the current language to the options on the selector
12+
let languages = config.projects.translations.concat(config.projects.current);
13+
languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name));
14+
1115
const languagesHTML = `
1216
<dl>
1317
<dt>Languages</dt>
14-
${config.projects.translations
18+
${languages
1519
.map(
1620
(translation) => `
1721
<dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>

0 commit comments

Comments
 (0)