Changeset 48743 for trunk/doc-new


Ignore:
Timestamp:
Mar 28, 2009, 2:55:10 AM (10 years ago)
Author:
raimue@…
Message:

guide:
Provide a small tab in the upper right corner to switch between the single page
and the chunked version of the guide. Build both versions by default.

Location:
trunk/doc-new
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/Makefile

    r40918 r48743  
    4343STYLESHEET = docbook.css
    4444
    45 .PHONY: all guide man clean validate
     45.PHONY: all guide guide-chunked man clean validate
    4646
    47 all: guide man
     47all: guide guide-chunked man
    4848
    4949# Generate the HTML guide using DocBook from the XML sources in $(GUIDE_SRC).
  • trunk/doc-new/guide/resources/chunk.xsl

    r38441 r48743  
    22    <xsl:import href="xsl/xhtml/chunk.xsl"/>
    33    <xsl:include href="base.xsl"/>
     4    <!-- Include tab switching for chunk and single-page -->
     5    <xsl:include href="tabs.xsl"/>
    46
    57    <!-- See http://docbook.sourceforge.net/release/xsl/current/doc/html/ for parameters -->
     
    1012    <xsl:param name="use.id.as.filename">1</xsl:param>
    1113
     14    <!-- Set param for tabs.xml -->
     15    <xsl:param name="chunkmode">1</xsl:param>
    1216</xsl:stylesheet>
  • trunk/doc-new/guide/resources/docbook.css

    r46684 r48743  
    209209} */
    210210
     211/* Tabswitch for single page/chunked */
     212div#tabswitch {
     213    position: absolute;
     214    top: 0;
     215    right: 0;
     216    background-color: #9FB6CD;
     217    border: 1px solid black;
     218}
     219
     220div#tabswitch a {
     221    padding: 0.3em;
     222    line-height: 2em;
     223}
     224
     225div#tabswitch a.selected {
     226    font-weight: bold;
     227}
     228
     229div#tabswitch a:link {
     230    color: royalblue;
     231    text-decoration: none;
     232}
     233
     234div#tabswitch a:hover {
     235    color: gray;
     236}
     237
     238div#tabswitch a:visited {
     239    color: black;
     240    text-decoration: none;
     241}
  • trunk/doc-new/guide/resources/single-page.xsl

    r38441 r48743  
    22    <xsl:import href="xsl/xhtml/profile-docbook.xsl"/>
    33    <xsl:include href="base.xsl"/>
     4    <!-- Include tab switching for chunk and single-page -->
     5    <xsl:include href="tabs.xsl"/>
    46
    57    <!-- See http://docbook.sourceforge.net/release/xsl/current/doc/html/ for parameters -->
     8
     9    <!-- Set param for tabs.xml -->
     10    <xsl:param name="chunkmode">0</xsl:param>
    611</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.