Feature #9535
Make link to anchor available when hover'ing a title
10%
Description
It would nice, e.g. on the FAQ, to easily have a link to the hover’ed title available, so that one can easily point people to such links without having to find them in the TOC first. See e.g. how it’s done https://docs.puppetlabs.com/puppet/latest/reference/lang_virtual.html, when hover’ing the “Purpose” or “Syntax” title. However, IMO this first requires having ikiwiki automatically generate nice anchors that depend on the title’s text, instead of the #indexNhM
the toc plugin currently gives us. Once we have that, having nice links displayed is a simple matter of CSS, such as (thanks to tchou):
h1 a { opacity:0; }
h1:hover a { opacity:1; }
… plus some bits of CSS to add an icon to such links (see e.g. how it’s done on https://docs.puppetlabs.com/files/stylesheets/anchor.css).
Files
History
#1 Updated by sajolida 2015-06-06 10:35:18
- File <del>missing: Screenshot from 2015-06-06 10_33_44.png</del> added
It took me a while to understand what you were referring to. You’re talking about the “link” icon on the right of the title of a section.
#2 Updated by intrigeri 2015-06-06 12:34:12
> It took me a while to understand what you were referring to.
Sorry :/
> You’re talking about the “link” icon on the right of the title of a section.
Exactly! By the way, the screenshot you attached does not demonstrate this.
#3 Updated by sajolida 2015-06-06 14:44:29
- File deleted (
Screenshot from 2015-06-06 10_33_44.png)