1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-22 18:30:33 +02:00

Automatically format YAML, CSS, and JS files (#1272)

Initially, I also formatted the templates in `theme/`, but this triggers
https://github.com/prettier/prettier/issues/11834. So I exclude them for
now.

---------

Co-authored-by: Ming-Ying Chung <mych@chromium.org>
This commit is contained in:
Martin Geisler 2023-10-02 07:48:00 +02:00 committed by GitHub
parent 4e768e2e36
commit 42541fc401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 47 deletions

33
.github/labeler.yml vendored
View File

@ -1,51 +1,50 @@
translation: translation:
- po/** - po/**
'translation/bn': "translation/bn":
- po/bn.po - po/bn.po
'translation/da': "translation/da":
- po/da.po - po/da.po
'translation/de': "translation/de":
- po/de.po - po/de.po
'translation/el': "translation/el":
- po/el.po - po/el.po
'translation/es': "translation/es":
- po/es.po - po/es.po
'translation/fr': "translation/fr":
- po/fr.po - po/fr.po
'translation/id': "translation/id":
- po/id.po - po/id.po
'translation/it': "translation/it":
- po/it.po - po/it.po
'translation/ja': "translation/ja":
- po/ja.po - po/ja.po
'translation/ko': "translation/ko":
- po/ko.po - po/ko.po
'translation/pt-BR': "translation/pt-BR":
- po/pt-BR.po - po/pt-BR.po
'translation/ru': "translation/ru":
- po/ru.po - po/ru.po
'translation/tr': "translation/tr":
- po/tr.po - po/tr.po
'translation/zh-CN': "translation/zh-CN":
- po/zh-CN.po - po/zh-CN.po
'translation/zh-TW': "translation/zh-TW":
- po/zh-TW.po - po/zh-TW.po
"translation/fa":
'translation/fa':
- po/fa.po - po/fa.po

View File

@ -13,6 +13,7 @@
"excludes": [ "excludes": [
"/book/", "/book/",
"/src/", "/src/",
"/theme/*.hbs",
"/third_party/", "/third_party/",
"target/" "target/"
], ],
@ -20,6 +21,7 @@
"https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072", "https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072",
"https://plugins.dprint.dev/json-0.17.4.wasm", "https://plugins.dprint.dev/json-0.17.4.wasm",
"https://plugins.dprint.dev/markdown-0.16.1.wasm", "https://plugins.dprint.dev/markdown-0.16.1.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm" "https://plugins.dprint.dev/toml-0.5.4.wasm",
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe"
] ]
} }

View File

@ -3,7 +3,7 @@
right: 10px; right: 10px;
} }
[dir=rtl] #language-list { [dir="rtl"] #language-list {
left: 10px; left: 10px;
right: auto; right: auto;
} }

View File

@ -116,9 +116,11 @@
setState("popup"); setState("popup");
applyState(); applyState();
} else { } else {
window.alert("Could not open popup, please check your popup blocker settings."); window.alert(
"Could not open popup, please check your popup blocker settings."
);
} }
}) });
let popOutIcon = document.createElement("i"); let popOutIcon = document.createElement("i");
popOutIcon.classList.add("fa", "fa-external-link"); popOutIcon.classList.add("fa", "fa-external-link");
popOut.append(popOutIcon); popOut.append(popOutIcon);
@ -179,7 +181,9 @@
} }
// Update prev/next buttons to keep speaker note state. // Update prev/next buttons to keep speaker note state.
document.querySelectorAll('a[rel="prev"], a[rel="next"]').forEach((elem) => { document
.querySelectorAll('a[rel="prev"], a[rel="next"]')
.forEach((elem) => {
elem.href += "#speaker-notes-open"; elem.href += "#speaker-notes-open";
}); });
} }