diff --git a/.github/workflows/GHPages.yml b/.github/workflows/GHPages.yml index 0c8fbd3e..0b20602b 100644 --- a/.github/workflows/GHPages.yml +++ b/.github/workflows/GHPages.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - - uses: docker://pandoc/latex:2.9 + - uses: docker://pandoc/latex:3.6 with: args: | sh build-resources-with-pandoc.sh diff --git a/.github/workflows/test-build-resources-with-pandoc.yml b/.github/workflows/test-build-resources-with-pandoc.yml index 3398838d..61f3d65a 100644 --- a/.github/workflows/test-build-resources-with-pandoc.yml +++ b/.github/workflows/test-build-resources-with-pandoc.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - - uses: docker://pandoc/latex:2.9 + - uses: docker://pandoc/latex:3.6 with: args: sh build-resources-with-pandoc.sh - name: Archive resources diff --git a/build-resources-with-pandoc.sh b/build-resources-with-pandoc.sh index 5f9b4632..0e58d35f 100644 --- a/build-resources-with-pandoc.sh +++ b/build-resources-with-pandoc.sh @@ -3,10 +3,12 @@ CSS_PATH="${ROOT_DIR}/documents/common/pandoc_styles/css/style.css" STYLE_DOCX_PATH="${ROOT_DIR}/documents/common/pandoc_styles/スタイル.docx" RESOURCES_DIR="${ROOT_DIR}/public/resources" -apt update -apt install -y nodejs npm -npm config set puppeteer_skip_chromium_download true -g -npm install -g mermaid-filter +# Install pandoc mermaid-filter via npm +# https://github.com/raghur/mermaid-filter?tab=readme-ov-file#installation-and-usage +apk update +apk add -y --no-cache nodejs npm +export puppeteer_skip_chromium_download=true +npm i -g mermaid-filter # Java cd ${ROOT_DIR}/documents/forJava