Skip to content

webapp/assets: Add javascript function adding anchors to headings

Antoine Lambert requested to merge anlambert/swh-web:heading-anchors into master

Add javascript function based on the use of the anchorjs package enabling to add anchors to headings. It enables users to easily get links to parts of a page by hovering mouse cursor on page headings.

Use it in homepage, api pages but also in pages rendering a README file from the archive.

Cursor not hovering heading: image

Cursor hovering heading: image

Cursor hovering anchor to get link: image

Merge request reports