Tidying up based on first contact with R maintainers.
authorGreg Wilson <gvwilson@third-bit.com>
Tue, 21 Jun 2016 19:26:09 +0000 (15:26 -0400)
committerGreg Wilson <gvwilson@third-bit.com>
Tue, 21 Jun 2016 19:26:09 +0000 (15:26 -0400)
1.  Renaming Ruby file to use underscore in name (consistent with other `bin` scripts).
2.  Generating `_includes/all_figures.html` for the first time when creating a new lesson.

Makefile
bin/lesson_initialize.py
bin/markdown_ast.rb [moved from bin/markdown-ast.rb with 100% similarity]

index b645947d9f34955d659f7f9e1dde7e7451324712..154203a48540e7740050ba58feae0f8983aea6d1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
 # Settings
 MAKEFILES=Makefile $(wildcard *.mk)
 JEKYLL=jekyll
+PARSER=bin/markdown_ast.rb
 DST=_site
 
 # Controls
@@ -24,7 +25,7 @@ site :
 
 ## figures        : re-generate inclusion displaying all figures.
 figures :
-       @bin/extract_figures.py -s _episodes -p bin/markdown-ast.rb > _includes/all_figures.html
+       @bin/extract_figures.py -s _episodes -p ${PARSER} > _includes/all_figures.html
 
 ## clean          : clean up junk files.
 clean :
@@ -71,7 +72,7 @@ HTML_FILES = \
 
 ## lesson-check   : validate lesson Markdown.
 lesson-check :
-       @bin/lesson_check.py -s . -p bin/markdown-ast.rb
+       @bin/lesson_check.py -s . -p ${PARSER}
 
 unittest :
        python bin/test_lesson_check.py
index cfd8f6f6cc795213b6c0cfb970c483a253cd9b45..f3955e00717eb4c3b254b77527d535961c39c37b 100755 (executable)
@@ -315,6 +315,10 @@ permalink: /guide/
 FIXME
 '''
 
+INCLUDES_ALL_FIGURES_HTML = '''\
+<!-- empty -->
+'''
+
 BOILERPLATE = (
     ('AUTHORS', ROOT_AUTHORS),
     ('CITATION', ROOT_CITATION),
@@ -327,7 +331,8 @@ BOILERPLATE = (
     ('_extras/about.md', EXTRAS_ABOUT_MD),
     ('_extras/discuss.md', EXTRAS_DISCUSS_MD),
     ('_extras/figures.md', EXTRAS_FIGURES_MD),
-    ('_extras/guide.md', EXTRAS_GUIDE_MD)
+    ('_extras/guide.md', EXTRAS_GUIDE_MD),
+    ('_includes/all_figures.html', INCLUDES_ALL_FIGURES_HTML)
 )
 
 
similarity index 100%
rename from bin/markdown-ast.rb
rename to bin/markdown_ast.rb