[38441] trunk/doc-new

raimue at macports.org raimue at macports.org
Sun Jul 20 09:12:28 PDT 2008


Revision: 38441
          http://trac.macosforge.org/projects/macports/changeset/38441
Author:   raimue at macports.org
Date:     2008-07-20 09:12:27 -0700 (Sun, 20 Jul 2008)
Log Message:
-----------
doc-new:
Add xsl files for single-page and chunk, they both include base. Options can be
changed and added there.

Modified Paths:
--------------
    trunk/doc-new/Makefile

Added Paths:
-----------
    trunk/doc-new/guide/resources/base.xsl
    trunk/doc-new/guide/resources/chunk.xsl
    trunk/doc-new/guide/resources/single-page.xsl

Property Changed:
----------------
    trunk/doc-new/guide/resources/

Modified: trunk/doc-new/Makefile
===================================================================
--- trunk/doc-new/Makefile	2008-07-20 16:08:58 UTC (rev 38440)
+++ trunk/doc-new/Makefile	2008-07-20 16:12:27 UTC (rev 38441)
@@ -14,6 +14,7 @@
 MKDIR    = /bin/mkdir
 CP       = /bin/cp
 RM       = /bin/rm
+LN	 = /bin/ln
 SED      = /usr/bin/sed
 TCLSH    = /usr/bin/tclsh
 XSLTPROC = $(PREFIX)/bin/xsltproc
@@ -34,23 +35,13 @@
 
 # Path to the docbook xsl files.
 DOCBOOK         = $(PREFIX)/share/xsl/docbook-xsl
-GUIDE-XSL       = $(DOCBOOK)/xhtml/profile-docbook.xsl
-GUIDE-XSL-CHUNK = $(DOCBOOK)/xhtml/chunk.xsl
+GUIDE-XSL       = $(GUIDE)/resources/single-page.xsl
+GUIDE-XSL-CHUNK = $(GUIDE)/resources/chunk.xsl
 MAN-XSL         = $(MAN)/resources/macports.xsl
 
 # Docbook html stylesheet for the guide.
 STYLESHEET = docbook.css
-# Additional parameters for the guide.
-STRINGPARAMS = --stringparam html.stylesheet $(STYLESHEET) \
-	             --stringparam section.autolabel 1 \
-	             --stringparam toc.section.depth 1 \
-	             --stringparam generate.toc "book toc" \
-	             --stringparam section.label.includes.component.label 1 \
-	             --stringparam profile.condition "noman"
-# Additional parameters for the chunked guide.
-STRINGPARAMS-CHUNK = --stringparam chunk.section.depth 0
 
-
 .PHONY: all guide man clean validate
 
 all: guide man
@@ -60,7 +51,8 @@
 	$(MKDIR) -p $(GUIDE-RESULT)
 	$(CP) $(GUIDE)/resources/$(STYLESHEET) $(GUIDE-RESULT)/$(STYLESHEET)
 	$(CP) $(GUIDE)/resources/images/* $(GUIDE-RESULT)/
-	$(XSLTPROC) --xinclude $(STRINGPARAMS) \
+	$(LN) -sfh $(DOCBOOK) $(GUIDE)/resources/xsl
+	$(XSLTPROC) --xinclude \
 	    --output $(GUIDE-RESULT)/index.html \
 	    $(GUIDE-XSL) $(GUIDE-SRC)/guide.xml
 	# Convert all sections (h1-h9) to a link so it's easy to link to them.
@@ -74,7 +66,8 @@
 	$(MKDIR) -p $(GUIDE-RESULT-CHUNK)
 	$(CP) $(GUIDE)/resources/$(STYLESHEET) $(GUIDE-RESULT-CHUNK)/$(STYLESHEET)
 	$(CP) $(GUIDE)/resources/images/* $(GUIDE-RESULT-CHUNK)/
-	$(XSLTPROC) --xinclude $(STRINGPARAMS) $(STRINGPARAMS-CHUNK) \
+	$(LN) -sfh $(DOCBOOK) $(GUIDE)/resources/xsl
+	$(XSLTPROC) --xinclude \
 	    --output $(GUIDE-RESULT-CHUNK)/index.html \
 	    $(GUIDE-XSL-CHUNK) $(GUIDE-SRC)/guide.xml
 	# Convert all sections (h1-h9) to a link so it's easy to link to them.
@@ -111,6 +104,7 @@
 
 # Remove all temporary files generated by guide: and man:.
 clean:
+	$(RM) -rf $(GUIDE)/resources/xsl
 	$(RM) -rf $(GUIDE-RESULT)
 	$(RM) -rf $(MAN-RESULT)
 	$(RM) -rf $(MAN-TMP)


Property changes on: trunk/doc-new/guide/resources
___________________________________________________________________
Name: svn:ignore
   + xsl


Added: trunk/doc-new/guide/resources/base.xsl
===================================================================
--- trunk/doc-new/guide/resources/base.xsl	                        (rev 0)
+++ trunk/doc-new/guide/resources/base.xsl	2008-07-20 16:12:27 UTC (rev 38441)
@@ -0,0 +1,12 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+
+    <!-- See http://docbook.sourceforge.net/release/xsl/current/doc/html/ for parameters -->
+
+    <xsl:param name="html.stylesheet">docbook.css</xsl:param>
+    <xsl:param name="section.autolabel">1</xsl:param>
+    <xsl:param name="toc.section.depth">1</xsl:param>
+    <xsl:param name="generate.toc">book toc</xsl:param>
+    <xsl:param name="section.label.includes.component.label">1</xsl:param>
+    <xsl:param name="profile.condition">noman</xsl:param>
+
+</xsl:stylesheet>

Added: trunk/doc-new/guide/resources/chunk.xsl
===================================================================
--- trunk/doc-new/guide/resources/chunk.xsl	                        (rev 0)
+++ trunk/doc-new/guide/resources/chunk.xsl	2008-07-20 16:12:27 UTC (rev 38441)
@@ -0,0 +1,12 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+    <xsl:import href="xsl/xhtml/chunk.xsl"/>
+    <xsl:include href="base.xsl"/>
+
+    <!-- See http://docbook.sourceforge.net/release/xsl/current/doc/html/ for parameters -->
+
+    <!-- Additional parameters for the chunked guide. -->
+    <xsl:param name="chunk.first.sections">0</xsl:param>
+    <xsl:param name="chunk.section.depth">1</xsl:param>
+    <xsl:param name="use.id.as.filename">1</xsl:param>
+
+</xsl:stylesheet>

Added: trunk/doc-new/guide/resources/single-page.xsl
===================================================================
--- trunk/doc-new/guide/resources/single-page.xsl	                        (rev 0)
+++ trunk/doc-new/guide/resources/single-page.xsl	2008-07-20 16:12:27 UTC (rev 38441)
@@ -0,0 +1,6 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+    <xsl:import href="xsl/xhtml/profile-docbook.xsl"/>
+    <xsl:include href="base.xsl"/>
+
+    <!-- See http://docbook.sourceforge.net/release/xsl/current/doc/html/ for parameters -->
+</xsl:stylesheet>


Property changes on: trunk/doc-new/guide/resources/single-page.xsl
___________________________________________________________________
Name: svn:mergeinfo
   + 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080720/f8220e16/attachment-0001.html 


More information about the macports-changes mailing list