From 9a2c653277bc29889404ffb96fa47f9445a6ceaa Mon Sep 17 00:00:00 2001 From: fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> Date: Wed, 10 Jan 2007 03:17:37 +0000 Subject: [PATCH] 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 --- Makefile | 3 ++- web/Makefile | 2 +- web/config.xsl | 9 +++++++++ web/demos | 4 ++-- web/docbook.css | 29 +++++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 web/config.xsl create mode 100644 web/docbook.css diff --git a/Makefile b/Makefile index f714d731a..d9508c95d 100644 --- a/Makefile +++ b/Makefile @@ -381,13 +381,14 @@ website: $(MAIN) html sed -e 's/@WINDOWS_PKG_NAME@/$(win_pkg_name)/g' | \ sed -e 's/@VERSION@/$(VERSION)/g' > $(web_dest)/index.txt; \ cp $(web_src)/features.txt $(web_dest)/ ; \ - ./$(MAIN) -s -w latex README > $(web_dest)/README.tex ; \ cp $(web_src)/myheader.tex $(web_dest)/ ; \ cp $(web_src)/S5DEMO $(web_dest)/ ; \ cp $(web_src)/header.html $(web_dest)/ ; \ cp $(web_src)/footer.html $(web_dest)/ ; \ cp $(web_src)/mkdemos.pl $(web_dest)/ ; \ cp $(web_src)/demos $(web_dest)/ ; \ + cp $(web_src)/docbook.css $(web_dest)/ ; \ + cp $(web_src)/config.xsl $(web_dest)/ ; \ cp $(web_src)/Makefile $(web_dest)/ ; \ PANDOC_PATH=$(shell pwd) make -C $(web_dest) ; \ ) || { rm -rf $(web_dest); exit 1; } 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 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + version="1.0"> + <xsl:param name="use.id.as.filename" select="'1'"/> + <xsl:param name="admon.graphics" select="'1'"/> + <xsl:param name="admon.graphics.path"></xsl:param> + <xsl:param name="html.stylesheet" select="'../docbook.css'"/> +</xsl:stylesheet> 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; +} + +