From f8f0b0f5bbfeab837c77f304c1112b0d96ab7c0c Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Fri, 14 Jul 2023 11:47:08 +0200 Subject: [PATCH 1/3] cjk compliant font family --- .github/workflows/gh-pages.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6ce299419..4078f6b15 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -63,6 +63,16 @@ jobs: env: DEFAULT_LANGUAGE_ONLY: false + - name: Inject meta data to ensure proper font rendering for some translations + run: | + if [[ -d site/jp ]] + then + echo -e "social:\n cards_layout_options:\n font_family: Noto Sans JP" > site/jp/.meta.yml + echo "Successfully injected meta data into Japanese translation." + else + echo "Japanse translations not found among $(ls). Skipping this step." + fi + - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4.2.2 with: From fa71a1e56fb903da5b6ab8a156b78bab3b5caefa Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Fri, 15 Sep 2023 18:53:58 +0200 Subject: [PATCH 2/3] typo --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4078f6b15..e5a398e7f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -70,7 +70,7 @@ jobs: echo -e "social:\n cards_layout_options:\n font_family: Noto Sans JP" > site/jp/.meta.yml echo "Successfully injected meta data into Japanese translation." else - echo "Japanse translations not found among $(ls). Skipping this step." + echo "Japanese translations not found among $(ls). Skipping this step." fi - name: Deploy to GitHub Pages From 044ad28170ac57ba8d901246adecb00f566d9cb6 Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Fri, 15 Sep 2023 19:07:41 +0200 Subject: [PATCH 3/3] typos, format --- .github/workflows/gh-pages.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e5a398e7f..a14be821a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -65,12 +65,14 @@ jobs: - name: Inject meta data to ensure proper font rendering for some translations run: | - if [[ -d site/jp ]] + if [[ -d site/ja ]] then - echo -e "social:\n cards_layout_options:\n font_family: Noto Sans JP" > site/jp/.meta.yml + echo -e "social:\n cards_layout_options:\n font_family: Noto Sans JP" > site/ja/.meta.yml echo "Successfully injected meta data into Japanese translation." else - echo "Japanese translations not found among $(ls). Skipping this step." + echo "*** Japanese translations not found in:" + echo "$(ls site)" + echo "*** Skipping this step." fi - name: Deploy to GitHub Pages