marp: handle theme for build-slides

This commit is contained in:
Glenn Y. Rolland 2021-12-06 12:22:19 +01:00
parent 3bb91fa2b0
commit 5d60e2043d
2 changed files with 3 additions and 2 deletions

View file

@ -144,7 +144,7 @@ serve-docs: watch-docs
tocupdate: tocupdate:
pipenv run ./scripts/update-toc $(DOCS_DIR) ; \ pipenv run ./scripts/update-toc $(DOCS_DIR) ; \
$(BUILD_SLIDES_DIR)/%.pdf: $(CACHE_SLIDES_DIR)/%.mdpp.md | $(BUILD_SLIDES_DIR) $(BUILD_SLIDES_DIR)/%.pdf: $(CACHE_SLIDES_DIR)/%.mdpp.md | $(BUILD_SLIDES_DIR) .marp/theme.css
npx marp --allow-local-files \ npx marp --allow-local-files \
--engine $$(pwd)/.marp/engine.js \ --engine $$(pwd)/.marp/engine.js \
--html \ --html \
@ -152,7 +152,7 @@ $(BUILD_SLIDES_DIR)/%.pdf: $(CACHE_SLIDES_DIR)/%.mdpp.md | $(BUILD_SLIDES_DIR)
$< \ $< \
-o $@ -o $@
$(BUILD_SLIDES_DIR)/%.pdf: $(SLIDES_DIR)/%.md | $(BUILD_SLIDES_DIR) $(BUILD_SLIDES_DIR)/%.pdf: $(SLIDES_DIR)/%.md | $(BUILD_SLIDES_DIR) .marp/theme.css
npx marp --allow-local-files \ npx marp --allow-local-files \
--engine $$(pwd)/.marp/engine.js \ --engine $$(pwd)/.marp/engine.js \
--html \ --html \

View file

@ -19,6 +19,7 @@ fi
if [ -d "_build" ]; then if [ -d "_build" ]; then
chown -R "$EXT_UID:$EXT_GID" _build chown -R "$EXT_UID:$EXT_GID" _build
chown -R "$EXT_UID:$EXT_GID" .marp
fi fi
if [ "$1" = "shell" ]; then if [ "$1" = "shell" ]; then