Skip to content

Commit 1f16337

Browse files
committed
Replace mermaid diagram with static SVG
Remove the vitepress-plugin-mermaid usage and replace the inline mermaid diagram with a pre-rendered SVG. Updated .vitepress/config.mts to stop using withMermaid and removed the plugin import, updated docs/configs.md to reference the new /img/install-defaults-process.svg, and added the SVG under docs/public/img. package.json/package-lock.json were updated accordingly (dependency changes / vitepress bump) to reflect removal/upgrades of mermaid-related tooling.
1 parent 467b5da commit 1f16337

File tree

5 files changed

+411
-1910
lines changed

5 files changed

+411
-1910
lines changed

.vitepress/config.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { defineConfig } from 'vitepress'
2-
import { withMermaid } from "vitepress-plugin-mermaid";
32

43
// https://vitepress.dev/reference/site-config
5-
export default withMermaid(defineConfig({
4+
export default defineConfig({
65
srcDir: './docs',
76
title: "Windows Enterprise Defaults",
87
description: "Make Windows enterprise-ready.",
@@ -100,4 +99,4 @@ export default withMermaid(defineConfig({
10099
pattern: 'https://github.com/aaronparker/defaults/edit/main/:path'
101100
}
102101
}
103-
}))
102+
})

docs/configs.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,4 @@ Each JSON file includes a `MinimumBuild` property that can be used to ensure spe
3939

4040
Here's an visualisation of how the `Install-Defaults.ps1` works:
4141

42-
```mermaid
43-
graph TD
44-
A[Invoke Install-Defaults.ps1] -->B(Get OS platform)
45-
B --> C(Get OS version)
46-
C --> D(Get hardware model)
47-
D --> E(Gather .json configs)
48-
E -->|All| F[Install configs for all platforms]
49-
E -->|Platform| G[Install configs for target OS] -->J
50-
E -->|Build| H[Install configs for OS version] -->J
51-
E -->|Model| I[Install configs for hardware model] -->J
52-
F --> J{Client OS?}
53-
J -->|Yes| K[Remove AppX apps]
54-
J --> L[Copy project files to feature update path]
55-
L --> M[Write uninstall info to registry]
56-
K --> N{Language specified?}
57-
N -->|Yes|O[Install & set default language]
58-
```
42+
![Script Process Visualisation](/img/install-defaults-process.svg)

docs/public/img/install-defaults-process.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)