Skip to content

Commit a959f6d

Browse files
Merge pull request #37 from zeixcom/feature/docs
fix: broken links in docs menu
2 parents 0b8bde0 + 616c6df commit a959f6d

File tree

6 files changed

+93
-76
lines changed

6 files changed

+93
-76
lines changed

docs-src/includes/menu.html

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,95 +3,95 @@
33
<ol>
44

55
<li>
6-
<a href="/index.html">
6+
<a href="index.html">
77
<span class="icon">📘</span>
88
<strong>Introduction</strong>
99
<small>Overview and key benefits of UIElement</small>
1010
</a>
1111
</li>
1212

1313
<li>
14-
<a href="/installation-setup.html">
14+
<a href="installation-setup.html">
1515
<span class="icon">⚙️</span>
1616
<strong>Installation & Setup</strong>
1717
<small>How to install and set up the library</small>
1818
</a>
1919
</li>
2020

2121
<li>
22-
<a href="/core-concepts.html">
22+
<a href="core-concepts.html">
2323
<span class="icon">🧩</span>
2424
<strong>Core Concepts</strong>
2525
<small>Learn about Web Components, signals, and effects</small>
2626
</a>
2727
</li>
2828

2929
<li>
30-
<a href="/detailed-walkthrough.html">
30+
<a href="detailed-walkthrough.html">
3131
<span class="icon">📋</span>
3232
<strong>Detailed Walkthrough</strong>
3333
<small>Step-by-step guide to creating components</small>
3434
</a>
3535
</li>
3636

3737
<li>
38-
<a href="/best-practices-patterns.html">
38+
<a href="best-practices-patterns.html">
3939
<span class="icon">💡</span>
4040
<strong>Best Practices & Patterns</strong>
4141
<small>Tips for effective and scalable usage</small>
4242
</a>
4343
</li>
4444

4545
<li>
46-
<a href="/advanced-topics.html">
46+
<a href="advanced-topics.html">
4747
<span class="icon">🚀</span>
4848
<strong>Advanced Topics</strong>
4949
<small>Diving deeper into contexts and performance</small>
5050
</a>
5151
</li>
5252

5353
<li>
54-
<a href="/examples-recipes.html">
54+
<a href="examples-recipes.html">
5555
<span class="icon">🧪</span>
5656
<strong>Examples & Recipes</strong>
5757
<small>Sample components and practical use cases</small>
5858
</a>
5959
</li>
6060

6161
<li>
62-
<a href="/troubleshooting-faqs.html">
62+
<a href="troubleshooting-faqs.html">
6363
<span class="icon"></span>
6464
<strong>Troubleshooting & FAQs</strong>
6565
<small>Common issues and frequently asked questions</small>
6666
</a>
6767
</li>
6868

6969
<li>
70-
<a href="/api-reference.html">
70+
<a href="api-reference.html">
7171
<span class="icon">📚</span>
7272
<strong>API Reference</strong>
7373
<small>Detailed documentation of classes and methods</small>
7474
</a>
7575
</li>
7676

7777
<li>
78-
<a href="/contributing-development.html">
78+
<a href="contributing-development.html">
7979
<span class="icon">🤝</span>
8080
<strong>Contributing & Development</strong>
8181
<small>How to contribute and set up the dev environment</small>
8282
</a>
8383
</li>
8484

8585
<li>
86-
<a href="/changelog-versioning.html">
86+
<a href="changelog-versioning.html">
8787
<span class="icon">📝</span>
8888
<strong>Changelog & Versioning</strong>
8989
<small>Track changes and understand versioning</small>
9090
</a>
9191
</li>
9292

9393
<li>
94-
<a href="/licensing-credits.html">
94+
<a href="licensing-credits.html">
9595
<span class="icon">⚖️</span>
9696
<strong>Licensing & Credits</strong>
9797
<small>License details and acknowledgments</small>

docs-src/server/generate-pages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const processMarkdownFile = async (filename: string) => {
102102
title: frontmatter.title || 'Untitled',
103103
emoji: frontmatter.emoji || '📄',
104104
description: frontmatter.description || '',
105-
url: `/${outputFilename}`
105+
url: outputFilename
106106
};
107107
};
108108

docs/core-concepts.html

+32-15
Original file line numberDiff line numberDiff line change
@@ -16,95 +16,95 @@ <h1 class="content">UIElement Docs <small>Version 0.9.4</small></h1>
1616
<ol>
1717

1818
<li>
19-
<a href="/index.html">
19+
<a href="index.html">
2020
<span class="icon">📘</span>
2121
<strong>Introduction</strong>
2222
<small>Overview and key benefits of UIElement</small>
2323
</a>
2424
</li>
2525

2626
<li>
27-
<a href="/installation-setup.html">
27+
<a href="installation-setup.html">
2828
<span class="icon">⚙️</span>
2929
<strong>Installation & Setup</strong>
3030
<small>How to install and set up the library</small>
3131
</a>
3232
</li>
3333

3434
<li>
35-
<a href="/core-concepts.html">
35+
<a href="core-concepts.html">
3636
<span class="icon">🧩</span>
3737
<strong>Core Concepts</strong>
3838
<small>Learn about Web Components, signals, and effects</small>
3939
</a>
4040
</li>
4141

4242
<li>
43-
<a href="/detailed-walkthrough.html">
43+
<a href="detailed-walkthrough.html">
4444
<span class="icon">📋</span>
4545
<strong>Detailed Walkthrough</strong>
4646
<small>Step-by-step guide to creating components</small>
4747
</a>
4848
</li>
4949

5050
<li>
51-
<a href="/best-practices-patterns.html">
51+
<a href="best-practices-patterns.html">
5252
<span class="icon">💡</span>
5353
<strong>Best Practices & Patterns</strong>
5454
<small>Tips for effective and scalable usage</small>
5555
</a>
5656
</li>
5757

5858
<li>
59-
<a href="/advanced-topics.html">
59+
<a href="advanced-topics.html">
6060
<span class="icon">🚀</span>
6161
<strong>Advanced Topics</strong>
6262
<small>Diving deeper into contexts and performance</small>
6363
</a>
6464
</li>
6565

6666
<li>
67-
<a href="/examples-recipes.html">
67+
<a href="examples-recipes.html">
6868
<span class="icon">🧪</span>
6969
<strong>Examples & Recipes</strong>
7070
<small>Sample components and practical use cases</small>
7171
</a>
7272
</li>
7373

7474
<li>
75-
<a href="/troubleshooting-faqs.html">
75+
<a href="troubleshooting-faqs.html">
7676
<span class="icon"></span>
7777
<strong>Troubleshooting & FAQs</strong>
7878
<small>Common issues and frequently asked questions</small>
7979
</a>
8080
</li>
8181

8282
<li>
83-
<a href="/api-reference.html">
83+
<a href="api-reference.html">
8484
<span class="icon">📚</span>
8585
<strong>API Reference</strong>
8686
<small>Detailed documentation of classes and methods</small>
8787
</a>
8888
</li>
8989

9090
<li>
91-
<a href="/contributing-development.html">
91+
<a href="contributing-development.html">
9292
<span class="icon">🤝</span>
9393
<strong>Contributing & Development</strong>
9494
<small>How to contribute and set up the dev environment</small>
9595
</a>
9696
</li>
9797

9898
<li>
99-
<a href="/changelog-versioning.html">
99+
<a href="changelog-versioning.html">
100100
<span class="icon">📝</span>
101101
<strong>Changelog & Versioning</strong>
102102
<small>Track changes and understand versioning</small>
103103
</a>
104104
</li>
105105

106106
<li>
107-
<a href="/licensing-credits.html">
107+
<a href="licensing-credits.html">
108108
<span class="icon">⚖️</span>
109109
<strong>Licensing & Credits</strong>
110110
<small>License details and acknowledgments</small>
@@ -286,15 +286,24 @@ <h3>Parsing Attribute Values</h3>
286286

287287
</code-block>
288288
<h3>Pre-defined Parsers in UIElement</h3>
289-
<p>| <strong>Function</strong> | <strong>Description</strong> |<br>| <code>asBoolean</code> | Converts <code>&quot;true&quot;</code> / <code>&quot;false&quot;</code> to a <strong>boolean</strong> (<code>true</code> / <code>false</code>). Also treats empty attributes (<code>checked</code>) as <code>true</code>. |<br>| <code>asInteger</code> | Converts a numeric string (e.g., <code>&quot;42&quot;</code>) to an <strong>integer</strong> (<code>42</code>). |<br>| <code>asNumber</code> | Converts a numeric string (e.g., <code>&quot;3.14&quot;</code>) to a <strong>floating-point number</strong> (<code>3.14</code>). |<br>| <code>asString</code> | Returns the attribute value as a <strong>string</strong> (unchanged). |<br>| <code>asEnum([...])</code> | Ensures the string matches <strong>one of the allowed values</strong>. Example: <code>asEnum([&#39;small&#39;, &#39;medium&#39;, &#39;large&#39;])</code>. If the value is not in the list, it defaults to the first option. |<br>| <code>asJSON</code> | Parses a JSON string (e.g., <code>&#39;[&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]&#39;</code>) into an <strong>array</strong> or <strong>object</strong>. If invalid, returns <code>null</code>. |</p>
289+
<p>| <strong>Function</strong> | <strong>Description</strong> |
290+
| <code>asBoolean</code> | Converts <code>&quot;true&quot;</code> / <code>&quot;false&quot;</code> to a <strong>boolean</strong> (<code>true</code> / <code>false</code>). Also treats empty attributes (<code>checked</code>) as <code>true</code>. |
291+
| <code>asInteger</code> | Converts a numeric string (e.g., <code>&quot;42&quot;</code>) to an <strong>integer</strong> (<code>42</code>). |
292+
| <code>asNumber</code> | Converts a numeric string (e.g., <code>&quot;3.14&quot;</code>) to a <strong>floating-point number</strong> (<code>3.14</code>). |
293+
| <code>asString</code> | Returns the attribute value as a <strong>string</strong> (unchanged). |
294+
| <code>asEnum([...])</code> | Ensures the string matches <strong>one of the allowed values</strong>. Example: <code>asEnum([&#39;small&#39;, &#39;medium&#39;, &#39;large&#39;])</code>. If the value is not in the list, it defaults to the first option. |
295+
| <code>asJSON</code> | Parses a JSON string (e.g., <code>&#39;[&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]&#39;</code>) into an <strong>array</strong> or <strong>object</strong>. If invalid, returns <code>null</code>. |</p>
290296
</section>
291297

292298
<section>
293299

294300
<h2>Accessing Sub-elements within the Component</h2>
295301
<p>Before adding <strong>event listeners</strong>, <strong>applying effects</strong>, or <strong>passing states</strong>, you need to select elements inside the component.</p>
296302
<p>UIElement provides the following methods for <strong>element selection</strong>:</p>
297-
<p>| <strong>Method</strong> | <strong>Description</strong> |<br>| <code>this.self</code> | Selects <strong>the component itself</strong>. |<br>| <code>this.first(selector)</code> | Selects <strong>the first matching element</strong> inside the component. |<br>| <code>this.all(selector)</code> | Selects <strong>all matching elements</strong> inside the component. |</p>
303+
<p>| <strong>Method</strong> | <strong>Description</strong> |
304+
| <code>this.self</code> | Selects <strong>the component itself</strong>. |
305+
| <code>this.first(selector)</code> | Selects <strong>the first matching element</strong> inside the component. |
306+
| <code>this.all(selector)</code> | Selects <strong>all matching elements</strong> inside the component. |</p>
298307
<code-block collapsed language="js" copy-success="Copied!" copy-error="Error trying to copy to clipboard!">
299308
<p class="meta">
300309

@@ -364,7 +373,15 @@ <h3>Applying Effects with .sync()</h3>
364373

365374
</code-block>
366375
<h3>Pre-defined Effects in UIElement</h3>
367-
<p>| <strong>Function</strong> | <strong>Description</strong> |<br>| <code>setText()</code> | Updates <strong>text content</strong> with a <code>string</code> signal value (while preserving comment nodes). |<br>| <code>setProperty()</code> | Updates a given <strong>property</strong> with any signal value. |<br>| <code>setAttribute()</code> | Updates a given <strong>attribute</strong> with a <code>string</code> signal value. |<br>| <code>toggleAttribute()</code> | Toggles a given <strong>boolean attribute</strong> with a <code>boolean</code> signal value. |<br>| <code>toggleClass()</code> | Toggles a given <strong>CSS class</strong> with a <code>boolean</code> signal value. |<br>| <code>setStyle()</code> | Updates a given <strong>CSS property</strong> with a <code>string</code> signal value. |<br>| <code>createElement()</code> | Inserts a <strong>new element</strong> with a given tag name with a <code>Record&lt;string, string&gt;</code> signal value for attributes. |<br>| <code>removeElement()</code> | Removes an element if the <code>boolean</code> signal value is <code>true</code>. |</p>
376+
<p>| <strong>Function</strong> | <strong>Description</strong> |
377+
| <code>setText()</code> | Updates <strong>text content</strong> with a <code>string</code> signal value (while preserving comment nodes). |
378+
| <code>setProperty()</code> | Updates a given <strong>property</strong> with any signal value. |
379+
| <code>setAttribute()</code> | Updates a given <strong>attribute</strong> with a <code>string</code> signal value. |
380+
| <code>toggleAttribute()</code> | Toggles a given <strong>boolean attribute</strong> with a <code>boolean</code> signal value. |
381+
| <code>toggleClass()</code> | Toggles a given <strong>CSS class</strong> with a <code>boolean</code> signal value. |
382+
| <code>setStyle()</code> | Updates a given <strong>CSS property</strong> with a <code>string</code> signal value. |
383+
| <code>createElement()</code> | Inserts a <strong>new element</strong> with a given tag name with a <code>Record&lt;string, string&gt;</code> signal value for attributes. |
384+
| <code>removeElement()</code> | Removes an element if the <code>boolean</code> signal value is <code>true</code>. |</p>
368385
<h3>Simplifying Effect Notation</h3>
369386
<p>For effects that take two arguments, <strong>the second argument can be omitted</strong> if the signal key matches the targeted property name, attribute, class, or style property.</p>
370387
<p><strong>Simplified Notation (Key Matches Property Name):</strong></p>

docs/index.html

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,95 +16,95 @@ <h1 class="content">UIElement Docs <small>Version 0.9.4</small></h1>
1616
<ol>
1717

1818
<li>
19-
<a href="/index.html">
19+
<a href="index.html">
2020
<span class="icon">📘</span>
2121
<strong>Introduction</strong>
2222
<small>Overview and key benefits of UIElement</small>
2323
</a>
2424
</li>
2525

2626
<li>
27-
<a href="/installation-setup.html">
27+
<a href="installation-setup.html">
2828
<span class="icon">⚙️</span>
2929
<strong>Installation & Setup</strong>
3030
<small>How to install and set up the library</small>
3131
</a>
3232
</li>
3333

3434
<li>
35-
<a href="/core-concepts.html">
35+
<a href="core-concepts.html">
3636
<span class="icon">🧩</span>
3737
<strong>Core Concepts</strong>
3838
<small>Learn about Web Components, signals, and effects</small>
3939
</a>
4040
</li>
4141

4242
<li>
43-
<a href="/detailed-walkthrough.html">
43+
<a href="detailed-walkthrough.html">
4444
<span class="icon">📋</span>
4545
<strong>Detailed Walkthrough</strong>
4646
<small>Step-by-step guide to creating components</small>
4747
</a>
4848
</li>
4949

5050
<li>
51-
<a href="/best-practices-patterns.html">
51+
<a href="best-practices-patterns.html">
5252
<span class="icon">💡</span>
5353
<strong>Best Practices & Patterns</strong>
5454
<small>Tips for effective and scalable usage</small>
5555
</a>
5656
</li>
5757

5858
<li>
59-
<a href="/advanced-topics.html">
59+
<a href="advanced-topics.html">
6060
<span class="icon">🚀</span>
6161
<strong>Advanced Topics</strong>
6262
<small>Diving deeper into contexts and performance</small>
6363
</a>
6464
</li>
6565

6666
<li>
67-
<a href="/examples-recipes.html">
67+
<a href="examples-recipes.html">
6868
<span class="icon">🧪</span>
6969
<strong>Examples & Recipes</strong>
7070
<small>Sample components and practical use cases</small>
7171
</a>
7272
</li>
7373

7474
<li>
75-
<a href="/troubleshooting-faqs.html">
75+
<a href="troubleshooting-faqs.html">
7676
<span class="icon"></span>
7777
<strong>Troubleshooting & FAQs</strong>
7878
<small>Common issues and frequently asked questions</small>
7979
</a>
8080
</li>
8181

8282
<li>
83-
<a href="/api-reference.html">
83+
<a href="api-reference.html">
8484
<span class="icon">📚</span>
8585
<strong>API Reference</strong>
8686
<small>Detailed documentation of classes and methods</small>
8787
</a>
8888
</li>
8989

9090
<li>
91-
<a href="/contributing-development.html">
91+
<a href="contributing-development.html">
9292
<span class="icon">🤝</span>
9393
<strong>Contributing & Development</strong>
9494
<small>How to contribute and set up the dev environment</small>
9595
</a>
9696
</li>
9797

9898
<li>
99-
<a href="/changelog-versioning.html">
99+
<a href="changelog-versioning.html">
100100
<span class="icon">📝</span>
101101
<strong>Changelog & Versioning</strong>
102102
<small>Track changes and understand versioning</small>
103103
</a>
104104
</li>
105105

106106
<li>
107-
<a href="/licensing-credits.html">
107+
<a href="licensing-credits.html">
108108
<span class="icon">⚖️</span>
109109
<strong>Licensing & Credits</strong>
110110
<small>License details and acknowledgments</small>

0 commit comments

Comments
 (0)