diff options
author | Phil Ruffwind <rf@rufflewind.com> | 2015-06-15 00:06:08 -0400 |
---|---|---|
committer | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2015-08-02 23:27:10 +0100 |
commit | ecabf4e16d72818d39d0a18c9a64cb1d464b87b5 (patch) | |
tree | abe5b372a9d6f863298fde48f9cd8e40a294ecaf /haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs | |
parent | 7656bf86a661c5c755dc9874f709df2fc4833257 (diff) |
Link to the definitions to themselves
Currently, the definitions already have an anchor tag that allows URLs
with fragment identifiers to locate them, but it is rather inconvenient
to obtain such a URL (so-called "permalink") as it would require finding
the a link to the corresponding item in the Synopsis or elsewhere. This
commit adds hyperlinks to the definitions themselves, allowing users to
obtain links to them easily.
To preserve the original aesthetics of the definitions, we alter the
color of the link so as to be identical to what it was, except it now
has a hover effect indicating that it is clickable.
Additionally, the anchor now uses the 'id' attribute instead of the
(obsolete) 'name' attribute.
Closes #407
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs')
0 files changed, 0 insertions, 0 deletions