Skip to content

Commit

Permalink
deploy: 2b2a472
Browse files Browse the repository at this point in the history
  • Loading branch information
jow- committed Oct 11, 2023
1 parent 18d18b4 commit 605e68c
Show file tree
Hide file tree
Showing 26 changed files with 2,372 additions and 267 deletions.
2 changes: 1 addition & 1 deletion data/search.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html

Large diffs are not rendered by default.

105 changes: 59 additions & 46 deletions lib.c.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions lib_debug.c.html

Large diffs are not rendered by default.

154 changes: 50 additions & 104 deletions lib_fs.c.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib_log.c.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib_math.c.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib_struct.c.html

Large diffs are not rendered by default.

1,874 changes: 1,874 additions & 0 deletions lib_uci.c.html

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions module-core.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions module-debug.html

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions module-fs.dir.html

Large diffs are not rendered by default.

18 changes: 8 additions & 10 deletions module-fs.file.html

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions module-fs.html

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions module-fs.proc.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions module-log.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions module-math.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions module-struct.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions module-struct.instance.html

Large diffs are not rendered by default.

149 changes: 149 additions & 0 deletions module-uci.cursor.html

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions module-uci.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tutorial-01-usage.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tutorial-02-syntax.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tutorial-03-memory.html

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions ucode.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ h1 {
display: flex;
}

h3[id].name:not(h2 + h3) {
margin-top: 2.5rem;
border-top: 1px solid #292929;
padding-top: 1.5rem;
}

h3[id].name:not(h2 + h3) .link-anchor {
top: 1.5rem;
}

.light h3[id].name {
border-color: #ccc;
}

html body {
line-height: 1.5;
}

article .description > ul,
article .description > ol {
list-style: initial;
Expand All @@ -18,3 +36,66 @@ article .description > ol {
background-position: 1rem center;
padding-left: 3rem;
}

section table td:first-child,
section .params td:first-child,
section table thead th:first-child,
section .params thead th:first-child,
section .props thead th:first-child {
border-top-left-radius: .5rem;
border-bottom-left-radius: .5rem;
}

section table td:last-child,
section .params td:last-child,
section table thead th:last-child,
section .params thead th:last-child,
section .props thead th:last-child {
border-top-right-radius: .5rem;
border-bottom-right-radius: .5rem;
}

section .params td,
section .params th,
section .props td,
section .props th,
section th,
section td,
section .details .details-item-container {
padding: .5rem 1rem;
}

section ul,
section ol {
padding-left: 1.5rem;
}

section ul li,
section ol li {
padding: .25rem 0;
}

section p {
margin: .75rem 0;
}

section .details {
border-radius: .5rem;
}

section .pre-div {
margin: 1rem 0;
border-radius: .5rem;
}

.param-type {
font-family: "code";
}

.signature-attributes {
font-variant: sub;
}

.method-member-container > strong + dl.param-type > dt {
display: none;
}
32 changes: 32 additions & 0 deletions ucode.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,36 @@ document.addEventListener('DOMContentLoaded', (ev) => {
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)\.<((?:(?!&[lg]t;).)+)>/,
(m, t, st) => {
replaced = true;

if (t == 'Object')
return `Object<${st.replace(/,\s*/, ': ')}>`;
else
return `${st}[]`;
});
} while (replaced);
});

document.querySelectorAll('.type-signature').forEach(span => {
span.innerHTML = span.innerHTML.replace(/\(nullable\) (.+)$/,
'$1<span class="signature-attributes">nullable</span>');
});
});

0 comments on commit 605e68c

Please sign in to comment.