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 a4ed53d commit 189309a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .puppeteer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"executablePath": "/usr/bin/chromium-browser"
}
13 changes: 8 additions & 5 deletions build-resources-with-pandoc.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
#!/bin/sh
set -e

ROOT_DIR=`pwd`
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 add --update chromium
node -v
npm -v
chromium-browser --version
export PUPPETEER_SKIP_DOWNLOAD='true'
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export MERMAID_FILTER_PUPPETEER_CONFIG="${ROOT_DIR}/.puppeteer.json"
export PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
# export MERMAID_FILTER_FORMAT='svg'
npm i -g [email protected]

ROOT_DIR=`pwd`
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"

# Java
cd ${ROOT_DIR}/documents/forJava
Expand Down
4 changes: 0 additions & 4 deletions documents/forGitBranch/.puppeteer.json

This file was deleted.

0 comments on commit 189309a

Please sign in to comment.