Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Mar 3, 2024
1 parent 276ef7b commit 8c56220
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ cryptopunks.csv
# skip temporary files for testing only
/tmp/


###
# add build (output) directory
/build


20 changes: 20 additions & 0 deletions script/NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Build Scripts Notes

let's try to build a pdf booklet via pandoc (and latex)







## misc(ellaneous)

- [ ] add (auto-generated) table of contents


## tooling

requires pandoc, and latex (install via miktex on windows)


34 changes: 34 additions & 0 deletions script/build.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
###########
# to run use:
# $ ruby script/build.rb



chapters = [
'01_crop.md',
'02_attributes.md',
'03_generate.md'
]


pp chapters

pandoc = 'c:\prg\pandoc3.1.11.1\pandoc.exe'

cmd = "#{pandoc} #{chapters.join( ' ')} "
# cmd += "--extract-media build "

# cmd += "--table-of-contents "
# cmd += "--toc-depth 3 "

cmd += "--standalone "
cmd += "-o build/book.tex"
pp cmd


puts "==> calling #{cmd}..."

system( cmd )

puts "bye"

0 comments on commit 8c56220

Please sign in to comment.