@@ -481,6 +481,23 @@ Also removed here: leftover unconditional `needs: []` on the web jobs (from
481481an earlier iteration — independence from the product pipeline is opt-in via
482482` BUILD_GL_PAGES ` , step 16's CI note).
483483
484+ ### 24. Docs asset diet: conditional swagger/mermaid, one jQuery
485+
486+ sg-doc loaded swagger-ui (two JS bundles + CSS, twice) and mermaid on every
487+ docs page; exactly one page uses swagger (` sg-swaggerui ` shortcode on the API
488+ reference) and none currently use mermaid. The doc header/footer partials now
489+ gate those assets with ` .HasShortcode ` . The docs' jQuery 3.3.1 was replaced by
490+ the main site's 3.4.1 (one jQuery site-wide; the theme's 3.3.1 file is
491+ unreferenced). Also fixed the ` sg-swaggerui ` shortcode (project override): it
492+ built the spec URL as ` BaseURL + "/sg-swagger.yaml" ` , which yields the
493+ protocol-relative ` //sg-swagger.yaml ` when baseURL is ` / ` (artifact preview) —
494+ now ` relURL ` , correct for every baseURL shape.
495+
496+ Found while verifying, NOT fixed here: the vendored swagger-ui is a 3.x-era
497+ build and rejects the operator's OpenAPI ** 3.1** spec ("Unable to render this
498+ definition") — ** the live stackgres.io API reference page is broken the same
499+ way** . Fix = vendor swagger-ui v5 (supports 3.1). Recorded under known gaps.
500+
484501## Verified
485502
486503- ` hugo ` builds with ** 0 errors** (379 pages)
@@ -522,5 +539,11 @@ an earlier iteration — independence from the product pipeline is opt-in via
522539 that only resolve via the live site's redirect-to-docs-home fallback.
523540 Converting them to ` relurl ` /markdown links is a mechanical follow-up pass.
524541- ** RSS/sitemap dedup** between the three sections was not reviewed.
542+ - ** Operator API reference doesn't render** (pre-existing, also broken on
543+ live stackgres.io): the operator's swagger is OpenAPI 3.1, the vendored
544+ swagger-ui bundle only supports ≤3.0. Upgrade to swagger-ui v5 (drop-in:
545+ ` swagger-ui-bundle.js ` , ` swagger-ui-standalone-preset.js ` ,
546+ ` swagger-ui.css ` as project static overrides; the shortcode API is
547+ unchanged in v5).
525548- ** CI/deploy.** Each source repo had its own pipeline; the umbrella needs one
526549 (build + link-check + deploy).
0 commit comments