fix(docs): disable broken d2 diagram and fix installer

This commit is contained in:
Lea Anthony 2025-11-24 21:33:15 +11:00
commit 7e21ce614a
4 changed files with 15 additions and 71 deletions

View file

@ -26,9 +26,12 @@ jobs:
uses: actions/checkout@v4
- name: Install D2
run: |
curl -fsSL https://d2lang.com/install.sh | sh -s --
curl -fsSL https://d2lang.com/install.sh > install.sh
chmod +x install.sh
./install.sh
sudo cp ~/.local/bin/d2 /usr/local/bin/d2
d2 --version
rm install.sh
- name: Install, build, and upload your site output
uses: withastro/action@v2
with:

View file

@ -37,11 +37,11 @@ export default defineConfig({
editLink: {
baseUrl: "https://github.com/wailsapp/wails/edit/v3-alpha/docs",
},
social: {
github: "https://github.com/wailsapp/wails",
discord: "https://discord.gg/JDdSxwjhGf",
"x.com": "https://x.com/wailsapp",
},
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/wailsapp/wails' },
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/JDdSxwjhGf' },
{ icon: 'x.com', label: 'X', href: 'https://x.com/wailsapp' },
],
head: [
{
tag: 'script',

View file

@ -19,72 +19,13 @@ wails3 build
## Build Process Overview
```d2
direction: down
{/*
TODO: Fix D2 diagram generation or embed as image.
The previous D2 code block was causing MDX parsing errors in the build pipeline.
*/}
Source: "Source Code" {
Go: "Go Code\n(main.go, services)" {
shape: rectangle
style.fill: "#00ADD8"
}
Frontend: "Frontend Code\n(HTML/CSS/JS)" {
shape: rectangle
style.fill: "#8B5CF6"
}
}
**[Build Process Diagram Placeholder]**
Analysis: "Analysis Phase" {
ScanGo: "Scan Go Services" {
shape: rectangle
}
ExtractTypes: "Extract Types" {
shape: rectangle
}
}
Generation: "Generation Phase" {
GenBindings: "Generate TypeScript Bindings" {
shape: rectangle
style.fill: "#10B981"
}
BuildFrontend: "Build Frontend\n(Vite/webpack)" {
shape: rectangle
style.fill: "#8B5CF6"
}
}
Compilation: "Compilation Phase" {
CompileGo: "Compile Go\n(with optimisations)" {
shape: rectangle
style.fill: "#00ADD8"
}
EmbedAssets: "Embed Frontend Assets" {
shape: rectangle
style.fill: "#10B981"
}
}
Output: "Output" {
Binary: "Native Binary\n(myapp.exe/.app)" {
shape: rectangle
style.fill: "#10B981"
}
}
Source.Go -> Analysis.ScanGo
Analysis.ScanGo -> Analysis.ExtractTypes
Analysis.ExtractTypes -> Generation.GenBindings
Generation.GenBindings -> Source.Frontend: "TypeScript types"
Source.Frontend -> Generation.BuildFrontend
Generation.BuildFrontend -> Compilation.EmbedAssets: "Bundled assets"
Source.Go -> Compilation.CompileGo
Compilation.CompileGo -> Compilation.EmbedAssets
Compilation.EmbedAssets -> Output.Binary
```
## Build Phases

View file

@ -21,7 +21,7 @@ hero:
icon: open-book
variant: secondary
---
<!-- Updated 2025-11-23 -->
{/* Updated 2025-11-23 */}
import { Tabs, TabItem, Card, CardGrid } from "@astrojs/starlight/components";
<style>{`