Documentation Tools
Changeset 208
- Timestamp:
- 08/26/07 16:59:31 (5 years ago)
- Location:
- trunk
- Files:
-
- 9 added
- 4 edited
- 8 moved
-
Mk/docbook.mk (modified) (3 diffs)
-
themes (added)
-
themes/wpi (added)
-
themes/wpi/tex (added)
-
themes/wpi/tex/docs.tex (moved) (moved from trunk/tex/docs.tex)
-
themes/wpi/theme.mk (added)
-
themes/wpi/xhtml (added)
-
themes/wpi/xhtml/common.xsl (moved) (moved from trunk/xsl/common.xsl) (1 diff, 1 prop)
-
themes/wpi/xhtml/docbook.xsl (moved) (moved from trunk/xsl/docbook.xsl) (2 diffs, 1 prop)
-
themes/wpi/xhtml/puredocs.xsl (moved) (moved from trunk/xsl/puredocs.xsl) (2 diffs, 1 prop)
-
themes/wpi/xhtml/resources (moved) (moved from trunk/resources)
-
themes/wpi/xhtml/resources/api.css (modified) (1 diff)
-
themes/wpi/xhtml/resources/api.js (modified) (1 diff)
-
themes/wpi/xhtml/resources/olddoc.css (modified) (3 diffs)
-
themes/wpi/xhtml/xhtml-chunked.xsl (added)
-
themes/wpi/xhtml/xhtml-single.xsl (added)
-
xsl/README (added)
-
xsl/xhtml (added)
-
xsl/xhtml-chunked.xsl (moved) (moved from trunk/xsl/docbook-chunked.xsl) (1 diff)
-
xsl/xhtml-single.xsl (moved) (moved from trunk/xsl/docbook-single.xsl) (1 diff)
-
xsl/xhtml/sanitize.xsl (moved) (moved from trunk/xsl/sanitize.xsl)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mk/docbook.mk
r207 r208 14 14 PDFDIR ?= $(DOCTOOLS_OUTPUT)/pdf 15 15 16 # Themes 17 # These set the default; the selected theme then overrides the various 18 # variables set below, according to its specific needs. Everything else 19 # set in this file are theme-independant defaults to be overriden. 20 # 21 # A theme must always be provided (documents without CSS are not 22 # acceptable!); we default to the supplied WPI theme. 23 # TODO we should default to something bland and generic, instead. 24 THEMEDIR ?= $(DOCTOOLSDIR)/themes 25 THEMENAME ?= wpi 26 THEME ?= $(THEMEDIR)/$(THEMENAME) 27 28 include $(THEME)/theme.mk 29 16 30 # XSLT 17 31 XSLT = xsltproc --xinclude 18 XHTMLSTYLE ?= $(DOCTOOLSDIR)/xsl/ docbook-chunked.xsl19 XHTMLSTYLE_SINGLE ?= $(DOCTOOLSDIR)/xsl/ docbook-single.xsl32 XHTMLSTYLE ?= $(DOCTOOLSDIR)/xsl/xhtml/xhtml-chunked.xsl 33 XHTMLSTYLE_SINGLE ?= $(DOCTOOLSDIR)/xsl/xhtml/xhtml-single.xsl 20 34 TEXMLSTYLE ?= $(DOCTOOLSDIR)/xsl/texml.xsl 21 35 … … 26 40 SOURCE_TEXML = $(NAME)-texml.xml 27 41 SOURCE_TEX = $(NAME).tex 28 TEXDIR ?= $(DOCTOOLSDIR)/tex29 42 30 RESOURCES ?= $(DOCTOOLSDIR)/resources/*.css $(DOCTOOLSDIR)/resources/*.png 31 # TODO rename CSSFILE and TEXFILE to wpi.* 32 CSSFILE ?= docs.css 33 TEXFILE ?= docs.tex 43 # These are placeholders for themes to override. 44 RESOURCES ?= 45 CSSFILE ?= 46 TEXFILE ?= 47 TEXDIR ?= 34 48 35 49 # The intention here is that you can override the TeX customisations, … … 54 68 pdf: $(PDFDIR) $(PDFDIR)/$(SOURCE_TEX) 55 69 # XXX texexec misbehaves unless we cd 56 cd $(PDFDIR) && TEXINPUTS=".:$(TEXDIR):$( TEXINPUTS):" $(TEXEXEC) $(SOURCE_TEX)70 cd $(PDFDIR) && TEXINPUTS=".:$(TEXDIR):$(DOCTOOLSDIR)/tex:$(TEXINPUTS):" $(TEXEXEC) $(SOURCE_TEX) 57 71 58 72 -
trunk/themes/wpi/xhtml/common.xsl
- Property svn:keywords set to Id
r206 r208 1 1 <?xml version='1.0' encoding="UTF-8"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 <!-- $Id$ --> 4 5 <!-- 6 This stylesheet contains WPI-specific XSLT customisations common to all 7 WPI projects, but not specifically to go on the WPI website. In other words, 8 a WPI project may include this for rendering user-facing documents outside 9 of water-powered.com - For example, the customisation for Puredocs API 10 documents may include this. 11 --> 3 12 4 13 <!-- WPI-specific parameters --> 5 <!-- TODO This file should be moved out under some WPI-specific theme directory -->6 14 <xsl:param name="suppress.header.navigation">1</xsl:param> 7 15 <xsl:param name="suppress.footer.navigation">0</xsl:param> -
trunk/themes/wpi/xhtml/docbook.xsl
- Property svn:keywords set to Id
r206 r208 1 1 <?xml version='1.0' encoding="UTF-8"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 <!-- $Id$ --> 4 5 <!-- 6 General docbook WPI-themed customisations. Do not include this file directly; 7 use the xhtml-{chunked,single}.xsl interfaces. 8 9 This file includes WPI-themed things such as the navigation headers, which 10 are only appropiate to documents which are to be placed on the WPI website 11 itself. 12 13 Therefore this may not be applicable to documented generated by specific 14 WPI projects (such as Puredocs). Those projects should provide their own 15 customisations, which may share common.xsl for elements common to both 16 but outside of the navigational headers and other website-specific items. 17 --> 18 3 19 <xsl:import href="common.xsl"/> 4 <xsl:import href="sanitize.xsl"/>5 20 6 21 <xsl:output indent="yes"/> … … 62 77 <div id="footer"> 63 78 <p class="copyright"> 64 Copyright 2005 -2007 <a href="http://ideas.water-powered.com">Water-Powered Ideas</a>79 Copyright 2005, 2006, 2007 <a href="http://ideas.water-powered.com">Water-Powered Ideas</a> 65 80 <br/> 66 81 All Rights Reserved. -
trunk/themes/wpi/xhtml/puredocs.xsl
- Property svn:keywords set to Id
r168 r208 1 1 <?xml version='1.0' encoding="UTF-8"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 <!-- 4 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/> 5 --> 3 <!-- $Id$ --> 4 5 <!-- TODO this should probably be in the puredocs repository, or removed entirely. 6 It's for generating puredocs documentation, which doesn't have the WPI header 7 (i.e. it's aimed at puredocs users) --> 6 8 7 9 <xsl:import href="http://xsl.water-powered.com/puredocs/current/python-browser.xsl"/> 8 10 <xsl:import href="common.xsl"/> 9 <xsl:import href="sanitize.xsl"/> 11 12 <xsl:import href="../../../xsl/xhtml-chunked.xsl"/> 10 13 11 14 <xsl:param name="title"/> … … 35 38 <div id="footer"> 36 39 <p class="copyright"> 37 Copyright 2005 -2007 <a href="http://ideas.water-powered.com">Water-Powered Ideas</a>40 Copyright 2005, 2006, 2007 <a href="http://ideas.water-powered.com">Water-Powered Ideas</a> 38 41 <br/> 39 42 All Rights Reserved. -
trunk/themes/wpi/xhtml/resources/api.css
r144 r208 1 /* 2 * TODO This should probably be moved out into the Puredocs repository. 3 */ 4 1 5 @import url("http://ideas.water-powered.com/css/main.css"); 2 6 -
trunk/themes/wpi/xhtml/resources/api.js
r120 r208 1 /* 2 * TODO This should probably be moved out into the Puredocs repository. 3 */ 4 1 5 function show_elm(elm_id) { 2 6 document.getElementById(elm_id).style.display = 'block'; -
trunk/themes/wpi/xhtml/resources/olddoc.css
r120 r208 83 83 } 84 84 .navfooter { 85 / /border-bottom: 1px solid #E0E0E0;86 / /border-top: 1px solid #E0E0E0;85 /*border-bottom: 1px solid #E0E0E0; */ 86 /*border-top: 1px solid #E0E0E0; */ 87 87 background-color: #EFEFEF; 88 88 border: 1px solid #EFEFEF; 89 89 padding: 0.5em; 90 / / font-size: 90%;90 /* font-size: 90%; */ 91 91 margin: 0; 92 92 } 93 93 .navfooter * td, .navheader * td { 94 / /border: 1px solid #E0E0E0;95 / /border: 1px solid red;94 /*border: 1px solid #E0E0E0; */ 95 /*border: 1px solid red; */ 96 96 padding: 0 1em; 97 97 } … … 126 126 padding: 0; 127 127 border: 0; 128 / / line-height: 1.5em;128 /* line-height: 1.5em; */ 129 129 } 130 130 … … 135 135 } 136 136 td { 137 / /background-color: #EFEFEF;137 /*background-color: #EFEFEF; */ 138 138 } 139 139 -
trunk/xsl/xhtml-chunked.xsl
r197 r208 3 3 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/> 4 4 5 <xsl:import href=" docbook.xsl"/>5 <xsl:import href="xhtml/sanitize.xsl"/> 6 6 7 7 <xsl:template name="body.attributes"> -
trunk/xsl/xhtml-single.xsl
r197 r208 3 3 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> 4 4 5 <xsl:import href=" docbook.xsl"/>5 <xsl:import href="xhtml/sanitize.xsl"/> 6 6 7 7 <xsl:template name="body.attributes">
Note: See TracChangeset
for help on using the changeset viewer.