From 9a2c653277bc29889404ffb96fa47f9445a6ceaa Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Wed, 10 Jan 2007 03:17:37 +0000 Subject: 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 --- web/Makefile | 2 +- web/config.xsl | 9 +++++++++ web/demos | 4 ++-- web/docbook.css | 29 +++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 web/config.xsl create mode 100644 web/docbook.css (limited to 'web') diff --git a/web/Makefile b/web/Makefile index ece37e8a0..b713a05fe 100644 --- a/web/Makefile +++ b/web/Makefile @@ -10,7 +10,7 @@ clean: for file in $(ALL); do rm $$file; done; \ rm -r example*; -examples.txt : $(PANDOC_DEPS) mkdemos.pl +examples.txt : $(PANDOC_DEPS) mkdemos.pl config.xsl S5DEMO README PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@ %.html : %.txt $(PANDOC_DEPS) diff --git a/web/config.xsl b/web/config.xsl new file mode 100644 index 000000000..a4436e24c --- /dev/null +++ b/web/config.xsl @@ -0,0 +1,9 @@ + + + + + + + diff --git a/web/demos b/web/demos index de427df26..899944eb6 100644 --- a/web/demos +++ b/web/demos @@ -21,7 +21,7 @@ click on the name of the output file: 5. From LaTeX to markdown: -@ pandoc -s README.tex -o example5.txt +@ pandoc -s example4.tex -o example5.txt 6. reStructuredText: @@ -41,7 +41,7 @@ click on the name of the output file: 10. Chunked XHTML via DocBook and [xmlto]: -@ xmlto xhtml example9.db -o example10/ +@ xmlto -m config.xsl xhtml example9.db -o example10/ 11. ODF (open document format) via DocBook and [docbook2odf]: diff --git a/web/docbook.css b/web/docbook.css new file mode 100644 index 000000000..bf58461d5 --- /dev/null +++ b/web/docbook.css @@ -0,0 +1,29 @@ +body { + font-family: Verdana, sans-serif; +} + +.screen { + font-family: monospace; + font-size: 1em; + display: block; + padding: 10px; + border: 1px solid #bbb; + background-color: #eee; + color: #000; + overflow: auto; + border-radius: 2.5px; + -moz-border-radius: 2.5px; + margin: 0.5em 2em; +} + +a { + text-decoration: none; + border-bottom: 1px dotted #000; +} + +a:hover { + background-color: #777; + color: #fff; +} + + -- cgit v1.2.3