feature: Add auto-generated deck 'autoslide'

This commit is contained in:
Glenn Y. Rolland 2022-06-20 12:04:10 +02:00
parent 68b8128aaa
commit b56d7c4d20
2 changed files with 13 additions and 1 deletions

View file

@ -117,6 +117,17 @@ $(CACHE_SLIDES_DIR)/%.mdpp.md: $(SLIDES_DIR)/%.mdpp
watch: ## run development server
pipenv run honcho start
autoslide:
find $(DOCS_DIR) -regextype sed -regex '.*/[0-9][^/]*\.md' -print0 \
| sort -z |xargs -0 cat \
> $(SLIDES_DIR)/autoslide.md
watch-autoslide-internal:
while inotifywait -q -e move -e modify -e create -e attrib -e delete -e moved_to -r $(DOCS_DIR) ; do \
sleep 0.25 ; \
$(MAKE) autoslide ; \
done
watch-tocupdate-internal:
while inotifywait -q -e move -e modify -e create -e attrib -e delete -e moved_to -r docs ; do \
sleep 2 ; \
@ -136,7 +147,7 @@ watch-slides-internal: .marp/theme.css
-s
watch-slides: ## run development server for PDF slides
pipenv run honcho start slides
pipenv run honcho start slides autoslide
watch-docs: ## run development server for static docs site
pipenv run honcho start docs toc

View file

@ -1,3 +1,4 @@
docs: make watch-docs-internal
slides: make watch-slides-internal
toc: make watch-tocupdate-internal
autoslide: make watch-autoslide-internal