Feature #9535

Make link to anchor available when hover'ing a title

Added by intrigeri 2015-06-05 11:20:19 . Updated 2016-11-04 13:54:48 .

Status:
Confirmed
Priority:
Low
Assignee:
Category:
Target version:
Start date:
2015-06-05
Due date:
% Done:

10%

Feature Branch:
Type of work:
Website
Blueprint:

Starter:
Affected tool:
Deliverable for:

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


Subtasks

Feature #9536: Have ikiwiki generate anchor names based on heading's text Confirmed

10


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)

#4 Updated by sajolida 2015-06-06 14:44:59

Fixed.