[svnbook] r4398 committed - * en/book/styles.css...

svnbook at googlecode.com svnbook at googlecode.com
Wed Feb 6 09:39:58 CST 2013


Revision: 4398
Author:   cmpilato at gmail.com
Date:     Wed Feb  6 07:39:43 2013
Log:      * en/book/styles.css
   Style tweaks.

* tools/base-html-stylesheet.xsl
   Disable a bunch of TOCs.  This makes the single-page HTML not have a
   bunch of inline TOCs.

* tools/chunk-stylesheet.xsl
   Try to re-enable certain TOCs here for chunked HTML output that were
   disabled in base-html-stylesheet.xsl.  This ... uh ... doesn't seem
   to work, though.

http://code.google.com/p/svnbook/source/detail?r=4398

Modified:
  /trunk/en/book/styles.css
  /trunk/tools/base-html-stylesheet.xsl
  /trunk/tools/chunk-stylesheet.xsl

=======================================
--- /trunk/en/book/styles.css	Tue Feb  5 13:51:43 2013
+++ /trunk/en/book/styles.css	Wed Feb  6 07:39:43 2013
@@ -85,9 +85,6 @@
  strong {
    font-weight: normal;
  }
-.toc {
-  border-top: 1px solid black;
-}
  .book .toc {
    border: 0px;
  }
@@ -98,6 +95,10 @@
    font-weight: bold;
    color: black;
  }
+.part {
+  margin-top: 10em;
+  margin-bottom: 10em;
+}
  .title {
    font-family: sans-serif;
  }
@@ -226,6 +227,9 @@
  #vcws-header hr, #vcws-footer hr {
    display: none;
  }
+#vcws-footer {
+  margin-top: 1em;
+}

  /* --------------------- */
  /* PRINT MEDIA OVERRIDES */
=======================================
--- /trunk/tools/base-html-stylesheet.xsl	Thu Apr  2 19:45:00 2009
+++ /trunk/tools/base-html-stylesheet.xsl	Wed Feb  6 07:39:43 2013
@@ -17,6 +17,27 @@
    <xsl:param name="callout.graphics" select="1" />
    <xsl:param name="callout.graphics.extension">.png</xsl:param>

+  <!-- Turn off most of the TOC generation.  (For chunked HTML output, -->
+  <!-- we re-enabled some of these in chunk-stylesheet.xsl.)           -->
+  <xsl:param name="generate.toc">
+appendix  nop
+article   nop
+book      toc,title,figure,table,example,equation
+chapter   nop
+part      nop
+preface   nop
+qandadiv  nop
+qandaset  nop
+reference nop
+sect1     nop
+sect2     nop
+sect3     nop
+sect4     nop
+sect5     nop
+section   nop
+set       nop
+  </xsl:param>
+
    <xsl:template match="sect1" mode="toc">
      <xsl:param name="toc-context" select="."/>
      <xsl:call-template name="subtoc">
=======================================
--- /trunk/tools/chunk-stylesheet.xsl	Thu Apr  2 19:45:00 2009
+++ /trunk/tools/chunk-stylesheet.xsl	Wed Feb  6 07:39:43 2013
@@ -18,4 +18,26 @@
    <xsl:param name="chunk.first.sections">1</xsl:param>
    <xsl:param name="chunk.quietly" select="1"></xsl:param>

+  <!-- Override the TOC generation settings in base-stylesheet.xsl, -->
+  <!-- because for chunked HTML output, we want a few more TOCs.    -->
+  <!-- ### FIXME: This override doesn't seem to work!               -->
+  <xsl:param name="generate.toc">
+appendix  toc,title
+article   nop
+book      toc,title,figure,table,example,equation
+chapter   toc
+part      title
+preface   toc,title
+qandadiv  nop
+qandaset  nop
+reference toc,title
+sect1     toc
+sect2     toc
+sect3     nop
+sect4     nop
+sect5     nop
+section   nop
+set       nop
+  </xsl:param>
+
  </xsl:stylesheet>




More information about the svnbook-dev mailing list