git.iko.soy/typeable/pandoc
on master help sign in
More website tweaks. Added demo of extra xsl configuration
9a2c653fiddlosopher
Makefile+2−1
@@ -381,13 +381,14 @@ website: $(MAIN) html
381 sed -e 's/@WINDOWS_PKG_NAME@/$(win_pkg_name)/g' | \
381 sed -e 's/@WINDOWS_PKG_NAME@/$(win_pkg_name)/g' | \
382 sed -e 's/@VERSION@/$(VERSION)/g' > $(web_dest)/index.txt; \
382 sed -e 's/@VERSION@/$(VERSION)/g' > $(web_dest)/index.txt; \
383 cp $(web_src)/features.txt $(web_dest)/ ; \
383 cp $(web_src)/features.txt $(web_dest)/ ; \
384− ./$(MAIN) -s -w latex README > $(web_dest)/README.tex ; \
385 cp $(web_src)/myheader.tex $(web_dest)/ ; \
384 cp $(web_src)/myheader.tex $(web_dest)/ ; \
386 cp $(web_src)/S5DEMO $(web_dest)/ ; \
385 cp $(web_src)/S5DEMO $(web_dest)/ ; \
387 cp $(web_src)/header.html $(web_dest)/ ; \
386 cp $(web_src)/header.html $(web_dest)/ ; \
388 cp $(web_src)/footer.html $(web_dest)/ ; \
387 cp $(web_src)/footer.html $(web_dest)/ ; \
389 cp $(web_src)/mkdemos.pl $(web_dest)/ ; \
388 cp $(web_src)/mkdemos.pl $(web_dest)/ ; \
390 cp $(web_src)/demos $(web_dest)/ ; \
389 cp $(web_src)/demos $(web_dest)/ ; \
390+ cp $(web_src)/docbook.css $(web_dest)/ ; \
391+ cp $(web_src)/config.xsl $(web_dest)/ ; \
391 cp $(web_src)/Makefile $(web_dest)/ ; \
392 cp $(web_src)/Makefile $(web_dest)/ ; \
392 PANDOC_PATH=$(shell pwd) make -C $(web_dest) ; \
393 PANDOC_PATH=$(shell pwd) make -C $(web_dest) ; \
393 ) || { rm -rf $(web_dest); exit 1; }
394 ) || { rm -rf $(web_dest); exit 1; }
web/Makefile+1−1
@@ -10,7 +10,7 @@ clean:
10 for file in $(ALL); do rm $$file; done; \
10 for file in $(ALL); do rm $$file; done; \
11 rm -r example*;
11 rm -r example*;
12
12
13−examples.txt : $(PANDOC_DEPS) mkdemos.pl
13+examples.txt : $(PANDOC_DEPS) mkdemos.pl config.xsl S5DEMO README
14 PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
14 PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
15
15
16%.html : %.txt $(PANDOC_DEPS)
16%.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:
21
21
225. From LaTeX to markdown:
225. From LaTeX to markdown:
23
23
24−@ pandoc -s README.tex -o example5.txt
24+@ pandoc -s example4.tex -o example5.txt
25
25
266. reStructuredText:
266. reStructuredText:
27
27
@@ -41,7 +41,7 @@ click on the name of the output file:
41
41
4210. Chunked XHTML via DocBook and [xmlto]:
4210. Chunked XHTML via DocBook and [xmlto]:
43
43
44−@ xmlto xhtml example9.db -o example10/
44+@ xmlto -m config.xsl xhtml example9.db -o example10/
45
45
4611. ODF (open document format) via DocBook and [docbook2odf]:
4611. ODF (open document format) via DocBook and [docbook2odf]:
47
47
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+