-## figures : re-generate inclusion displaying all figures.
-figures :
- @bin/extract_figures.py -s _episodes -p ${PARSER} > _includes/all_figures.html
+# repo-check : check repository settings.
+repo-check :
+ @bin/repo_check.py -s .
@find . -name .DS_Store -exec rm {} \;
@find . -name '*~' -exec rm {} \;
@find . -name '*.pyc' -exec rm {} \;
@find . -name .DS_Store -exec rm {} \;
@find . -name '*~' -exec rm {} \;
@find . -name '*.pyc' -exec rm {} \;
# RMarkdown files
RMD_SRC = $(wildcard _episodes_rmd/??-*.Rmd)
RMD_DST = $(patsubst _episodes_rmd/%.Rmd,_episodes/%.md,$(RMD_SRC))
# Lesson source files in the order they appear in the navigation menu.
# RMarkdown files
RMD_SRC = $(wildcard _episodes_rmd/??-*.Rmd)
RMD_DST = $(patsubst _episodes_rmd/%.Rmd,_episodes/%.md,$(RMD_SRC))
# Lesson source files in the order they appear in the navigation menu.
- @bin/lesson_check.py -s . -p ${PARSER}
+ @bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md
+
+## lesson-check-all : validate lesson Markdown, checking line lengths and trailing whitespace.
+lesson-check-all :
+ @bin/lesson_check.py -s . -p ${PARSER} -l -w
- @echo 'RMarkdown:' ${RMD_SRC}
- @echo 'source:' ${SRC_FILES}
- @echo 'generated:' ${HTML_FILES}
+ @echo 'RMD_SRC:' ${RMD_SRC}
+ @echo 'RMD_DST:' ${RMD_DST}
+ @echo 'MARKDOWN_SRC:' ${MARKDOWN_SRC}
+ @echo 'HTML_DST:' ${HTML_DST}
#-------------------------------------------------------------------------------
# Include extra commands if available.
#-------------------------------------------------------------------------------
# Include extra commands if available.