Switch to more accessible header permalink anchors in documentation.
This commit is contained in:
parent
462326406e
commit
97fad15009
2 changed files with 9 additions and 2 deletions
|
@ -23,8 +23,7 @@ module.exports = function(eleventyConfig) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let markdownItAnchorOptions = {
|
let markdownItAnchorOptions = {
|
||||||
permalink: true,
|
permalink: markdownItAnchor.permalink.headerLink()
|
||||||
permalinkClass: "direct-link"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
eleventyConfig.setLibrary(
|
eleventyConfig.setLibrary(
|
||||||
|
|
|
@ -530,3 +530,11 @@ main .elv-toc + h1 .direct-link {
|
||||||
display: none ;
|
display: none ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-anchor {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-anchor:hover::after {
|
||||||
|
content: " 🔗";
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue