summaryrefslogtreecommitdiffstats
path: root/docs/manual/style/xsl/common.xsl
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2018-04-07 10:55:11 +0200
committerChristophe Jaillet <jailletc36@apache.org>2018-04-07 10:55:11 +0200
commitfa84d342992aa52718e2af2937dbaec1930c5491 (patch)
tree994296d034b1a2427c0999f33d089b2ad9aff6b0 /docs/manual/style/xsl/common.xsl
parentRemove an extra '>' (diff)
downloadapache2-fa84d342992aa52718e2af2937dbaec1930c5491.tar.xz
apache2-fa84d342992aa52718e2af2937dbaec1930c5491.zip
Add a permalink functionality to section and diective-section in the generated doc.
This is convenient and consistent with httpd.a.o Getting a link to a section or a directive is already possible from the TOC, but having it available directly in-place is, IMHO, much more useful. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828588 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/style/xsl/common.xsl')
-rw-r--r--docs/manual/style/xsl/common.xsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl
index 20701ff16c..d6905ce0d8 100644
--- a/docs/manual/style/xsl/common.xsl
+++ b/docs/manual/style/xsl/common.xsl
@@ -18,8 +18,9 @@
-->
<!DOCTYPE xsl:stylesheet [
- <!ENTITY nbsp SYSTEM "util/nbsp.xml">
<!ENTITY lf SYSTEM "util/lf.xml">
+ <!ENTITY nbsp SYSTEM "util/nbsp.xml">
+ <!ENTITY para SYSTEM "util/para.xml">
<!ENTITY % HTTPD-VERSION SYSTEM "../version.ent">
%HTTPD-VERSION;
]>
@@ -522,6 +523,7 @@ if (typeof(prettyPrint) !== 'undefined') {
<a id="{@id}" name="{@id}">
<xsl:apply-templates select="title" mode="print" />
</a>
+ <a class="permalink" href="#{@id}" title="{$message[@id='permalink']}">&para;</a>
</xsl:when>
<xsl:otherwise>