Project

General

Profile

Feature #9535

Make link to anchor available when hover'ing a title

Added by intrigeri over 4 years ago. Updated about 3 years ago.

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

10%

Feature Branch:
Type of work:
Website
Blueprint:
Starter:
Affected tool:

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).

anchor_link.png View (27.4 KB) sajolida, 06/06/2015 02:44 PM


Subtasks

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

History

#1 Updated by sajolida over 4 years ago

  • File Screenshot from 2015-06-06 10_33_44.png 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 over 4 years ago

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 over 4 years ago

  • File deleted (Screenshot from 2015-06-06 10_33_44.png)

#4 Updated by sajolida over 4 years ago

Fixed.

Also available in: Atom PDF