Skip to content

πŸ“– sync: retarget Hive docs source from v4 to v5 (hold until first v5 stable promotion) - #13

Merged
clubanderson merged 1 commit into
mainfrom
retarget-hive-docs-v5
Sep 21, 2026
Merged

clubanderson merged 1 commit into
mainfrom
retarget-hive-docs-v5

Conversation

@clubanderson

@clubanderson clubanderson commented Sep 21, 2026

Copy link
Copy Markdown
Member

Refs hivecommons/hive#7814 Β· hivecommons/hive#7721 (Phase 3 row "Retarget docs.hivecommons.dev")

Hold released 2026-09-21: v5 is now the stable release channel (hivecommons/hive#8059, promote run https://github.com/hivecommons/hive/actions/runs/35632232764 β†’ stable=candidate=latest=v5 e6f4da7).

Flips scripts/sync-hive-docs.ts's default from v4 to v5 so every synced page's banner and canonical link point at hivecommons/hive@v5. HIVE_DOCS_REF still overrides at Netlify build time.

Evidence after merge (per #7721): a Netlify deploy preview / synced page whose banner reads hivecommons/hive@v5.

Flips the sync-hive-docs.ts default branch to v5 so docs.hivecommons.dev
documents the line that feeds the `stable` release channel once v5 is
promoted (hivecommons/hive#7721 Phase 3). Netlify can still override
with HIVE_DOCS_REF.

Refs hivecommons/hive#7814

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@clubanderson
clubanderson marked this pull request as ready for review September 21, 2026 20:00
@clubanderson
clubanderson merged commit bc4c89d into main Sep 21, 2026
3 of 7 checks passed
@clubanderson
clubanderson deleted the retarget-hive-docs-v5 branch September 21, 2026 20:01
clubanderson pushed a commit to hivecommons/hive that referenced this pull request Sep 22, 2026
…p page

src/docs/roadmap.md still carried pre-cut-over framing that the docs
site now publishes from v5 (hivecommons/docs#13 flipped the sync ref,
closing #7814): a header dating it to the v4 line, an invitation to send
feature PRs against the frozen v4 branch, a docs-site row describing the
completed retarget as pending with the sync default still listed as v4,
and blob/v4 deep links whose targets all exist on v5.

Re-baseline all of it on v5. Docs-only; no behavior change.

Closes #8185

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
clubanderson added a commit that referenced this pull request Sep 23, 2026
…clean

Extend the sibling-docs sync so the Spektacular section on
docs.hivecommons.dev carries the full documentation set:

- Overview (README) and Knowledge base from hivecommons/spektacular
- "Getting started" and "Dealing with unknown criteria" tutorials from
  hivecommons/spektacular-website (Astro MDX), converted to Markdown by
  the new scripts/mdx-to-markdown.ts: imports/exports stripped, <Step>
  and <AgentBlock> rendered as headed sections, <YouTubeVideo> as a
  timestamped link, unknown components flattened to their text with a
  note in the sync log, site-absolute links pointed at spektacular.dev,
  and referenced images copied under docs/content/spektacular/images/
- a second source per project with its own ref (SPEKTACULAR_WEBSITE_DOCS_REF)
- an "also published at spektacular.dev" canonical note on every page
- sidebar: Overview / Tutorials / Guides

Make the synced content satisfy markdownlint (MD031/MD040) at the source
instead of hand-editing generated files: scripts/markdown-fences.ts adds
a language to bare fences and blank lines around them, applied by both
sync scripts. The committed copies are regenerated by running the syncs
(this also brings the Hive pages up to the v5 source that #13 retargeted).

CI fixes for the three pre-existing red checks:
- Vitest: run on Node 22 (jsdom 30 pulls in undici 8, which needs >= 22.19;
  Node 20 failed with "webidl.util.markAsUncloneable is not a function")
- ESLint: drop eslint-disable comments for the removed rule
  @typescript-eslint/no-throw-literal
- markdownlint: fence normalisation above

Tests: fence normaliser, MDX converter, and the sibling sync config
(every project enumerated, Spektacular pulling from both repos).

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
clubanderson added a commit that referenced this pull request Sep 23, 2026
* πŸ“– docs: add Spektacular as a sibling project

Spektacular (github.com/hivecommons/spektacular, canonical site spektacular.dev)
transferred into hivecommons from jumppad-labs. Wire it into the sibling-docs
sync alongside hotshot, pluk, rationguard and promptargs:

- sync-sibling-docs.ts: new project entry (README.md required, docs/knowledge-base.md
  optional; SPEKTACULAR_DOCS_REF override) and a jumppad-labs -> hivecommons rewrite
  for repo sub-paths only (Go module path and Homebrew tap still live under jumppad-labs)
- versions.ts / shared.json: extend ProjectId, add versions + projects entries,
  related-projects card and edit URL
- page-map, [...slug] layout/page, sitemap, sidebar, source actions, edit link,
  related projects: enumerate spektacular everywhere the other siblings are
- netlify.toml: /docs/spektacular root redirects
- docs/content/spektacular: committed fallback copies used when the sync is unreachable

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>

* πŸ“– docs: port Spektacular docs from both repos and make the sync lint-clean

Extend the sibling-docs sync so the Spektacular section on
docs.hivecommons.dev carries the full documentation set:

- Overview (README) and Knowledge base from hivecommons/spektacular
- "Getting started" and "Dealing with unknown criteria" tutorials from
  hivecommons/spektacular-website (Astro MDX), converted to Markdown by
  the new scripts/mdx-to-markdown.ts: imports/exports stripped, <Step>
  and <AgentBlock> rendered as headed sections, <YouTubeVideo> as a
  timestamped link, unknown components flattened to their text with a
  note in the sync log, site-absolute links pointed at spektacular.dev,
  and referenced images copied under docs/content/spektacular/images/
- a second source per project with its own ref (SPEKTACULAR_WEBSITE_DOCS_REF)
- an "also published at spektacular.dev" canonical note on every page
- sidebar: Overview / Tutorials / Guides

Make the synced content satisfy markdownlint (MD031/MD040) at the source
instead of hand-editing generated files: scripts/markdown-fences.ts adds
a language to bare fences and blank lines around them, applied by both
sync scripts. The committed copies are regenerated by running the syncs
(this also brings the Hive pages up to the v5 source that #13 retargeted).

CI fixes for the three pre-existing red checks:
- Vitest: run on Node 22 (jsdom 30 pulls in undici 8, which needs >= 22.19;
  Node 20 failed with "webidl.util.markAsUncloneable is not a function")
- ESLint: drop eslint-disable comments for the removed rule
  @typescript-eslint/no-throw-literal
- markdownlint: fence normalisation above

Tests: fence normaliser, MDX converter, and the sibling sync config
(every project enumerated, Spektacular pulling from both repos).

Signed-off-by: Andrew Anderson <andy@clubanderson.com>

* βœ… test: render every synced Spektacular page end-to-end

The Netlify site is not producing deploy previews for pull requests, so
CI is the only place the converted MDX pages are proven to compile. Render
the four Spektacular routes through the real docs page (content -> MDX
compile -> evaluate -> DocsLayout) and fail if any of them falls back to
the plain-text <pre> path, loses its H1, or does not route its tutorial
screenshots through /docs-images/.

Signed-off-by: Andrew Anderson <andy@clubanderson.com>

* πŸ› docs: keep --tier <project|repo|all> code span on one line so MDX does not read it as JSX

A hard wrap inside the inline code left `<project|repo|all>` at column 0,
which the MDX compiler parses as a JSX tag and fails; the page then rendered
as a raw <pre> dump. Same fix goes upstream to hivecommons/spektacular.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>

---------

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant