aboutsummaryrefslogtreecommitdiff
path: root/docs/dev-docs/index.html
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-09 20:43:26 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-09 20:57:25 +0800
commit185e704249b3257b883d6fcf46437f2b1c6db89b (patch)
treef2c3aa303ea0e780bfd544d9af20fc6f3c3ffeed /docs/dev-docs/index.html
parentcde98d144ef373012634c5be4dccca6d205791c3 (diff)
feat(docs): add flexible-alerts plugin and callout styles
Diffstat (limited to 'docs/dev-docs/index.html')
-rw-r--r--docs/dev-docs/index.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/dev-docs/index.html b/docs/dev-docs/index.html
index c3fd04a..e62268d 100644
--- a/docs/dev-docs/index.html
+++ b/docs/dev-docs/index.html
@@ -147,6 +147,31 @@
noData: "No matches found.",
depth: 2,
},
+ plugins: [
+ function (hook) {
+ hook.beforeEach(function (content) {
+ return content
+ .split("\n")
+ .filter(function (line) {
+ return !line.startsWith("@@@");
+ })
+ .join("\n");
+ });
+ },
+ [
+ "flexible-alerts",
+ {
+ style: "flat",
+ labels: {
+ NOTE: "Note",
+ TIP: "Tip",
+ IMPORTANT: "Important",
+ WARNING: "Warning",
+ CAUTION: "Caution",
+ },
+ },
+ ],
+ ],
};
</script>
@@ -156,6 +181,7 @@
<script src="../scripts/prism-toml.min.js"></script>
<script src="../scripts/prism-rust.js"></script>
<script src="../scripts/docsify-corner.js"></script>
+ <script src="../scripts/docsify-plugin-flexible-alerts.js"></script>
<script src="../scripts/day-night-switch.js"></script>
</body>
</html>