aboutsummaryrefslogtreecommitdiff
path: root/docs/doc.html
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-30 07:06:07 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-30 07:06:07 +0800
commit793e6b538c95c54c647f7127d634818547028999 (patch)
tree6e7b0e0b85a208751116015b0c3e531ec928321d /docs/doc.html
parent2aa0de3852611aed2823fd40a3f6f47b8f50f0cd (diff)
feat(docs): add @@@ hidden code block support for compile-tested
examples
Diffstat (limited to 'docs/doc.html')
-rw-r--r--docs/doc.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/doc.html b/docs/doc.html
index 8640565..783ccb4 100644
--- a/docs/doc.html
+++ b/docs/doc.html
@@ -58,6 +58,16 @@
depth: 2,
},
plugins: [
+ function (hook) {
+ hook.beforeEach(function (content) {
+ return content
+ .split("\n")
+ .filter(function (line) {
+ return !line.startsWith("@@@");
+ })
+ .join("\n");
+ });
+ },
[
"flexible-alerts",
{