summaryrefslogtreecommitdiffhomepage
path: root/docs/ucode.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-10-19 12:36:09 +0200
committerJo-Philipp Wich <jo@mein.io>2023-10-19 12:36:09 +0200
commit07c03173d4e6a30953f92fa88ed29b0b956c9106 (patch)
treebb53a5ea16dc7f52fdd7bb3d9a237fab67a10b5e /docs/ucode.js
parent6ca08b05a93d6286e5d6a1e5ef779913fa6d644a (diff)
jsdoc: switch to own custom theme
Switch to a custom fork of the clean jsdoc theme to address a number of quirks and to directly incorporate CSS and markup changes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'docs/ucode.js')
-rw-r--r--docs/ucode.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/docs/ucode.js b/docs/ucode.js
deleted file mode 100644
index 2377c7e..0000000
--- a/docs/ucode.js
+++ /dev/null
@@ -1,39 +0,0 @@
-document.addEventListener('DOMContentLoaded', (ev) => {
- const accordionState = window.localStorage.getItem('accordion-id');
-
- if (accordionState == null || accordionState == '{}')
- document.querySelectorAll('[data-isopen="false"]')
- .forEach(item => item.setAttribute('data-isopen', 'true'));
-
- const moduleName = location.pathname.match(/\/module-(.+)\.html$/)?.[1];
-
- if (moduleName) {
- const modulePrefix = `module:${moduleName}.`;
-
- document.querySelectorAll(`a[href^="module-${CSS.escape(moduleName)}."]`).forEach(a => {
- if (a.text?.indexOf(modulePrefix) == 0)
- a.text = a.text.substring(modulePrefix.length);
- });
- }
-
- document.querySelectorAll('.param-type, .type-signature').forEach(span => {
- let replaced;
- do {
- replaced = false;
- span.innerHTML = span.innerHTML.replace(/\b(Object|Array)\.&lt;((?:(?!&[lg]t;).)+)&gt;/,
- (m, t, st) => {
- replaced = true;
-
- if (t == 'Object')
- return `Object&lt;${st.replace(/,\s*/, ':&#8239;')}&gt;`;
- else
- return `${st}[]`;
- });
- } while (replaced);
- });
-
- document.querySelectorAll('.type-signature').forEach(span => {
- span.innerHTML = span.innerHTML.replace(/\(nullable\) (.+)$/,
- '$1<span class="signature-attributes">nullable</span>');
- });
-});