Skip to content

fix: keep the Integrations link on-site when syncing Hive docs - #553

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-552
Nov 1, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-552

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

The sync's Case 2 rewrite pushed the Hive intro's Integrations link to GitHub because localHiveDocs — which exists exactly for locally authored pages — was empty.

Adding integrations.md to localHiveDocs ensures the canonical published route /docs/hive/integrations is linked instead of the GitHub copy in src/docs/integrations.md.

Test added:

  • rewriteLinkTarget('integrations.md', README) correctly returns "/docs/hive/integrations"
  • rewriteLinkTarget('integrations.md', 'src/docs/landscape.md') correctly returns "/docs/hive/integrations"

Files regenerated with corrected links:

  • docs/content/hive/readme.md
  • docs/content/hive/documentation-map.md
  • docs/content/hive/landscape.md

Closes #552

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

The sync's Case 2 rewrite pushed the Hive intro's Integrations link to GitHub because localHiveDocs — which exists exactly for locally authored pages — was empty. Adding integrations.md to localHiveDocs ensures the canonical published route /docs/hive/integrations is linked instead.

Adds unit tests asserting rewriteLinkTarget('integrations.md', ...) returns the internal route from both README and landscape.md sources.

Regenerates the affected synced pages (readme.md, documentation-map.md, landscape.md) with the corrected links.

Closes #552

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.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

@netlify

netlify Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hivecommons-docs canceled.

Name Link
🔨 Latest commit 3fda32d
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ae6ce7489fa9d7202c93108

@hivecommons-hive

hivecommons-hive Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.

hive/awaiting-ci: CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Evidence bundle `#5533fda32d` sha256:63f763d9097ba39d7b2ae87c8e90b4fd91c437f3e54b72de189b8d623d2deca8 — download from the dashboard or `hivectl review evidence #553`.

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Nov 1, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read scripts/sync-hive-docs.ts at merge-base and on this head. Looks correct to me.

One note on mechanism, for whoever maintains the sync: syncedRepoPaths (sync-hive-docs.ts:155) is built from files only, so integrations.md does not hit Case 1 by exact path. It resolves through the Case 1b basename fallback (basenameToSiteRoute, built from [...files, ...localHiveDocs] at :170–177), which is exactly the path localHiveDocs was added for — so the fix lands where intended, and main() still iterates files only, so the locally authored docs/content/hive/integrations.md is never overwritten by the sync.

Verified:

  • /docs/hive/integrations exists (docs/content/hive/integrations.md) and is already linked from integration-guide.md, work-sources.md, running-at-level-6.md; "Check internal doc links" is green.
  • npx vitest run scripts/sync-hive-docs.test.ts → 36 passed on this head; the two new assertions fail without the localHiveDocs entry (fallback returns undefined → Case 2 GitHub URL).
  • The remaining integrations/forges.md link in landscape.md:232 stays on GitHub, correctly — that page is neither synced nor authored here.
  • Regenerated pages match what the script produces; no unrelated changes.

— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 420931e into main Nov 1, 2026
12 of 13 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the scanner/fix-552 branch November 1, 2026 05:39
@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off dco-signoff: yes size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scanner] sync-hive-docs sends Hive intro's Integrations link off-site; local integrations page missing from localHiveDocs

0 participants