Make link to anchor available when hover'ing a title
Originally created by @intrigeri on #9535 (Redmine)
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).