summaryrefslogtreecommitdiffhomepage
path: root/docs/ucode.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-07-12 16:45:12 +0200
committerJo-Philipp Wich <jo@mein.io>2023-07-13 10:41:24 +0200
commitf1190ef2f2719582efcad4109f1215b02baebfdf (patch)
treed9a2644de3ba6c1032a4a3b5643fa78b26a84aa8 /docs/ucode.js
parentcba0c3cf5312cdaed0538bb3dbf87b31b3e89916 (diff)
docs: various improvements
- Switch JSDoc theme to "clean-jsdoc-theme" - Add some custom CSS and JS tweaks to the theme - Use a condensed README.md for the toplevel directory - Include a longer README.md in the documentation portal - Tweak JSDoc annotations for better output results - Register `ucode.mein.io` CNAME Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'docs/ucode.js')
-rw-r--r--docs/ucode.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ucode.js b/docs/ucode.js
new file mode 100644
index 0000000..35d2d23
--- /dev/null
+++ b/docs/ucode.js
@@ -0,0 +1,8 @@
+document.addEventListener('DOMContentLoaded', (ev) => {
+ const accordionState = window.localStorage.getItem('accordion-id');
+
+ if (accordionState == null || accordionState == '{}')
+ document
+ .querySelector('[data-isopen="false"]')
+ .setAttribute('data-isopen', 'true');
+});