Changeset 3246


Ignore:
Timestamp:
Apr 16, 2007, 4:12:23 PM (15 years ago)
Author:
Martin Svensson
Message:

The output files of docbook will be sorted into subdirectories and figures now has a relative uri

Location:
trunk
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/src/docbook/admindoc/adding_user_group_roles.xml

    r3242 r3246  
    2828
    2929<chapter id="adding_user_group_roles">
    30 <!--  <?dbhtml dir="adding_user_group_roles"?> -->
     30  <?dbhtml dir="adding_user_group_roles"?>
    3131  <title>Adding users, groups and roles</title>
    3232    <sect1>
  • trunk/doc/src/docbook/admindoc/index.xml

    r3242 r3246  
    2727-->
    2828<part id="admindoc">
    29   <!-- <?dbhtml dir="admindoc"?> -->
     29  <?dbhtml dir="admindoc"?>
    3030  <title>Admin documentation</title>
    3131  <include file="installation_upgrade.xml"/>
  • trunk/doc/src/docbook/admindoc/installation_upgrade.xml

    r3242 r3246  
    2828
    2929<chapter id="installation_upgrade">
    30   <!-- <?dbhtml dir="installation_upgrade"?> -->
     30  <?dbhtml dir="installation_upgrade"?>
    3131
    3232  <title>Installation, migration, and upgrade instructions</title>
  • trunk/doc/src/docbook/admindoc/plugin_installation.xml

    r3242 r3246  
    2828
    2929<chapter id="plugin_installation">
    30   <!--<?dbhtml dir="plugin_installation"?> -->
     30  <?dbhtml dir="plugin_installation"?>
    3131  <title id="plugin_installation.title">Installing plugins</title>
    3232
  • trunk/doc/src/docbook/developerdoc/api_overview.xml

    r3242 r3246  
    2828
    2929<chapter id="api_overview">
    30   <!-- <?dbhtml dir="api"?> -->
     30  <?dbhtml dir="api"?>
    3131  <title>API overview (how to use and code examples)</title>
    3232    <sect1>
  • trunk/doc/src/docbook/developerdoc/base_overview.xml

    r3242 r3246  
    2828
    2929<chapter id="base_develop_overview">
    30   <!-- <?dbhtml dir="develop_overview"?> -->
     30  <?dbhtml dir="develop_overview"?>
    3131  <title>Overview of BASE2</title>
    3232    <sect1>
  • trunk/doc/src/docbook/developerdoc/core_ref.xml

    r3242 r3246  
    2828
    2929<chapter id="core_ref">
    30   <!-- <?dbhtml dir="core_ref"?> -->
     30  <?dbhtml dir="core_ref"?>
    3131  <title>Core developer reference</title>
    3232    <sect1>
  • trunk/doc/src/docbook/developerdoc/index.xml

    r3242 r3246  
    2727-->
    2828<part id="developerdoc">
    29   <!-- <?dbhtml dir="developerdoc"?> -->
     29  <?dbhtml dir="developerdoc"?>
    3030  <title>Developer documentation</title>
    3131  <include file="base_overview.xml"/>
  • trunk/doc/src/docbook/developerdoc/javadoc.xml

    r3242 r3246  
    2828
    2929<chapter id="javadoc">
    30   <!-- <?dbhtml dir="javadoc"?> -->
     30  <?dbhtml dir="javadoc"?>
    3131  <title>Javadoc</title>
    3232    <sect1>
  • trunk/doc/src/docbook/developerdoc/plugin_developer.xml

    r3242 r3246  
    2828
    2929<chapter id="plugin_developer">
    30   <!-- <?dbhtml dir="plugin_developer"?> -->
     30  <?dbhtml dir="plugin_developer"?>
    3131  <title>Plugin developer</title>
    3232  <sect1 id="plugin_developer.organize">
  • trunk/doc/src/docbook/developerdoc/write_docbook_doc.xml

    r3242 r3246  
    2828
    2929<chapter id="write_docbook_doc">
    30   <!-- <?dbhtml dir="write_doc"?> -->
     30  <?dbhtml dir="write_doc"?>
    3131  <title>Write documentation</title>
    3232  <para>
  • trunk/doc/src/docbook/overviewdoc/base_overview.xml

    r3242 r3246  
    2828
    2929<chapter id="base_overview">
    30   <!-- <?dbhtml dir="overview"?> -->
     30  <?dbhtml dir="overview"?>
    3131  <title>Overview of BASE2</title>
    3232    <sect1>
  • trunk/doc/src/docbook/overviewdoc/index.xml

    r3242 r3246  
    2727-->
    2828<part id="overviewdoc">
    29   <!-- <?dbhtml dir="overviewdoc"?> -->
     29  <?dbhtml dir="overviewdoc"?>
    3030  <title>Overview</title>
    3131  <include file="why_base.xml"/>
  • trunk/doc/src/docbook/overviewdoc/why_base.xml

    r3242 r3246  
    2828
    2929<chapter id="why_base">
    30   <!-- <?dbhtml dir="why_base"?> -->
     30  <?dbhtml dir="why_base"?>
    3131  <title>Why use BASE2</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/about.xml

    r3242 r3246  
    2828
    2929<chapter id="about">
    30   <!-- <?dbhtml dir="about"?> -->
     30  <?dbhtml dir="about"?>
    3131  <title>About this part</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/annotations.xml

    r3242 r3246  
    2828
    2929<chapter id="annotations">
    30   <!-- <?dbhtml dir="annotations"?> -->
     30  <?dbhtml dir="annotations"?>
    3131  <title>Annotations</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/array_lims.xml

    r3242 r3246  
    2828
    2929<chapter id="array_lims">
    30   <!-- <?dbhtml dir="array_lims"?> -->
     30  <?dbhtml dir="array_lims"?>
    3131  <title>Array LIMS</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/biomaterials.xml

    r3242 r3246  
    2828
    2929<chapter id="biomaterials">
    30   <!-- <?dbhtml dir="biomaterials"?> -->
     30  <?dbhtml dir="biomaterials"?>
    3131  <title>Biomaterials</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/experiments_analysis.xml

    r3242 r3246  
    2828
    2929<chapter id="experiments_analysis">
    30   <!-- <?dbhtml dir="analysis"?> -->
     30  <?dbhtml dir="analysis"?>
    3131  <title>Experiments and analysis</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/file_system.xml

    r3242 r3246  
    2828
    2929<chapter id="file_system">
    30   <!-- <?dbhtml dir="filesystem"?> -->
     30  <?dbhtml dir="filesystem"?>
    3131  <title>File management</title>
    3232  <sect1 id="file_system.system">
  • trunk/doc/src/docbook/userdoc/hardware.xml

    r3242 r3246  
    2828
    2929<chapter id="hardware">
    30   <!-- <?dbhtml dir="hardware"?> -->
     30  <?dbhtml dir="hardware"?>
    3131  <title>Hardware</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/import_export_data.xml

    r3242 r3246  
    2828
    2929<chapter id="import_export_data">
    30   <!-- <?dbhtml dir="import_export"?> -->
     30  <?dbhtml dir="import_export"?>
    3131  <title>Import and export of data</title>
    3232  <para>
  • trunk/doc/src/docbook/userdoc/index.xml

    r3242 r3246  
    2727-->
    2828<part id="userdoc">
    29   <!-- <?dbhtml dir="userdoc"?> -->
     29  <?dbhtml dir="userdoc"?>
    3030  <title>User documentation</title>
    3131  <include file= "about.xml"/>
  • trunk/doc/src/docbook/userdoc/jobs.xml

    r3242 r3246  
    2828
    2929<chapter id="jobs">
    30   <!-- <?dbhtml dir="jobs"?> -->
     30  <?dbhtml dir="jobs"?>
    3131  <title>Jobs</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/project_permission.xml

    r3245 r3246  
    2828
    2929<chapter id="project_permission">
    30   <!-- <?dbhtml dir="project_permission"?> -->
     30  <?dbhtml dir="project_permission"?>
    3131  <title>Projects and the permission system</title>
    3232    <sect1 id="project_permission.introduction">
  • trunk/doc/src/docbook/userdoc/protocols.xml

    r3242 r3246  
    2828
    2929<chapter id="protocols">
    30   <!-- <?dbhtml dir="protocols"?> -->
     30  <?dbhtml dir="protocols"?>
    3131  <title>Protocols</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/reporters.xml

    r3242 r3246  
    2828
    2929<chapter id="reporters">
    30   <!-- <?dbhtml dir="reporter"?> -->
     30  <?dbhtml dir="reporter"?>
    3131  <title>Reporters</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/software.xml

    r3242 r3246  
    2828
    2929<chapter id="software">
    30 <!-- <?dbhtml dir="software"?> --> 
     30  <?dbhtml dir="software"?>
    3131  <title>Software</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/trashcan.xml

    r3242 r3246  
    2828
    2929<chapter id="trashcan">
    30 <!-- <?dbhtml dir="trashcan"?> --> 
     30  <?dbhtml dir="trashcan"?>
    3131  <title>Trashcan</title>
    3232    <sect1>
  • trunk/doc/src/docbook/userdoc/webclient.xml

    r3245 r3246  
    2828
    2929<chapter id="webclient">
    30   <!-- <?dbhtml dir="webclient"?> -->
     30  <?dbhtml dir="webclient"?>
    3131  <title>Using the web client</title>
    3232    <sect1 id="webclient.introduction">
  • trunk/lib/docbook/custom-styles/docbook/plain/xsl/customized.chunked.xsl

    r3242 r3246  
    2525<xsl:param name="admon.graphics.extension">.gif</xsl:param>
    2626<xsl:param name="admonition.title.properties">text-align: left</xsl:param>
     27
     28<xsl:param name="keep.relative.image.uris" select="false"/>
    2729
    2830<xsl:param name="use.id.as.filename" select="1"/>
     
    111113</xsl:template>
    112114
     115  <xsl:template name="convertpath">
     116    <xsl:param name="path" select="''" />
     117    <xsl:choose>
     118      <xsl:when test="contains($path, '/')">
     119        <xsl:text>../</xsl:text>
     120        <xsl:call-template name="convertpath">
     121          <xsl:with-param name="path" select="substring-after($path, '/')" />
     122        </xsl:call-template>
     123      </xsl:when>
     124    </xsl:choose>
     125  </xsl:template>
     126
     127  <xsl:template name="pathtorootdir">
     128    <xsl:variable name="dir">
     129      <xsl:call-template name="dbhtml-dir">
     130        <xsl:with-param name="context" select="." />
     131      </xsl:call-template>
     132    </xsl:variable>
     133    <xsl:call-template name="convertpath">
     134      <xsl:with-param name="path" select="$dir" />
     135    </xsl:call-template>
     136  </xsl:template>
     137
     138  <xsl:template name="output.html.stylesheets">
     139    <xsl:param name="stylesheets" select="''" />
     140    <xsl:variable name="pathtorootdir">
     141      <xsl:call-template name="pathtorootdir" />
     142    </xsl:variable>
     143    <xsl:choose>
     144      <xsl:when test="contains($stylesheets, ' ')">
     145        <link rel="stylesheet"
     146          href="{substring-before(concat($pathtorootdir, $stylesheets), ' ')}">
     147          <xsl:if test="$html.stylesheet.type != ''">
     148            <xsl:attribute name="type">
     149              <xsl:value-of select="$html.stylesheet.type" />
     150            </xsl:attribute>
     151          </xsl:if>
     152        </link>
     153        <xsl:call-template name="output.html.stylesheets">
     154          <xsl:with-param name="stylesheets" select="substring-after($stylesheets, ' ')" />
     155        </xsl:call-template>
     156      </xsl:when>
     157      <xsl:when test="$stylesheets != ''">
     158        <link rel="stylesheet" href="{concat($pathtorootdir,$stylesheets)}">
     159          <xsl:if test="$html.stylesheet.type != ''">
     160            <xsl:attribute name="type">
     161              <xsl:value-of select="$html.stylesheet.type" />
     162            </xsl:attribute>
     163          </xsl:if>
     164        </link>
     165      </xsl:when>
     166    </xsl:choose>
     167  </xsl:template>
     168 
     169  <xsl:template name="admon.graphic">
     170    <xsl:param name="node" select="." />
     171    <xsl:variable name="pathtorootdir">
     172      <xsl:call-template name="pathtorootdir"/>
     173    </xsl:variable>
     174    <xsl:value-of select="concat($pathtorootdir, $admon.graphics.path)" />
     175    <xsl:choose>
     176      <xsl:when test="local-name($node)='note'">note</xsl:when>
     177      <xsl:when test="local-name($node)='warning'">warning</xsl:when>
     178      <xsl:when test="local-name($node)='caution'">caution</xsl:when>
     179      <xsl:when test="local-name($node)='tip'">tip</xsl:when>
     180      <xsl:when test="local-name($node)='important'">important</xsl:when>
     181      <xsl:otherwise>note</xsl:otherwise>
     182    </xsl:choose>
     183    <xsl:value-of select="$admon.graphics.extension" />
     184  </xsl:template>
     185
    113186</xsl:stylesheet>
    114187
Note: See TracChangeset for help on using the changeset viewer.