diff options
author | Lars Thorsen <[email protected]> | 2011-01-26 13:59:43 +0100 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2012-11-16 12:04:36 +0100 |
commit | e0743cceb681604d134e6d026fee50479cfb009b (patch) | |
tree | a87748af6e5f8a09a35f86f18590e5e52946910f /lib/erl_docgen/priv/xsl/db_html.xsl | |
parent | 7e7d5d522f1a46d7bdda3980f6e9c5649a35eca6 (diff) | |
download | otp-e0743cceb681604d134e6d026fee50479cfb009b.tar.gz otp-e0743cceb681604d134e6d026fee50479cfb009b.tar.bz2 otp-e0743cceb681604d134e6d026fee50479cfb009b.zip |
A possibility to configure erl_docgen so it can generate documentation for other products than Erlang/OTP.
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_html.xsl')
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_html.xsl | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index 4bc5abb364..609f5b7497 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -578,8 +578,22 @@ <xsl:param name="curModule"/> <html> <head> - <link rel="stylesheet" href="{$topdocdir}/otp_doc.css" type="text/css"/> - <title>Erlang -- <xsl:value-of select="header/title"/></title> + <xsl:choose> + <xsl:when test="string-length($stylesheet) > 0"> + <link rel="stylesheet" href="{$topdocdir}/{$stylesheet}" type="text/css"/> + </xsl:when> + <xsl:otherwise> + <link rel="stylesheet" href="{$topdocdir}/otp_doc.css" type="text/css"/> + </xsl:otherwise> + </xsl:choose> + <xsl:choose> + <xsl:when test="string-length($winprefix) > 0"> + <title><xsl:value-of select="$winprefix"/> -- <xsl:value-of select="header/title"/></title> + </xsl:when> + <xsl:otherwise> + <title>Erlang -- <xsl:value-of select="header/title"/></title> + </xsl:otherwise> + </xsl:choose> </head> <body bgcolor="white" text="#000000" link="#0000ff" vlink="#ff00ff" alink="#ff0000"> @@ -719,7 +733,14 @@ <xsl:template name="menu_top"> - <img alt="Erlang logo" src="{$topdocdir}/erlang-logo.png"/> + <xsl:choose> + <xsl:when test="string-length($logo) > 0"> + <img alt="Erlang logo" src="{$topdocdir}/{$logo}"/> + </xsl:when> + <xsl:otherwise> + <img alt="Erlang logo" src="{$topdocdir}/erlang-logo.png"/> + </xsl:otherwise> + </xsl:choose> <br/> <small> <xsl:if test="boolean(/book/parts/part)"> |