diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2018-04-07 10:55:11 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2018-04-07 10:55:11 +0200 |
commit | fa84d342992aa52718e2af2937dbaec1930c5491 (patch) | |
tree | 994296d034b1a2427c0999f33d089b2ad9aff6b0 /docs/manual/style/xsl/common.xsl | |
parent | Remove an extra '>' (diff) | |
download | apache2-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.xsl | 4 |
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']}">¶</a> </xsl:when> <xsl:otherwise> |