Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Dec 25, 2024
1 parent 71e01f4 commit fc37f1c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions build-resources-with-pandoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@ 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"

# バージョンチェック
cat /etc/alpine-release

apk update
apk add nodejs npm

# apkによるインストール
## chromium のインストール
apk add --update chromium

npm install n -g
n stable
## nodejs(v18) のインストール
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.17/main nodejs~=18 npm

# バージョンチェック
node -v
npm -v
chromium-browser --version

# mermaid-filterに必要な変数をセット
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD='true'
export MERMAID_FILTER_PUPPETEER_CONFIG="${ROOT_DIR}/.puppeteer.json"
export PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium-browser"
echo $PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
echo $MERMAID_FILTER_PUPPETEER_CONFIG
echo $PUPPETEER_EXECUTABLE_PATH
npm i -g [email protected]

# mermaid-filterのインストール
npm i -g [email protected]

# Java
cd ${ROOT_DIR}/documents/forJava
Expand Down

0 comments on commit fc37f1c

Please sign in to comment.