# Settings
MAKEFILES=Makefile $(wildcard *.mk)
JEKYLL=jekyll
+JEKYLL_VERSION=3.7.3
PARSER=bin/markdown_ast.rb
DST=_site
commands :
@grep -h -E '^##' ${MAKEFILES} | sed -e 's/## //g'
+## docker-serve : use docker to build the site
+docker-serve :
+ docker run --rm -it -v ${PWD}:/srv/jekyll -p 127.0.0.1:4000:4000 jekyll/jekyll:${JEKYLL_VERSION} make serve
+
## serve : run a local server.
serve : lesson-md
${JEKYLL} serve
index.md \
CONDUCT.md \
setup.md \
- $(wildcard _episodes/*.md) \
+ $(sort $(wildcard _episodes/*.md)) \
reference.md \
- $(wildcard _extras/*.md) \
+ $(sort $(wildcard _extras/*.md)) \
LICENSE.md
# Generated lesson files in the order they appear in the navigation menu.
${DST}/index.html \
${DST}/conduct/index.html \
${DST}/setup/index.html \
- $(patsubst _episodes/%.md,${DST}/%/index.html,$(wildcard _episodes/*.md)) \
+ $(patsubst _episodes/%.md,${DST}/%/index.html,$(sort $(wildcard _episodes/*.md))) \
${DST}/reference/index.html \
- $(patsubst _extras/%.md,${DST}/%/index.html,$(wildcard _extras/*.md)) \
+ $(patsubst _extras/%.md,${DST}/%/index.html,$(sort $(wildcard _extras/*.md))) \
${DST}/license/index.html
## lesson-md : convert Rmarkdown files to markdown
lesson-check-all :
@bin/lesson_check.py -s . -p ${PARSER} -l -w
-## lesson-figures : re-generate inclusion displaying all figures.
-lesson-figures :
- @bin/extract_figures.py -p ${PARSER} ${MARKDOWN_SRC} > _includes/all_figures.html
-
## unittest : run unit tests on checking tools.
unittest :
python bin/test_lesson_check.py