From 388159fa893a4b1437681c876bde1d049210064f Mon Sep 17 00:00:00 2001 From: Christoph Rueger Date: Mon, 16 Dec 2024 12:32:51 +0100 Subject: [PATCH] add anchor links to all headlines this makes it easier to link send a link to a specific section to somebody. just hover over the headline and click on the little '#' symbol. now copy&paste the URL in the browser which contains the #anchor to this section. Signed-off-by: Christoph Rueger --- docs/_includes/footer.htm | 22 ++++++++++++++++++++++ docs/css/style.scss | 19 ++++++++++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/docs/_includes/footer.htm b/docs/_includes/footer.htm index 1417b17920..93991561cf 100644 --- a/docs/_includes/footer.htm +++ b/docs/_includes/footer.htm @@ -9,4 +9,26 @@
  • Home + + + diff --git a/docs/css/style.scss b/docs/css/style.scss index 0e4d0f46f0..d51e90d98c 100644 --- a/docs/css/style.scss +++ b/docs/css/style.scss @@ -200,4 +200,21 @@ ul .side-nav-section{ pre.highlight { overflow: auto; -} \ No newline at end of file +} + +.header-link-wrapper{ + visibility: hidden; + margin-left: 2px; + padding-left: 2px; +} +/* Show the icon link on hover */ +h1:hover .header-link-wrapper, +h2:hover .header-link-wrapper, +h3:hover .header-link-wrapper, +h4:hover .header-link-wrapper { + visibility: visible; +} +.header-link{ + color:#ccc !important +} +