git.iko.soy/typeable/pandoc
on master help sign in
More website changes. Include demo of docbook postprocessed

by xmlto. git-svn-id: https://pandoc.googlecode.com/svn/trunk@486 788f1e2b-df1e-0410-8736-df70ead52e1b

commit8d4a1ed0395116f9503d1058c36bdbc1cd61bbc5 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 9 Jan 2007, 20:42 (20 years ago) parentc80f181
3 files changed+20−9
web/Makefile+9−3 web/index.txt+6−3 web/mkdemos.sh+5−3
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
2−
1+ALL := index.html osx-notes.html README.html INSTALL.html features.html changelog.html examples.html
32PANDOC_PATH ?= $(dir $(shell which pandoc))
43MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -B header.html -A footer.html -H css
54PANDOC_DEPS = header.html footer.html css
65
6+all : $(ALL)
7+
8+.PHONY: clean
9+clean:
10+ for file in $(ALL); do rm $$file; done; \
11+ rm -r example*;
12+
713examples.txt : $(PANDOC_DEPS) mkdemos.sh
8− ./mkdemos.sh . $$PANDOC_PATH > $@
14+ ./mkdemos.sh . $(PANDOC_PATH) > $@
915
1016%.html : %.txt $(PANDOC_DEPS)
1117 $(MAKEPAGE) $< > $@
web/index.txt+6−3
@@ -47,9 +47,12 @@ which are not included in the Windows binary package.
4747[Cygwin]: http://www.cygwin.com/
4848 "Cygwin - a linux-like environment for Windows"
4949
50−**Debian packages:** Pandoc will be available soon in the Debian unstable
51−package repository, thanks to the efforts of Recai Oktaş. Watch this
52−space for details.
50+**Debian linux package:** [`pandoc_0.3_i386.deb`] (thanks to Recai Oktaş).
51+To install, download the file and type:
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
5356
5457**Repository:** Pandoc has a publicly accesible subversion repository
5558at 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
2525S5 HTML slide show (all in one file):
2626pandoc -s -m -i -w s5 S5DEMO -o example0.html
2727Docbook 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/
2931Converting a web page to markdown:
3032html2markdown http://www.gnu.org/software/make/ -o example0.txt
3133From markdown to PDF:
@@ -49,9 +51,9 @@ click on the name of the output file:
4951num=0
5052while [ $# -gt 0 ]; do
5153 description="$1"
52− command="$2"
54+ lastnum=$num
5355 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/")
5557 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
5658 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
5759 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')