====
codeprep README => chapter file generator using nodejs.
this script generates chapter & playground templates.
- nodejs >= 7.10
- type
codeprep_gen
where beingREADME.md
, then generateschapter*.md
andbook.yml
if there isn't.
# book title (first line will be ignored so you can use same `#`delimiter)
# chapter1 title
## 1-1 title
comment
## 1-2
...
# chapter2 title
## 2-2
...
# Playground
git clone https://github.com/koka831/codeprep_contents_generator
// export path & CODEPREP_TEMPLATE_PATH
export ${current_dir}:$PATH
export CODEPREP_TEMPLATE_PATH=${current_dir}
// install deps
npm install
./src/*.md
: template files- generator.js
input_title_delimiter
: (default: "#")- identifier of book title. for first line;
input_chapter_delimiter
: (default: "#")- identifier of chapter title.
input_section_delimiter
: (default: "##")- identifier of section title.
output_chapter_delimiter
: (default: "#")- chapters' title header in output files.
output_section_delimiter
: (default: "##")- sections' title header in output files.
ignore_firstline
: (default: true)
- add book.yml generator (7/9)
- add comment support on each sections (7/9)