git.iko.soy/typeable/pandoc
on master help sign in
More website tweaks. Added demo of extra xsl configuration

and CSS in chunked xhtml produced from docbook. git-svn-id: https://pandoc.googlecode.com/svn/trunk@489 788f1e2b-df1e-0410-8736-df70ead52e1b

commit9a2c653277bc29889404ffb96fa47f9445a6ceaa authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 10 Jan 2007, 03:17 (20 years ago) parent3528c72
5 files changed+43−4
Makefile+2−1 web/Makefile+1−1 web/config.xsl+9 web/demos+2−2 web/docbook.css+29
Makefile+2−1
@@ -381,13 +381,14 @@ website: $(MAIN) html
381381 sed -e 's/@WINDOWS_PKG_NAME@/$(win_pkg_name)/g' | \
382382 sed -e 's/@VERSION@/$(VERSION)/g' > $(web_dest)/index.txt; \
383383 cp $(web_src)/features.txt $(web_dest)/ ; \
384− ./$(MAIN) -s -w latex README > $(web_dest)/README.tex ; \
385384 cp $(web_src)/myheader.tex $(web_dest)/ ; \
386385 cp $(web_src)/S5DEMO $(web_dest)/ ; \
387386 cp $(web_src)/header.html $(web_dest)/ ; \
388387 cp $(web_src)/footer.html $(web_dest)/ ; \
389388 cp $(web_src)/mkdemos.pl $(web_dest)/ ; \
390389 cp $(web_src)/demos $(web_dest)/ ; \
390+ cp $(web_src)/docbook.css $(web_dest)/ ; \
391+ cp $(web_src)/config.xsl $(web_dest)/ ; \
391392 cp $(web_src)/Makefile $(web_dest)/ ; \
392393 PANDOC_PATH=$(shell pwd) make -C $(web_dest) ; \
393394 ) || { rm -rf $(web_dest); exit 1; }
web/Makefile+1−1
@@ -10,7 +10,7 @@ clean:
1010 for file in $(ALL); do rm $$file; done; \
1111 rm -r example*;
1212
13−examples.txt : $(PANDOC_DEPS) mkdemos.pl
13+examples.txt : $(PANDOC_DEPS) mkdemos.pl config.xsl S5DEMO README
1414 PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
1515
1616%.html : %.txt $(PANDOC_DEPS)
web/config.xslnew file+9
@@ -0,0 +1,9 @@
1+<?xml version='1.0'?>
2+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
4+ version="1.0">
5+ <xsl:param name="use.id.as.filename" select="'1'"/>
6+ <xsl:param name="admon.graphics" select="'1'"/>
7+ <xsl:param name="admon.graphics.path"></xsl:param>
8+ <xsl:param name="html.stylesheet" select="'../docbook.css'"/>
9+</xsl:stylesheet>
web/demos+2−2
@@ -21,7 +21,7 @@ click on the name of the output file:
2121
22225. From LaTeX to markdown:
2323
24−@ pandoc -s README.tex -o example5.txt
24+@ pandoc -s example4.tex -o example5.txt
2525
26266. reStructuredText:
2727
@@ -41,7 +41,7 @@ click on the name of the output file:
4141
424210. Chunked XHTML via DocBook and [xmlto]:
4343
44−@ xmlto xhtml example9.db -o example10/
44+@ xmlto -m config.xsl xhtml example9.db -o example10/
4545
464611. ODF (open document format) via DocBook and [docbook2odf]:
4747
web/docbook.cssnew file+29
@@ -0,0 +1,29 @@
1+body {
2+ font-family: Verdana, sans-serif;
3+}
4+
5+.screen {
6+ font-family: monospace;
7+ font-size: 1em;
8+ display: block;
9+ padding: 10px;
10+ border: 1px solid #bbb;
11+ background-color: #eee;
12+ color: #000;
13+ overflow: auto;
14+ border-radius: 2.5px;
15+ -moz-border-radius: 2.5px;
16+ margin: 0.5em 2em;
17+}
18+
19+a {
20+ text-decoration: none;
21+ border-bottom: 1px dotted #000;
22+}
23+
24+a:hover {
25+ background-color: #777;
26+ color: #fff;
27+}
28+
29+