diff --git a/.github/labeler.yml b/.github/labeler.yml index 2c1b0e1b910..173ac9807d5 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,51 +1,50 @@ translation: -- po/** + - po/** -'translation/bn': -- po/bn.po +"translation/bn": + - po/bn.po -'translation/da': -- po/da.po +"translation/da": + - po/da.po -'translation/de': -- po/de.po +"translation/de": + - po/de.po -'translation/el': -- po/el.po +"translation/el": + - po/el.po -'translation/es': -- po/es.po +"translation/es": + - po/es.po -'translation/fr': -- po/fr.po +"translation/fr": + - po/fr.po -'translation/id': -- po/id.po +"translation/id": + - po/id.po -'translation/it': -- po/it.po +"translation/it": + - po/it.po -'translation/ja': -- po/ja.po +"translation/ja": + - po/ja.po -'translation/ko': -- po/ko.po +"translation/ko": + - po/ko.po -'translation/pt-BR': -- po/pt-BR.po +"translation/pt-BR": + - po/pt-BR.po -'translation/ru': -- po/ru.po +"translation/ru": + - po/ru.po -'translation/tr': -- po/tr.po +"translation/tr": + - po/tr.po -'translation/zh-CN': -- po/zh-CN.po +"translation/zh-CN": + - po/zh-CN.po -'translation/zh-TW': -- po/zh-TW.po +"translation/zh-TW": + - po/zh-TW.po - -'translation/fa': -- po/fa.po +"translation/fa": + - po/fa.po diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 7c555754f66..ffb8098beb3 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,6 +1,6 @@ name: "Pull Request Labeler" on: -- pull_request_target + - pull_request_target jobs: triage: @@ -9,6 +9,6 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 - with: - sync-labels: true + - uses: actions/labeler@v4 + with: + sync-labels: true diff --git a/dprint.json b/dprint.json index a1994883d98..a1dbde40056 100644 --- a/dprint.json +++ b/dprint.json @@ -13,6 +13,7 @@ "excludes": [ "/book/", "/src/", + "/theme/*.hbs", "/third_party/", "target/" ], @@ -20,6 +21,7 @@ "https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072", "https://plugins.dprint.dev/json-0.17.4.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" ] } diff --git a/theme/css/language-picker.css b/theme/css/language-picker.css index ad1de7116d7..1553ed68fe8 100644 --- a/theme/css/language-picker.css +++ b/theme/css/language-picker.css @@ -3,7 +3,7 @@ right: 10px; } -[dir=rtl] #language-list { +[dir="rtl"] #language-list { left: 10px; right: auto; } diff --git a/theme/speaker-notes.js b/theme/speaker-notes.js index a3a7d2105a8..eefbac42318 100644 --- a/theme/speaker-notes.js +++ b/theme/speaker-notes.js @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -(function() { +(function () { let notes = document.querySelector("details"); // Create an unattached DOM node for the code below. if (!notes) { @@ -32,7 +32,7 @@ // Update the window. This shows/hides controls as necessary for regular and // speaker note pages. - function applyState() { + function applyState() { if (window.location.hash == "#speaker-notes-open") { if (getState() != "popup") { markDefunct(); @@ -116,9 +116,11 @@ setState("popup"); applyState(); } 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"); popOutIcon.classList.add("fa", "fa-external-link"); popOut.append(popOutIcon); @@ -179,9 +181,11 @@ } // Update prev/next buttons to keep speaker note state. - document.querySelectorAll('a[rel="prev"], a[rel="next"]').forEach((elem) => { - elem.href += "#speaker-notes-open"; - }); + document + .querySelectorAll('a[rel="prev"], a[rel="next"]') + .forEach((elem) => { + elem.href += "#speaker-notes-open"; + }); } let timeout = null;