Skip to content

Commit 8c56220

Browse files
committed
up
1 parent 276ef7b commit 8c56220

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+

script/NOTES.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+

script/build.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

0 commit comments

Comments
 (0)