Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions site/src/components/CodeExample.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
const mainTsCode = `<span class="comment">// Your app's entry point</span>
<span class="keyword">import</span> &#123; openWindow, windowEvents &#125; <span class="keyword">from</span> <span class="string">"runtime:ui"</span>;
<span class="keyword">import</span> &#123; createWindow, windowEvents &#125; <span class="keyword">from</span> <span class="string">"runtime:window"</span>;
<span class="keyword">import</span> &#123; readTextFile &#125; <span class="keyword">from</span> <span class="string">"runtime:fs"</span>;

<span class="comment">// Open a window with native WebView</span>
<span class="keyword">const</span> win = <span class="keyword">await</span> openWindow(&#123;
<span class="keyword">const</span> win = <span class="keyword">await</span> createWindow(&#123;
url: <span class="string">"app://index.html"</span>,
title: <span class="string">"My Forge App"</span>,
width: <span class="number">900</span>,
Expand Down Expand Up @@ -64,8 +64,8 @@ const indexHtmlCode = `<span class="tag">&lt;script&gt;</span>
<div class="host-modules">
<h3>Host Modules</h3>
<div class="modules-grid">
<a href="/docs/api/runtime-ui/" class="module-badge">
<code>runtime:ui</code>
<a href="/docs/api/runtime-window/" class="module-badge">
<code>runtime:window</code>
<span>Windows, Dialogs, Menus</span>
</a>
<a href="/docs/api/runtime-fs/" class="module-badge">
Expand Down
8 changes: 4 additions & 4 deletions site/src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
const links = {
docs: [
{ label: 'Getting Started', href: '/getting-started/' },
{ label: 'Architecture', href: '/architecture/' },
{ label: 'API Reference', href: '/api/runtime-ui/' },
{ label: 'Manifest', href: '/api/manifest/' },
{ label: 'Getting Started', href: '/docs/getting-started/' },
{ label: 'Architecture', href: '/docs/architecture/' },
{ label: 'API Reference', href: '/docs/api/runtime-window/' },
{ label: 'Manifest', href: '/docs/api/manifest/' },
],
community: [
{ label: 'GitHub', href: 'https://github.com/LayerDynamics/forge' },
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</a>
<div class="nav-links">
<a href="/docs/getting-started/">Docs</a>
<a href="/docs/api/runtime-ui/">API</a>
<a href="/docs/api/runtime-window/">API</a>
<a href="https://github.com/LayerDynamics/forge" target="_blank" rel="noopener">GitHub</a>
</div>
</div>
Expand Down
Loading
Loading