From 4387a60f9542235ec4fd65034ca43f506af8813d Mon Sep 17 00:00:00 2001 From: piti6 Date: Mon, 29 Jun 2026 17:16:25 +0900 Subject: [PATCH] fix web highlight build config --- articles/config-epub-jp.yml | 2 -- articles/config-web-en.yml | 6 ++++++ articles/config-web-jp.yml | 6 ++++++ build-web.sh | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 articles/config-web-en.yml create mode 100644 articles/config-web-jp.yml diff --git a/articles/config-epub-jp.yml b/articles/config-epub-jp.yml index 561ebb6..c11183d 100644 --- a/articles/config-epub-jp.yml +++ b/articles/config-epub-jp.yml @@ -469,8 +469,6 @@ pdfmaker: # という構成にする必要がある(インデントさせる) # webmaker: - highlight: - html: "rouge" stylesheet: ["style.css", "style-web.css"] # TechBooster Re:VIEW-Template独自設定 diff --git a/articles/config-web-en.yml b/articles/config-web-en.yml new file mode 100644 index 0000000..a9b7507 --- /dev/null +++ b/articles/config-web-en.yml @@ -0,0 +1,6 @@ +# Web版(英語)用の上書き設定 + +inherit: ["config-epub-en.yml"] + +highlight: + html: "rouge" diff --git a/articles/config-web-jp.yml b/articles/config-web-jp.yml new file mode 100644 index 0000000..549e619 --- /dev/null +++ b/articles/config-web-jp.yml @@ -0,0 +1,6 @@ +# Web版用の上書き設定 + +inherit: ["config-epub-jp.yml"] + +highlight: + html: "rouge" diff --git a/build-web.sh b/build-web.sh index 366a283..fb97973 100755 --- a/build-web.sh +++ b/build-web.sh @@ -9,12 +9,12 @@ mkdir -p "$OUTDIR/ja" "$OUTDIR/en" # Build Japanese echo "=== Building Japanese ===" -REVIEW_CONFIG_FILE=config-epub-jp.yml npx grunt web +REVIEW_CONFIG_FILE=config-web-jp.yml npx grunt web cp -r "$WEBROOT/"* "$OUTDIR/ja/" # Build English echo "=== Building English ===" -REVIEW_CONFIG_FILE=config-epub-en.yml npx grunt web +REVIEW_CONFIG_FILE=config-web-en.yml npx grunt web cp -r "$WEBROOT/"* "$OUTDIR/en/" # Generate search indices