Skip to content

Commit 68c8d96

Browse files
committed
docs fixes
1 parent 8fba5c4 commit 68c8d96

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,4 @@ pytest_out.txt
116116
mock_script.ps1
117117
test_output.ps1
118118
/docs/node_modules
119+
/docs/.vitepress

docs/.vitepress/config.mts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,20 @@ export default defineConfig({
148148
},
149149

150150
vite: {
151-
publicDir: 'public'
151+
publicDir: 'public',
152+
build: {
153+
rollupOptions: {
154+
output: {
155+
// Ensure images are copied as static assets
156+
assetFileNames: (assetInfo) => {
157+
// Keep screenshots in their original location
158+
if (assetInfo.name && assetInfo.name.includes('screenshot')) {
159+
return 'screenshots/[name][extname]'
160+
}
161+
return 'assets/[name]-[hash][extname]'
162+
}
163+
}
164+
}
165+
}
152166
}
153167
})

docs/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hero:
66
text: "The Ultimate Packaging Assistant"
77
tagline: "Analyze installers, create Intune packages, and streamline your IT workflow — all in one powerful tool."
88
image:
9-
src: https://github.com/FaserF/SwitchCraft/raw/main/docs/public/screenshots/switchcraft_logo_with_Text.png
9+
src: /screenshots/switchcraft_logo_with_Text.png
1010
alt: SwitchCraft Logo
1111
actions:
1212
- theme: brand
@@ -57,23 +57,23 @@ features:
5757
## Preview
5858

5959
<div style="text-align: center; margin: 2rem 0;">
60-
<img src="https://github.com/FaserF/SwitchCraft/raw/main/docs/public/screenshots/switchcraft_ui.png" alt="SwitchCraft Modern UI" style="max-width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);" />
60+
<img src="/screenshots/switchcraft_ui.png" alt="SwitchCraft Modern UI" style="max-width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);" />
6161
</div>
6262

6363
### Screenshots
6464

6565
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0;">
6666
<div style="text-align: center;">
67-
<img src="https://github.com/FaserF/SwitchCraft/raw/main/docs/public/screenshots/switchcraft_ui_2.png" alt="SwitchCraft Screenshot 2" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
67+
<img src="/screenshots/switchcraft_ui_2.png" alt="SwitchCraft Screenshot 2" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
6868
</div>
6969
<div style="text-align: center;">
70-
<img src="https://github.com/FaserF/SwitchCraft/raw/main/docs/public/screenshots/switchcraft_ui_3.png" alt="SwitchCraft Screenshot 3" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
70+
<img src="/screenshots/switchcraft_ui_3.png" alt="SwitchCraft Screenshot 3" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
7171
</div>
7272
<div style="text-align: center;">
73-
<img src="https://github.com/FaserF/SwitchCraft/raw/main/docs/public/screenshots/switchcraft_ui_4.png" alt="SwitchCraft Screenshot 4" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
73+
<img src="/screenshots/switchcraft_ui_4.png" alt="SwitchCraft Screenshot 4" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
7474
</div>
7575
<div style="text-align: center;">
76-
<img src="https://github.com/FaserF/SwitchCraft/raw/main/docs/public/screenshots/switchcraft_ui_5.png" alt="SwitchCraft Screenshot 5" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
76+
<img src="/screenshots/switchcraft_ui_5.png" alt="SwitchCraft Screenshot 5" style="width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);" />
7777
</div>
7878
</div>
7979

0 commit comments

Comments
 (0)