Skip to content

Commit

Permalink
Deploying to gh-pages from @ dd647db 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Nov 15, 2024
1 parent 799aff6 commit 91ee082
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions _static/js/versions.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
const themeFlyoutDisplay = "hidden";
const themeVersionSelector = "True";
const themeLanguageSelector = "True";
const themeVersionSelector = true;
const themeLanguageSelector = true;

if (themeFlyoutDisplay === "attached") {
function renderLanguages(config) {
if (!config.projects.translations.length) {
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 = `
<dl>
<dt>Languages</dt>
${config.projects.translations
${languages
.map(
(translation) => `
<dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>
Expand Down

0 comments on commit 91ee082

Please sign in to comment.