about summary refs log tree commit diff
path: root/doc/anchor-use.js
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-03-17 00:02:17 +0000
committerGitHub <noreply@github.com>2024-03-17 00:02:17 +0000
commit2178d8d8574be160b52888ddd02cc3b9225ac920 (patch)
treed765176f7263079ca76615c78a65339c6feea988 /doc/anchor-use.js
parent0b9f28b5d4b45c9ef88ea496c74a607f00bd57b6 (diff)
parent79edbc3691c254fc929fe7a827cbb100f5af997d (diff)
Merge master into staging-next
Diffstat (limited to 'doc/anchor-use.js')
-rw-r--r--doc/anchor-use.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/anchor-use.js b/doc/anchor-use.js
new file mode 100644
index 0000000000000..06ec24883aa3a
--- /dev/null
+++ b/doc/anchor-use.js
@@ -0,0 +1,3 @@
+document.addEventListener('DOMContentLoaded', function(event) {
+  anchors.add('h1:not(div.note h1, div.warning h1, div.tip h1, div.caution h1, div.important h1), h2:not(div.note h2, div.warning h2, div.tip h2, div.caution h2, div.important h2), h3:not(div.note h3, div.warning h3, div.tip h3, div.caution h3, div.important h3), h4:not(div.note h4, div.warning h4, div.tip h4, div.caution h4, div.important h4), h5:not(div.note h5, div.warning h5, div.tip h5, div.caution h5, div.important h5), h6:not(div.note h6, div.warning h6, div.tip h6, div.caution h6, div.important h6)');
+});