1
0
mirror of https://github.com/prometheus/docs.git synced 2026-02-05 15:45:27 +01:00

Fix header anchor CSS (#2575)

* Fix header anchor CSS

This is a leftover from 60899b37d2, where
Font Awesome was removed. The missing font causes the link icon to show as
a tofu. Tabler, the new library that was introduced as a replacement has a
link icon CSS class we can use instead. I also adjusted the left pad.

Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>

* Address PR comment

Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>

---------

Signed-off-by: Jeremy Rickards <jeremy.rickards@sap.com>
This commit is contained in:
Jeremy Rickards
2025-02-24 18:03:01 +01:00
committed by GitHub
parent 4f82e448c7
commit b801babcb1
2 changed files with 3 additions and 8 deletions

View File

@@ -400,14 +400,9 @@ footer {
}
.doc-content a.header-anchor {
padding-left: 15px;
}
.doc-content a.header-anchor:after {
content: "\F0C1";
font-family: FontAwesome;
font-weight: normal;
font-size: .8em;
padding-left: 8px;
text-decoration: none;
}
.doc-content a.header-anchor:link,

View File

@@ -15,7 +15,7 @@ class AddAnchorsFilter < ::Nanoc::Filter
next if h_node['id'].nil?
node = Nokogiri::XML::DocumentFragment.parse("<a></a>").at_css("a").tap do |a|
a.content = ''
a['class'] = 'header-anchor'
a['class'] = 'header-anchor ti ti-link'
# Replace sequences of non-word characters with single dashes. Remove
# extra dashes at the beginning or end.