hive-c0re: trim swagger-theme comments down to essentials
Cut the process-narrative framing (operator quote, backstory) and shortened per-section labels — the CSS was carrying more explanation than declaration. Keep only what a future reader actually needs: the override mechanism, the stylix-follows-live fact, and the two non-obvious calls (method-colour exception, the one !important).
This commit is contained in:
parent
062a84378d
commit
5471b49f2a
2 changed files with 25 additions and 48 deletions
|
|
@ -1,16 +1,10 @@
|
|||
<!-- HTML for static distribution bundle build -->
|
||||
<!-- Overrides the vendored Swagger UI's own `dist/index.html` (byte-for-
|
||||
byte identical otherwise — copied from utoipa-swagger-ui-vendored
|
||||
0.1.2's swagger-ui-5.17.14/dist/index.html) via the crate's
|
||||
`SWAGGER_UI_OVERWRITE_FOLDER` build-time hook, adding two lines: the
|
||||
dashboard's own themed `colors.css` (same absolute `/static/`
|
||||
origin the dashboard dist serves it from — see
|
||||
nix/host-modules/hive-gateway/vhosts.nix's dashboardProxyLocation,
|
||||
`/` and `/api/` share one vhost so this resolves whatever the
|
||||
operator's stylix theme currently renders, not a frozen copy) and
|
||||
hyperhive-theme.css, which consumes those `--baseNN` vars. Loaded
|
||||
after swagger-ui.css so hyperhive-theme.css's rules win the cascade
|
||||
without needing `!important`. See
|
||||
<!-- Overrides the vendored Swagger UI's dist/index.html (byte-identical
|
||||
otherwise) via `SWAGGER_UI_OVERWRITE_FOLDER`. Adds `colors.css`
|
||||
(same origin as the dashboard — see dashboardProxyLocation in
|
||||
nix/host-modules/hive-gateway/vhosts.nix — so this resolves the
|
||||
operator's live stylix theme, not a frozen copy) and
|
||||
hyperhive-theme.css, which consumes its `--baseNN` vars. See
|
||||
docs/web-ui/dashboard.md::Dashboard endpoints. -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
|
|
|||
Loading…
Reference in a new issue