- ‘#printable.rb#’
- ‘.#printable.rb’ / ‘printable.rb’
This commit is contained in:
parent
cd523483a6
commit
fec0e9b700
3 changed files with 1 additions and 21 deletions
|
@ -1,19 +0,0 @@
|
||||||
#!/usr/local/bin/ruby
|
|
||||||
#
|
|
||||||
# dokuwiki -> pdf conversion for futurist fieldguide
|
|
||||||
|
|
||||||
repo="/home/nik/pandoc/futurist-fieldguide/"
|
|
||||||
doku="/var/www/libarynth/dokuwiki/data/pages/futurist_fieldguide/"
|
|
||||||
user="www-data"
|
|
||||||
|
|
||||||
# Dir['*.txt']
|
|
||||||
|
|
||||||
file=ARGV(0) # dokuwiki pagenme/basename as argument
|
|
||||||
|
|
||||||
# parse dokuwiki -> html
|
|
||||||
|
|
||||||
`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html`
|
|
||||||
|
|
||||||
# convert html -> pdf with pandoc
|
|
||||||
|
|
||||||
`pandoc /tmp/#{file}.html -S --template=#{repo}/templates/fieldguide.tex --include-in-header=#{repo}/header.tex --latex-engine=xelatex -o #{repo}/print/#{file}.pdf`
|
|
|
@ -1 +0,0 @@
|
||||||
zzk@vrt.local.322
|
|
|
@ -8,7 +8,7 @@ user="www-data"
|
||||||
|
|
||||||
# Dir['*.txt']
|
# Dir['*.txt']
|
||||||
|
|
||||||
file=ARGV # dokuwiki pagenme/basename as argument
|
file=ARGV[0] # dokuwiki pagenme/basename as argument
|
||||||
|
|
||||||
# parse dokuwiki -> html
|
# parse dokuwiki -> html
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue