Skip to content

Commit

Permalink
Tidying up based on first contact with R maintainers.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gvwilson committed Jun 21, 2016
1 parent 9c447b8 commit 600e4a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Settings
MAKEFILES=Makefile $(wildcard *.mk)
JEKYLL=jekyll
PARSER=bin/markdown_ast.rb
DST=_site

# Controls
Expand All @@ -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 :
Expand Down Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion bin/lesson_initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@
FIXME
'''

INCLUDES_ALL_FIGURES_HTML = '''\
<!-- empty -->
'''

BOILERPLATE = (
('AUTHORS', ROOT_AUTHORS),
('CITATION', ROOT_CITATION),
Expand All @@ -327,7 +331,8 @@
('_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)
)


Expand Down
File renamed without changes.

0 comments on commit 600e4a3

Please sign in to comment.