fix: make sure theme.css is present when generating slides

This commit is contained in:
Glenn Y. Rolland 2021-04-15 15:42:45 +02:00
parent f5bdb17939
commit fa29b964f0

View file

@ -84,13 +84,16 @@ images: $(DOCS_IMAGES_SVG) $(DOCS_IMAGES_PNG) ## build images
%.circo.svg: %.circo %.circo.svg: %.circo
circo -Tsvg $< > $@ circo -Tsvg $< > $@
.marp/theme.css:
cd .marp && $(MAKE) theme.css
watch: ## run development server watch: ## run development server
pipenv run honcho start pipenv run honcho start
watch-docs-internal: watch-docs-internal:
pipenv run mkdocs serve --dev-addr 0.0.0.0:$(DOCS_PORT) pipenv run mkdocs serve --dev-addr 0.0.0.0:$(DOCS_PORT)
watch-slides-internal: watch-slides-internal: .marp/theme.css
PORT=$(SLIDES_PORT) \ PORT=$(SLIDES_PORT) \
npx marp \ npx marp \
--engine $$(pwd)/.marp/engine.js \ --engine $$(pwd)/.marp/engine.js \