Skip to content

Commit bcf69a2

Browse files
committed
Merge branch 'main' of https://github.com/n9e/n9e.github.io
2 parents eaffb1c + 80474ad commit bcf69a2

6 files changed

Lines changed: 21 additions & 15 deletions

File tree

config/_default/params.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ lqipWidth = "20x"
5454
smallLimit = "300"
5555

5656
# Footer
57-
footer = "© 2025 CCF·Nightingale, all rights reserved."
57+
footer = "© 2026 CCF·Nightingale, all rights reserved."
5858

5959
# Feed
60-
copyRight = "© 2025 CCF·Nightingale, all rights reserved."
60+
copyRight = "© 2026 CCF·Nightingale, all rights reserved."
6161

6262
# Alert
63-
alert = false
64-
alertDismissable = true
65-
alertText = '''xxx'''
63+
# 广告位开关和配置(具体内容在 i18n 目录下的语言文件中定义)
64+
alert = true
65+
alertDismissable = false
6666

6767
# Edit Page
6868
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster

content/en/docs/faq/how-to-import-prometheus-rules/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Please use Nightingale version 8.2.0 or later.
2424

2525
## Import Steps
2626

27-
![Import Prometheus Alerting Rules](import.png)
27+
<img src="import.png" alt="Import Prometheus Alerting Rules">
2828

2929
As shown in the screenshot above, go to the alerting rules page and select import to import Prometheus-format alerting rules. Note that the YAML-formatted rule content starts with `groups`, which contains multiple `group` entries. Each `group` has a `name` and `rules`, where `rules` is an array of specific alerting rules. Nightingale will ignore the `group`'s `name` during processing and directly import the content in `rules`.
3030

3131
After the import is complete, you usually need to associate notification rules to enable alert notifications. The method is: select the alerting rules in batches, then click "More Operations" in the upper right corner to batch update the alerting rules:
3232

33-
![Batch Update Alerting Rules](batch.png)
33+
<img src="batch.png" alt="Batch Update Alerting Rules">
3434

3535
In the batch update pop-up, select "Notification rule" as the field, then choose the corresponding notification rule and click "Confirm". The screenshot is as follows:
3636

37-
![Batch Update Notification Rules](notify-rules.png)
37+
<img src="notify-rules.png" alt="Batch Update Notification Rules">

i18n/en.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[get-started]
2-
other = "Get Started"
2+
other = "Get Started"
3+
4+
[alert-text]
5+
other = "📢 Alert noise reduction, on-call scheduling, claiming, and escalation management with <a href=\"https://console.flashcat.cloud/\" target=\"_blank\" class=\"alert-link\">Flashduty</a>"

i18n/nl.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

i18n/zh.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[get-started]
2+
other = "快速开始"
3+
4+
[alert-text]
5+
other = "📢 告警收敛降噪、排班、认领、升级闭环管理,就用 <a href=\"https://console.flashcat.cloud\" target=\"_blank\" class=\"alert-link\">Flashduty</a>"

layouts/partials/header/alert.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{{ if .Site.Params.alertDismissable -}}
2-
<div id="announcement" data-id="global-alert-{{ md5 .Site.Params.alertText }}" class="alert alert-primary alert-dismissible fade show text-lg-center" role="alert">
3-
{{ .Site.Params.alertText | safeHTML }}
2+
<div id="announcement" data-id="global-alert-{{ md5 (i18n "alert-text") }}" class="alert alert-primary alert-dismissible fade show text-lg-center" role="alert">
3+
{{ i18n "alert-text" | safeHTML }}
44
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
55
</div>
66
{{ else -}}
77
<div class="alert alert-primary text-lg-center" role="alert">
8-
{{ .Site.Params.alertText | safeHTML }}
8+
{{ i18n "alert-text" | safeHTML }}
99
</div>
10-
{{ end -}}
10+
{{ end -}}

0 commit comments

Comments
 (0)