Commit f1f039d
committed
Fix Swagger documentation at /api/
The swagger-ui based system has been replaced with @astro-openapi/gui-swagger.
This has fewer dependencies than the original, removed a few hundred
lines from our codebase and halved our build time. I had to make some
CSS changes for it to work properly, including removing PurgeCSS. It
doesn't seem to affect the size of the built size at all, so it should
be fine.
Squashed commit of the following:
commit fc106bbdef82e1289cca193298f8b67b7738f2cc
Author: Southpaw <git@southpaw1496.dev>
Date: Fri Jan 23 09:10:18 2026 +0000
Fix styles
commit 5da4ed0344f922fee7cc346536d33598a78b8e7c
Author: Southpaw <git@southpaw1496.dev>
Date: Fri Jan 23 09:09:16 2026 +0000
Remove PurgeCSS
It was messing up the Swagger CSS and doesn’t actually seem to affect the bundle size
commit a7988d5372c639860a577ec73c7615a3e3416dea
Author: Southpaw <git@southpaw1496.dev>
Date: Fri Jan 23 08:19:27 2026 +0000
Fix styles
commit 0bc32d91ffbdbb11de7269695f956f157a9f367e
Author: Southpaw <git@southpaw1496.dev>
Date: Fri Jan 23 08:13:26 2026 +0000
Fix styling
commit d905c284fc32f827a7e17f9df9510e4e1ba5856a
Author: Southpaw <git@southpaw1496.dev>
Date: Fri Jan 23 07:55:26 2026 +0000
Change OpenAPI docs title
commit 61e80222b16eebd5b55b2ccd1c5d381fd11b7209
Author: Southpaw <git@southpaw1496.dev>
Date: Fri Jan 23 07:12:48 2026 +0000
Add Swagger GUI from astro-openapi
commit 4c9efd3b03b91893aecd372a39a14758cea253c6
Author: Southpaw <git@southpaw1496.dev>
Date: Fri Jan 23 07:08:38 2026 +0000
Remove swagger-ui1 parent cd61687 commit f1f039d
6 files changed
Lines changed: 40 additions & 2577 deletions
File tree
- public/api
- src
- pages/api
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
0 commit comments