diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | tools/faq_chunks.xsl | 76 |
3 files changed, 94 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2009-08-12 Petr Kovar <pknbe@volny.cz> + + * Makefile: Add the 'faq_chunks.xsl' stylesheet. + * tools/faq_chunks.xsl: Add chunk stylesheet for FAQ. + 2009-08-11 Petr Kovar <pknbe@volny.cz> * ChangeLog: Add the file. @@ -7,7 +7,7 @@ # ###################################################################### # -# TARGET_TYPE is used to defined the target for the doc to build: +# TARGET_TYPE is used to define the target for the doc to build: # either with images, for the web site (TARGET_TYPE=WEB) or without # any screenshot (to generate the doc to include in the Sylpheed # distribution). @@ -24,13 +24,19 @@ # build in the command line of the make. Examples: # # 'make manual' => will make the manual in all languages. -# 'make manual/en' => Will build the english manual. -# 'make faq/en faq/es' => Will build the english and spanish FAQ. -# 'make faq/en manual/en' => Will build the english FAQ and manual. +# 'make manual/en' => Will build the English manual. +# 'make faq/en faq/es' => Will build the English and Spanish FAQ. +# 'make faq/en manual/en' => Will build the English FAQ and manual. # ###################################################################### # # $Log: Makefile,v $ +# Revision 1.6 2009/08/12 19:37:33 pknbe +# Makefile: Add the 'faq_chunks.xsl' stylesheet. tools/faq_chunks.xsl: Add chunk stylesheet for FAQ. +# +# Revision 1.6 2009/08/12 17:25:00 pknbe +# Added the 'faq_chunks.xsl' stylesheet +# # Revision 1.5 2005/06/21 20:29:32 fbarriere # Changed the Makefile to the new DocBook version of the doc # @@ -52,7 +58,7 @@ # # Final result type: WEB (with images and original names), -# or any other value for a version using he file names +# or any other value for a version using the file names # that fits the Sylpheed code and without the images. # TARGET_TYPE := WEB @@ -120,6 +126,7 @@ SCREENSHOTS := $(addprefix $(HTML_DIR)/,$(shell ls */*/$(SHOTS_DIR)/*png)) # Java and DocBook setup: # include $(ROOT_DIR)/setup.mk +#include $(ROOT_DIR)/setup.mk.fc # # XSLT stylesheets: @@ -127,6 +134,7 @@ include $(ROOT_DIR)/setup.mk CHUNKS_STYLESHEET := $(ROOT_DIR)/tools/user_guide_chunks.xsl SINGLE_STYLESHEET := $(ROOT_DIR)/tools/user_guide.xsl FO_PDF_STYLESHEET := $(ROOT_DIR)/tools/user_guide_fo.xsl +FAQ_CHUNKS_STYLESHEET := $(ROOT_DIR)/tools/faq_chunks.xsl HTML_STYLESHEET := sylpheeddoc.css # diff --git a/tools/faq_chunks.xsl b/tools/faq_chunks.xsl new file mode 100644 index 0000000..5b5abec --- /dev/null +++ b/tools/faq_chunks.xsl @@ -0,0 +1,76 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version='1.0'> + +<!-- Import original style sheet: chunk.xsl (multi-page) or docbook.xsl (one page) --> + + <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl"/> + +<!-- ****************************************************************** + - + - Load the common customization for HTML: + - + - ****************************************************************** + --> + + <xsl:include href="user_guide_common.xsl"/> + <!-- xsl:include href="faq_common.xsl"/ --> + <!-- xsl:include href="html_titlepage.xsl"/ --> + + <xsl:param name="page.margin.top">10in</xsl:param> + <xsl:param name="page.margin.bottom">10in</xsl:param> + <xsl:param name="page.margin.inner">10in</xsl:param> + <xsl:param name="page.margin.outer">10in</xsl:param> + + <xsl:param name="generate.legalnotice.link" select="0"/> + +<!-- ****************************************************************** + - + - Chunks specific customization: + - + - ****************************************************************** + --> + +<!-- Generate a message for each chunked file --> + +<xsl:param name="chunk.quietly" select="0"/> + +<!-- New top-level file name: index.html is reserved for the index --> + +<xsl:param name="root.filename" select="'sylpheed-faq'"/> + +<!-- Yes we use the chunker: splits the output into several files. --> + +<xsl:param name="using.chunker" select="0"/> + +<!-- Chunk only the first level of chapter/sections --> + +<xsl:param name="chunk.section.depth" select="0"/> + +<!-- Generate a separate chunk for the first element of each section --> + +<xsl:param name="chunk.first.sections" select="1"/> + +<!-- Do not use the ID as filename: they contain forbidden chars --> + +<xsl:param name="use.id.as.filename" select="'1'"/> + +<!-- Use the following extension for output files: .html --> + +<xsl:param name="html.ext" select="'.html'"/> + +<!-- Generate extra HEAD links for Mozilla --> + +<xsl:param name="html.extra.head.links" select="1"/> + +<!-- Do not use graphics in navigation headers/footers --> + +<xsl:param name="navig.graphics" select="0"/> +<xsl:param name="navig.graphics.extension" select="'.png'"/> +<xsl:param name="navig.graphics.path">images/</xsl:param> + +<!-- Show next and previous sections titles in nav bars --> + +<xsl:param name="navig.showtitles">1</xsl:param> + +</xsl:stylesheet> |