Skip to content

Commit

Permalink
[erl_docgen] Add possibility to specify pdf filename
Browse files Browse the repository at this point in the history
  • Loading branch information
lthor committed Nov 16, 2012
1 parent 1ed373b commit f019737
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/erl_docgen/priv/xsl/db_html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,14 @@
<xsl:if test="boolean(/book/releasenotes)">
<a href="release_notes.html">Release Notes</a><br/>
</xsl:if>
<a href="{$pdfdir}/{$appname}-{$appver}.pdf">PDF</a><br/>
<xsl:choose>
<xsl:when test="string-length($pdfname) > 0">
<a href="{$pdfdir}/{$pdfname}.pdf">PDF</a><br/>
</xsl:when>
<xsl:otherwise>
<a href="{$pdfdir}/{$appname}-{$appver}.pdf">PDF</a><br/>
</xsl:otherwise>
</xsl:choose>
<a href="{$topdocdir}/index.html">Top</a>
</small>
</xsl:template>
Expand Down
1 change: 1 addition & 0 deletions make/otp_release_targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ $(HTMLDIR)/index.html: $(XML_FILES) $(SPECS_FILES)
--stringparam stylesheet "$(CSS_FILE)" \
--stringparam winprefix "$(WINPREFIX)" \
--stringparam logo "$(HTMLLOGO_FILE)" \
--stringparam pdfname "$(PDFNAME)" \
-path $(DOCGEN)/priv/dtd \
-path $(DOCGEN)/priv/dtd_html_entities \
$(DOCGEN)/priv/xsl/db_html.xsl book.xml
Expand Down

0 comments on commit f019737

Please sign in to comment.