docs: clean locales directory

environments/review-docs-docs-jzd968/deployments/16992
jo 2023-01-30 12:25:03 +01:00 zatwierdzone przez Ciarán Ainsworth
rodzic 77a31bff2e
commit abe3ed7d18
3 zmienionych plików z 4 dodań i 28 usunięć

4
docs/locales/.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1,4 @@
*
!.gitignore
!*/LC_MESSAGES/**/*.po
!gettext/**/*.pot

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -1,27 +0,0 @@
var sd_labels_by_text = {};
function ready() {
const li = document.getElementsByClassName("sd-tab-label");
for (const label of li) {
syncId = label.getAttribute("data-sync-id");
if (syncId) {
label.onclick = onLabelClick;
if (!sd_labels_by_text[syncId]) {
sd_labels_by_text[syncId] = [];
}
sd_labels_by_text[syncId].push(label);
}
}
}
function onLabelClick() {
// Activate other inputs with the same sync id.
syncId = this.getAttribute("data-sync-id");
for (label of sd_labels_by_text[syncId]) {
if (label === this) continue;
label.previousElementSibling.checked = true;
}
window.localStorage.setItem("sphinx-design-last-tab", syncId);
}
document.addEventListener("DOMContentLoaded", ready, false);