marp: handle theme for build-slides
This commit is contained in:
parent
3bb91fa2b0
commit
5d60e2043d
2 changed files with 3 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -144,7 +144,7 @@ serve-docs: watch-docs
|
|||
tocupdate:
|
||||
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 \
|
||||
--engine $$(pwd)/.marp/engine.js \
|
||||
--html \
|
||||
|
@ -152,7 +152,7 @@ $(BUILD_SLIDES_DIR)/%.pdf: $(CACHE_SLIDES_DIR)/%.mdpp.md | $(BUILD_SLIDES_DIR)
|
|||
$< \
|
||||
-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 \
|
||||
--engine $$(pwd)/.marp/engine.js \
|
||||
--html \
|
||||
|
|
|
@ -19,6 +19,7 @@ fi
|
|||
|
||||
if [ -d "_build" ]; then
|
||||
chown -R "$EXT_UID:$EXT_GID" _build
|
||||
chown -R "$EXT_UID:$EXT_GID" .marp
|
||||
fi
|
||||
|
||||
if [ "$1" = "shell" ]; then
|
||||
|
|
Loading…
Reference in a new issue