git.iko.soy/typeable/pandoc
on master help sign in
More website changes. Include demo of docbook postprocessed
8d4a1edfiddlosopher
web/Makefile+9−3
@@ -1,11 +1,17 @@
1−all: index.html osx-notes.html README.html INSTALL.html features.html changelog.html examples.html
1+ALL := index.html osx-notes.html README.html INSTALL.html features.html changelog.html examples.html
2−
3PANDOC_PATH ?= $(dir $(shell which pandoc))
2PANDOC_PATH ?= $(dir $(shell which pandoc))
4MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -B header.html -A footer.html -H css
3MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -B header.html -A footer.html -H css
5PANDOC_DEPS = header.html footer.html css
4PANDOC_DEPS = header.html footer.html css
6
5
6+all : $(ALL)
7+
8+.PHONY: clean
9+clean:
10+ for file in $(ALL); do rm $$file; done; \
11+ rm -r example*;
12+
7examples.txt : $(PANDOC_DEPS) mkdemos.sh
13examples.txt : $(PANDOC_DEPS) mkdemos.sh
8− ./mkdemos.sh . $$PANDOC_PATH > $@
14+ ./mkdemos.sh . $(PANDOC_PATH) > $@
9
15
10%.html : %.txt $(PANDOC_DEPS)
16%.html : %.txt $(PANDOC_DEPS)
11 $(MAKEPAGE) $< > $@
17 $(MAKEPAGE) $< > $@
web/index.txt+6−3
@@ -47,9 +47,12 @@ which are not included in the Windows binary package.
47[Cygwin]: http://www.cygwin.com/
47[Cygwin]: http://www.cygwin.com/
48 "Cygwin - a linux-like environment for Windows"
48 "Cygwin - a linux-like environment for Windows"
49
49
50−**Debian packages:** Pandoc will be available soon in the Debian unstable
50+**Debian linux package:** [`pandoc_0.3_i386.deb`] (thanks to Recai Oktaş).
51−package repository, thanks to the efforts of Recai Oktaş. Watch this
51+To install, download the file and type:
52−space for details.
52+
53+ sudo dpkg -i pandoc_0.3_i386.deb
54+
55+[`pandoc_0.3_i386.deb`]: http://people.debian.org/~roktas/packages/pandoc_0.3_i386.deb
53
56
54**Repository:** Pandoc has a publicly accesible subversion repository
57**Repository:** Pandoc has a publicly accesible subversion repository
55at Google Code (<http://code.google.com/p/pandoc>). To check out the
58at Google Code (<http://code.google.com/p/pandoc>). To check out the
web/mkdemos.sh+5−3
@@ -25,7 +25,9 @@ pandoc -s README -o example0.rtf
25S5 HTML slide show (all in one file):
25S5 HTML slide show (all in one file):
26pandoc -s -m -i -w s5 S5DEMO -o example0.html
26pandoc -s -m -i -w s5 S5DEMO -o example0.html
27Docbook XML:
27Docbook XML:
28−pandoc -s -w docbook README -o example0.db
28+pandoc -s -S -w docbook README -o example0.db
29+Chunked XHTML via Docbook and the third-party `xmlto` tool:
30+xmlto xhtml example(-1).db -o example0/
29Converting a web page to markdown:
31Converting a web page to markdown:
30html2markdown http://www.gnu.org/software/make/ -o example0.txt
32html2markdown http://www.gnu.org/software/make/ -o example0.txt
31From markdown to PDF:
33From markdown to PDF:
@@ -49,9 +51,9 @@ click on the name of the output file:
49num=0
51num=0
50while [ $# -gt 0 ]; do
52while [ $# -gt 0 ]; do
51 description="$1"
53 description="$1"
52− command="$2"
54+ lastnum=$num
53 num=$(($num + 1))
55 num=$(($num + 1))
54− command=$(echo $command | sed -e "s/0/$num/")
56+ command=$(echo $2 | sed -e "s/0/$num/" -e "s/(-1)/$lastnum/")
55 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
57 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
56 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
58 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
57 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
59 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')