Commit 1acfe4f
feat: fetch download/install version data client-side instead of at build time
Replace the prestart/prebuild generate-version-data.mjs script with a
useVersionData React hook that fetches live from the public S3 API and
CDN on page load. Release tables and version-specific commands (dd,
gunzip, wget, qm importdisk) now always reflect the current releases
without requiring a redeploy.
- Add src/hooks/useVersionData.ts (ports all fetch/parse/sort logic)
- Add VersionCommand and ImageVerifyCommand exports to DownloadTable
- Remove static versions.json import from download.mdx and install.mdx
- Remove prebuild npm hooks and generate-version-data.mjs
- Remove unused VersionFooter component (dead code since footer refactor)
- Remove productVersion from docusaurus.config.ts customFields
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7c23b18 commit 1acfe4f
12 files changed
Lines changed: 813 additions & 257 deletions
File tree
- docs
- administrator-manual/installation
- superpowers/plans
- i18n/it/docusaurus-plugin-content-docs/current/administrator-manual/installation
- scripts
- src
- components
- DownloadTable
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments