docs: update generated docs

This commit is contained in:
nym21
2026-06-14 00:46:07 +02:00
parent c85da92cbc
commit 8614e9eded
639 changed files with 5529 additions and 3472 deletions
+10 -3
View File
@@ -9,20 +9,27 @@ function createContentsItem(section, path) {
const anchor = document.createElement("a");
const children = section.children ?? [];
const sectionPath = [...path, section.title];
const id = createPathId(sectionPath);
anchor.href = `#${createPathId(sectionPath)}`;
anchor.href = `#${id}`;
anchor.append(section.title);
if (children.length) {
const details = document.createElement("details");
const summary = document.createElement("summary");
const list = document.createElement("ol");
for (const child of children) {
list.append(createContentsItem(child, sectionPath));
}
item.append(list);
summary.append(anchor);
details.append(summary, list);
item.append(details);
} else {
item.append(anchor);
}
item.prepend(anchor);
return item;
}
+9 -7
View File
@@ -21,13 +21,19 @@ main.learn {
text-transform: uppercase;
ol {
display: grid;
list-style: none;
margin: 0;
padding: 0;
}
li + li {
margin-block-start: 0.25rem;
summary {
display: block;
list-style: none;
&::-webkit-details-marker {
display: none;
}
}
a {
@@ -40,8 +46,7 @@ main.learn {
color: inherit;
text-decoration: none;
border-radius: 0.25rem;
margin-block: -0.25rem;
margin-inline: calc(-1 * var(--line-indent)) 1rem;
margin-inline: 0 1rem;
padding: 0.25rem;
padding-inline-start: calc(var(--line-width) + var(--line-gap));
@@ -74,9 +79,6 @@ main.learn {
ol ol {
--line-indent: var(--line-step);
margin-block-start: 0.25rem;
margin-inline-start: var(--line-step);
}
ol ol ol {