File tree Expand file tree Collapse file tree 3 files changed +60
-0
lines changed
Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,9 @@ cryptopunks.csv
1010# skip temporary files for testing only
1111/tmp /
1212
13+
14+ # ##
15+ # add build (output) directory
16+ /build
17+
18+
Original file line number Diff line number Diff line change 1+ # Build Scripts Notes
2+
3+ let's try to build a pdf booklet via pandoc (and latex)
4+
5+
6+
7+
8+
9+
10+
11+ ## misc(ellaneous)
12+
13+ - [ ] add (auto-generated) table of contents
14+
15+
16+ ## tooling
17+
18+ requires pandoc, and latex (install via miktex on windows)
19+
20+
Original file line number Diff line number Diff line change 1+ ###########
2+ # to run use:
3+ # $ ruby script/build.rb
4+
5+
6+
7+ chapters = [
8+ '01_crop.md' ,
9+ '02_attributes.md' ,
10+ '03_generate.md'
11+ ]
12+
13+
14+ pp chapters
15+
16+ pandoc = 'c:\prg\pandoc3.1.11.1\pandoc.exe'
17+
18+ cmd = "#{ pandoc } #{ chapters . join ( ' ' ) } "
19+ # cmd += "--extract-media build "
20+
21+ # cmd += "--table-of-contents "
22+ # cmd += "--toc-depth 3 "
23+
24+ cmd += "--standalone "
25+ cmd += "-o build/book.tex"
26+ pp cmd
27+
28+
29+ puts "==> calling #{ cmd } ..."
30+
31+ system ( cmd )
32+
33+ puts "bye"
34+
You can’t perform that action at this time.
0 commit comments