mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-23 18:06:58 +08:00
💄 adding anchors for easy linking
This commit is contained in:
parent
0ee7f1266f
commit
12a54bcbd4
1 changed files with 19 additions and 1 deletions
20
rules.md
20
rules.md
|
|
@ -2,6 +2,22 @@
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.anchor {
|
||||||
|
font-size: 15px;
|
||||||
|
vertical-align: middle;
|
||||||
|
color: darkblue;
|
||||||
|
display: inline-block;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.4s;
|
||||||
|
}
|
||||||
|
h2:hover a.anchor,
|
||||||
|
h3:hover a.anchor,
|
||||||
|
h4:hover a.anchor {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div style="padding: 20px 20px 10px 20px; border: solid grey 1px; border-radius: 10px;">
|
<div style="padding: 20px 20px 10px 20px; border: solid grey 1px; border-radius: 10px;">
|
||||||
|
|
@ -31,6 +47,7 @@
|
||||||
<li>
|
<li>
|
||||||
{% assign serviceId = service.name | replace: " ", "-" | downcase %}
|
{% assign serviceId = service.name | replace: " ", "-" | downcase %}
|
||||||
<h2 id="{{ serviceId }}">
|
<h2 id="{{ serviceId }}">
|
||||||
|
<a class="anchor" href="#{{ serviceId }}">#</a>
|
||||||
{{ groupIndex }}.
|
{{ groupIndex }}.
|
||||||
{{ serviceIndex }}.
|
{{ serviceIndex }}.
|
||||||
{{ service.name }}
|
{{ service.name }}
|
||||||
|
|
@ -63,7 +80,8 @@
|
||||||
{% assign ruleIndex = forloop.index %}
|
{% assign ruleIndex = forloop.index %}
|
||||||
{% assign comments = rule.comments | strip | newline_to_br | split: '<br />' %}
|
{% assign comments = rule.comments | strip | newline_to_br | split: '<br />' %}
|
||||||
<li>
|
<li>
|
||||||
<h4>
|
<h4 id="rule-{{ serviceId }}-{{ ruleIndex }}">
|
||||||
|
<a class="anchor" href="#rule-{{ serviceId }}-{{ ruleIndex }}">#</a>
|
||||||
{{ groupIndex}}.{{ serviceIndex }}.{{ ruleIndex }}.
|
{{ groupIndex}}.{{ serviceIndex }}.{{ ruleIndex }}.
|
||||||
{{ rule.name }}
|
{{ rule.name }}
|
||||||
</h4>
|
</h4>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue