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
This commit is contained in:
parent
3528c72d7e
commit
9a2c653277
5 changed files with 43 additions and 4 deletions
3
Makefile
3
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; }
|
||||
|
|
|
@ -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)
|
||||
|
|
9
web/config.xsl
Normal file
9
web/config.xsl
Normal file
|
@ -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>
|
|
@ -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]:
|
||||
|
||||
|
|
29
web/docbook.css
Normal file
29
web/docbook.css
Normal file
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue