Skip to content

feat: migrate knowledgebase nav to the docengine subsystem#2795

Merged
dfinster merged 4 commits into
mainfrom
feat/knowledgebase-docengine-subsystem
Jun 23, 2026
Merged

feat: migrate knowledgebase nav to the docengine subsystem#2795
dfinster merged 4 commits into
mainfrom
feat/knowledgebase-docengine-subsystem

Conversation

@dfinster

Copy link
Copy Markdown
Contributor

Draft — depends on coreweave/docengine#183. Do not merge until #183 is merged and this repo's docengine submodule is bumped to include it (Dependabot bump). The workflow calls docengine knowledgebase apply, which only exists once the pinned submodule contains #183.

Summary

Replaces the bundled scripts/knowledgebase-nav/ toolchain with the DocEngine knowledgebase subsystem. The Python that was byte-for-byte duplicated with coreweave/docs now lives once in the engine and reaches hosts via Dependabot.

Changes

  • docengine-site/knowledgebase.yaml — the old config.yaml minus mintlify_root (the support root is resolved from docengine.yaml output_subpath = .). Products and allowed keywords are unchanged.
  • docengine-site/templates/ — the two MDX templates moved here. W&B keeps its own product-index template variant (title: "Support: …", no sidebarTitle); templates are per-host.
  • Removed scripts/knowledgebase-nav/ — script, report, tests, README, Architecture.md, requirements.txt. The engine owns the logic and tests now.
  • .github/workflows/knowledgebase-nav.yml — slimmed to: authenticate + init the docengine submodule (DOCENGINE_TOKEN), pip install -e ./docengine, docengine knowledgebase apply --report-file …, upsert the PR comment (same <!-- knowledgebase-nav-report --> marker), and commit the support output back with the wandb-docs-pr-writer App token. The engine reports its exact changed files, so the old git add --dry-run candidate loop is gone.

Behavior change (forks)

Generation now needs the private coreweave/docengine submodule, which fork PRs cannot clone. The job runs for same-repo PRs and manual dispatch only; fork PRs are regenerated by a maintainer after merge (the former bundled script could generate but never push on forks). Workflow/job names are unchanged so any required-check names still match.

Verification

The engine change (#183) was proven behavior-preserving by a differential against this repo's real scripts/knowledgebase-nav/generate_tags.py over the live support/ tree (this is the output_subpath: "." case): the generated trees are byte-identical except the intended template: provenance line (scripts/knowledgebase-nav/templates/…docengine-site/templates/…); support.mdx and all article footers are byte-identical. Report markdown is byte-identical to the legacy pr_report.py.

Merge order

  1. Merge coreweave/docengine#183.
  2. Bump this repo's docengine submodule to include it (Dependabot).
  3. Mark this PR ready and merge.

🤖 Generated with Claude Code

Replace the bundled scripts/knowledgebase-nav/ toolchain with the DocEngine
`knowledgebase` subsystem (coreweave/docengine#183).

- Add docengine-site/knowledgebase.yaml (the old config.yaml minus mintlify_root;
  the support root is resolved from docengine.yaml output_subpath = ".").
- Move the two MDX templates into docengine-site/templates/ (W&B keeps its own
  product-index template variant).
- Remove scripts/knowledgebase-nav/ (script, report, tests, docs, requirements) —
  the engine now owns the logic and tests.
- Rewrite .github/workflows/knowledgebase-nav.yml to a thin workflow: authenticate
  and init the docengine submodule (DOCENGINE_TOKEN), install the engine, run
  `docengine knowledgebase apply --report-file …`, upsert the PR comment (same
  marker), and commit the support output back with the wandb-docs-pr-writer App
  token. The engine reports its exact changed files, so the old `git add
  --dry-run` candidate loop is gone.

Behavior change: generation now needs the private docengine submodule, which fork
PRs cannot read — the job runs for same-repo PRs and manual dispatch only. Fork
PRs are regenerated by a maintainer after merge.

Depends on coreweave/docengine#183. Do not merge until #183 is merged and the
docengine submodule here is bumped to include it (Dependabot bump).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wandb 🟢 Ready View Preview Jun 23, 2026, 8:13 PM

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

📚 Mintlify Preview Links

🔗 View Full Preview

📝 Changed (52 total)

📄 Pages (52)

File Preview
support/inference.mdx Inference
support/inference/tags/administrator.mdx Administrator
support/inference/tags/authentication-access.mdx Authentication Access
support/inference/tags/billing.mdx Billing
support/inference/tags/quotas-rate-limits.mdx Quotas Rate Limits
support/inference/tags/server-errors.mdx Server Errors
support/models.mdx Models
support/models/tags/academic.mdx Academic
support/models/tags/administrator.mdx Administrator
support/models/tags/alerts.mdx Alerts
... and 42 more files

🗑️ Deleted (2 total)

View deleted files

⚙️ Other (2)

File
scripts/knowledgebase-nav/Architecture.md
scripts/knowledgebase-nav/README.md

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: 13bb0e2 at 2026-06-23 20:45:52 UTC

@dfinster dfinster marked this pull request as ready for review June 23, 2026 20:43
@dfinster dfinster requested a review from a team as a code owner June 23, 2026 20:43
@github-actions

Copy link
Copy Markdown
Contributor

Knowledgebase navigation update

  • Tag pages modified: 49 pages.
  • Product index pages updated: 3 pages.

From workflow run 28055756896

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Link Checker Results

All links are valid!

No broken links were detected.

Checked against: https://wb-21fd5541-feat-knowledgebase-docengine-subsystem.mintlify.app

@dfinster dfinster enabled auto-merge (squash) June 23, 2026 20:47
@dfinster dfinster merged commit 4bb4dca into main Jun 23, 2026
8 checks passed
@dfinster dfinster deleted the feat/knowledgebase-docengine-subsystem branch June 23, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants