cvs commit: ALFS/docs/syntax_doc/stylesheets alfs-chunked.xsl

jwrober at linuxfromscratch.org jwrober at linuxfromscratch.org
Sat Mar 13 19:27:31 PST 2004


jwrober     04/03/13 20:27:31

  Modified:    docs/syntax_doc Makefile
               docs/syntax_doc/stylesheets alfs-chunked.xsl
  Removed:     docs/syntax_doc make_html.sh
  Log:
  various updates
  
  Revision  Changes    Path
  1.4       +51 -17    ALFS/docs/syntax_doc/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/ALFS/docs/syntax_doc/Makefile,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Makefile	24 Feb 2004 02:37:40 -0000	1.3
  +++ Makefile	14 Mar 2004 03:27:31 -0000	1.4
  @@ -1,39 +1,73 @@
  -BASEDIR=./render/
  +OUTDIR=./output/render/
   XSLROOTDIR=/usr/share/docbook-xsl/
   
   clean:
  -	if [ -e $(BASEDIR) ]; then \
  -	  rm -rf $(BASEDIR); \
  +	if [ -e $(OUTDIR) ]; then \
  +	  rm -rf $(OUTDIR); \
   	fi;
   
   chunks-html:
  -	if [ ! -e $(BASEDIR) ]; then \
  -	  mkdir -p $(BASEDIR); \
  +	if [ ! -e $(OUTDIR) ]; then \
  +	  mkdir -p $(OUTDIR); \
   	fi;
   
  -	if [ ! -e $(BASEDIR)/stylesheets ]; then \
  -	  mkdir -p $(BASEDIR)/stylesheets; \
  +	if [ ! -e $(OUTDIR)stylesheets ]; then \
  +	  mkdir -p $(OUTDIR)stylesheets; \
   	fi;
   
  -	if [ ! -e $(BASEDIR)/images ]; then \
  -	  mkdir -p $(BASEDIR)/images; \
  +	if [ ! -e $(OUTDIR)../stylesheets ]; then \
  +	  mkdir -p $(OUTDIR)../stylesheets; \
   	fi;
   
  +	if [ ! -e $(OUTDIR)images ]; then \
  +	  mkdir -p $(OUTDIR)images; \
  +	fi;
  +
  +	cp index.xml $(OUTDIR)..
  +	cp -R --parents alfs_dtd/* $(OUTDIR)..
  +	cp -R --parents book/* $(OUTDIR)..
  +	cp -R --parents preface/* $(OUTDIR)..
  +
  +	bash stylesheets/entResolver $(OUTDIR)
  +
   	sed -e "s at XSLROOTDIR@$(XSLROOTDIR)@" \
   	  stylesheets/alfs-chunked.xsl \
  -	  > $(BASEDIR)/stylesheets/alfs-chunked.xsl
  +	  > $(OUTDIR)../stylesheets/alfs-chunked.xsl
   
  -	xsltproc --nonet -stringparam base.dir $(BASEDIR) \
  -	  $(BASEDIR)/stylesheets/alfs-chunked.xsl index.xml
  +	xsltproc --nonet -stringparam base.dir $(OUTDIR) \
  +	  $(OUTDIR)../stylesheets/alfs-chunked.xsl \
  +	  $(OUTDIR)../index.xml
   
  -	cp stylesheets/alfs.css $(BASEDIR)/stylesheets
  +	cp stylesheets/alfs.css $(OUTDIR)stylesheets
   
  -	cp $(XSLROOTDIR)/images/*.png \
  -	  $(BASEDIR)/images
  +	cp $(XSLROOTDIR)images/*.png \
  +	  $(OUTDIR)images
   
   	sed -i -e "s at ../stylesheets at stylesheets@" \
  -	  $(BASEDIR)/alfs_dtd.html $(BASEDIR)/index.html $(BASEDIR)/preface.html
  +	  $(OUTDIR)alfs_dtd.html $(OUTDIR)index.html $(OUTDIR)preface.html
   
   	sed -i -e "s at ../images at images@g" \
  -	  $(BASEDIR)/alfs_dtd.html $(BASEDIR)/index.html $(BASEDIR)/preface.html
  +	  $(OUTDIR)alfs_dtd.html $(OUTDIR)index.html $(OUTDIR)preface.html
  +
  +	echo indent-spaces: 2 > $(OUTDIR)tidy.conf
  +	echo wrap: 78 >> $(OUTDIR)tidy.conf
  +	echo tab-size: 8 >> $(OUTDIR)tidy.conf
  +	echo input-encoding: latin1 >> $(OUTDIR)tidy.conf
  +	echo output-encoding: latin1 >> $(OUTDIR)tidy.conf
  +	echo newline: CRLF >> $(OUTDIR)tidy.conf
  +	echo write-back: yes >> $(OUTDIR)tidy.conf
  +	echo markup: yes >> $(OUTDIR)tidy.conf
  +	echo show-warnings: no >> $(OUTDIR)tidy.conf
  +	echo quiet: yes >> $(OUTDIR)tidy.conf
  +	echo indent: yes >> $(OUTDIR)tidy.conf
  +	echo hide-endtags: no >> $(OUTDIR)tidy.conf
  +	echo uppercase-tags: yes >> $(OUTDIR)tidy.conf
  +	echo logical-emphasis: yes >> $(OUTDIR)tidy.conf
  +	echo drop-font-tags: yes >> $(OUTDIR)tidy.conf
  +	echo tidy-mark: no >> $(OUTDIR)tidy.conf
  +	echo numeric-entities: yes >> $(OUTDIR)tidy.conf
  +
  +	bash stylesheets/goTidy $(OUTDIR)
  +	rm $(OUTDIR)tidy.conf
  +
   
  
  
  
  1.2       +58 -1     ALFS/docs/syntax_doc/stylesheets/alfs-chunked.xsl
  
  Index: alfs-chunked.xsl
  ===================================================================
  RCS file: /home/cvsroot/ALFS/docs/syntax_doc/stylesheets/alfs-chunked.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- alfs-chunked.xsl	23 Feb 2004 03:06:40 -0000	1.1
  +++ alfs-chunked.xsl	14 Mar 2004 03:27:31 -0000	1.2
  @@ -1,12 +1,67 @@
   <?xml version='1.0'?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -                version="1.0">
  +	xmlns="http://www.w3.org/1999/xhtml"        
  +	version="1.0">
   
  +<!-- Need to define the root where the XSL stylesheets are installed. -->
     <xsl:import href="XSLROOTDIRxhtml/chunk.xsl"/>
   
  +<!-- Our custom CSS file to make everything look pretty. -->
     <xsl:param name="html.stylesheet" select="'../stylesheets/alfs.css'"/>
  +
  +<!-- Define the encoding for tidy later -->
  +  <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
  +
  +<!-- Generate a clean legal notice link -->
     <xsl:param name="generate.legalnotice.link" select="1"/>
  +  <xsl:template match="legalnotice" mode="titlepage.mode">
  +    <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
  +    <xsl:choose>
  +      <xsl:when test="$generate.legalnotice.link != 0">
  +        <xsl:variable name="filename">
  +          <xsl:call-template name="make-relative-filename">
  +            <xsl:with-param name="base.dir" select="''"/>
  +            <xsl:with-param name="base.name" select="concat($base.dir, 'prologue/legalnotice.html')"/>
  +          </xsl:call-template>
  +        </xsl:variable>
  +        <xsl:variable name="title">
  +          <xsl:apply-templates select="." mode="title.markup"/>
  +        </xsl:variable>
  +        <xsl:element name="a">
  +          <xsl:attribute name="href">
  +            <xsl:value-of select="'prologue/legalnotice.html'"/>
  +          </xsl:attribute>
  +          <xsl:copy-of select="$title"/>
  +        </xsl:element>
  +        <xsl:call-template name="write.chunk">
  +          <xsl:with-param name="filename" select="$filename"/>
  +          <xsl:with-param name="quiet" select="$chunk.quietly"/>
  +          <xsl:with-param name="content">
  +            <html>
  +              <head>
  +                <xsl:call-template name="system.head.content"/>
  +                <xsl:call-template name="head.content"/>
  +                <xsl:call-template name="user.head.content"/>
  +              </head>
  +              <body>
  +                <xsl:call-template name="body.attributes"/>
  +                <div class="{local-name(.)}">
  +                  <xsl:apply-templates mode="titlepage.mode"/>
  +                </div>
  +              </body>
  +            </html>
  +          </xsl:with-param>
  +        </xsl:call-template>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <div class="{local-name(.)}">
  +          <xsl:apply-templates mode="titlepage.mode"/>
  +        </div>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +  </xsl:template>
   
  +<!-- TOC -->
     <xsl:param name="generate.toc">
       appendix  toc
       book      toc,title,figure,table,example,equation
  @@ -24,6 +79,8 @@
       section   nop
       set       nop
     </xsl:param>
  +
     <xsl:param name="toc.section.depth">3</xsl:param>
     <xsl:param name="toc.max.depth">3</xsl:param>
  +
   </xsl:stylesheet>
  
  
  



More information about the alfs-log mailing list