From: Dan Kenigsberg Date: Sun, 8 Dec 2013 14:05:46 +0000 (+0000) Subject: docs: add a permalink to html headers X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=237a088ba44633b08e0528fe5103d99b1e213b71;p=libvirt.git docs: add a permalink to html headers Quite often, I need to cite URLs like http://libvirt.org/formatnetwork.html#elementQoS but it is annoying to copy them from the table of contents or the html source. This patch borrows from the Python documentation in order to make it easier to cite headers on libvirt's oneline documentation. --- diff --git a/docs/libvirt.css b/docs/libvirt.css index b324ac88c7..1d27873d93 100644 --- a/docs/libvirt.css +++ b/docs/libvirt.css @@ -498,3 +498,16 @@ div.description pre.code { padding: 5px 10px 5px 10px; margin-left: 2.5em; } + +a.headerlink { + text-decoration: none!important; + visibility: hidden; +} + +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink { + visibility: visible; +} diff --git a/docs/page.xsl b/docs/page.xsl index a2da85416a..d560c0998a 100644 --- a/docs/page.xsl +++ b/docs/page.xsl @@ -185,4 +185,24 @@ + + + + + + + + + + + + + + + + + + + +