Skip to content

Commit 959af31

Browse files
add Vector/ redirect
1 parent 0bd8764 commit 959af31

File tree

6 files changed

+12
-21
lines changed

6 files changed

+12
-21
lines changed

TODO.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

web/astro.config.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ export default defineConfig({
7373
]
7474
},
7575
{
76-
label: 'OOP',
76+
label: 'Elements',
7777
items: [
78-
{label: 'About OOP', link: 'OOP'},
79-
{label: 'OOP Introduction', link: 'OOP_Introduction'},
80-
{label: 'OOP Classes', link: 'OOP_Classes'},
78+
{label: 'Element types', link: 'Element'},
79+
{label: 'Element tree', link: 'Element_tree'},
8180
]
8281
},
8382
{
84-
label: 'Elements',
83+
label: 'OOP',
8584
items: [
86-
{label: 'Element types', link: 'Element'},
87-
{label: 'Element tree', link: 'Element_tree'},
85+
{label: 'About OOP', link: 'OOP'},
86+
{label: 'Introduction', link: 'OOP_Introduction'},
87+
{label: 'Classes', link: 'OOP_Classes'},
8888
]
8989
},
9090
]

web/public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
/Element/:elementname /:elementname
55

6+
/Vector/:vectorclass /:vectorclass

web/src/pages/OOP_Classes.astro

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,3 @@ const classesByCategory = getOOPClassesByCategory();
2424
</section>
2525
))}
2626
</StarlightPage>
27-
28-
<script>
29-
document.querySelectorAll('.side-type-color').forEach(el => {
30-
const type = el.textContent || '';
31-
el.classList.add(`side-${type.toLowerCase()}`);
32-
});
33-
34-
</script>

web/src/pages/Scripting_Functions.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const functionsByCategory = getFunctionsByCategory();
1717
<summary>{category} functions</summary>
1818
<ul>
1919
{funcs.map(func => (
20-
<li><a href={`/${func.id}`}>{func.id}</a> (<span class={"side-"+getFunctionInfo(func.data).type}>{getFunctionInfo(func.data).typePretty}</span>)</li>
20+
<li>
21+
<a href={`/${func.id}`}>{func.id}</a>
22+
(<span class={"side-"+getFunctionInfo(func.data).type}>{getFunctionInfo(func.data).typePretty}</span>)
23+
</li>
2124
))}
2225
</ul>
2326
</details>

web/src/utils/functions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ function buildSyntaxString(
128128
return `${returnString} ${funcName} (${spacedParams})`;
129129
}
130130

131-
132-
133131
export function parseFunctionSyntaxes(funcName: string, funcData: FunctionData): Syntax[] {
134132
const syntaxes: Syntax[] = [];
135133

0 commit comments

Comments
 (0)