Skip to content

Pin weave.init to top of TypeScript SDK reference nav#2937

Draft
dbrian57 wants to merge 1 commit into
mainfrom
ts-sdk-toc-priority-init
Draft

Pin weave.init to top of TypeScript SDK reference nav#2937
dbrian57 wants to merge 1 commit into
mainfrom
ts-sdk-toc-priority-init

Conversation

@dbrian57

Copy link
Copy Markdown
Contributor

Description

The Mintlify sidebar for the Weave TypeScript SDK reference is built by scripts/reference-generation/weave/update_weave_toc.py, which sorted every symbol alphabetically within its kind group (Classes, Functions, Interfaces, Type Aliases). That buried init — the SDK's primary entry point — mid-list inside the Functions group, below all 15 classes.

This PR adds a TYPESCRIPT_PRIORITY_PAGES list to the TOC script. Pages in the list are pinned directly after the typescript-sdk landing page in the nav and filtered out of their alphabetical subgroup so they don't appear twice. Only pages that were actually generated in a given run get pinned, and any subgroup left empty by the filtering is dropped. Promoting other headline APIs later (e.g. op, login) is a one-line addition to the list.

docs.json was regenerated by running the script; the diff is limited to moving weave/reference/typescript-sdk/functions/init from the Functions group to the second item in the TypeScript SDK section.

Note for reviewers: TypeDoc-side metadata (@group/@category, sort options) was considered and rejected — it only affects the generated markdown content, not docs.json, so it can't influence the Mintlify nav. A manual docs.json edit would also be overwritten on the next TOC regeneration, which is why the ordering logic lives in the script.

Testing

  • Ran python3 scripts/reference-generation/weave/update_weave_toc.py; the docs.json diff contains only the intended init move, confirming the change is idempotent against the existing generated pages.

🤖 Generated with Claude Code

The TOC script sorted every symbol alphabetically inside its kind group,
which buried init — the primary entry point — mid-list under Functions.
Add a priority list that pins headline pages directly after the landing
page and filters them out of their alphabetical subgroup.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 20, 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 Jul 20, 2026, 4:52 PM

@github-actions

Copy link
Copy Markdown
Contributor

📚 Mintlify Preview Links

🔗 View Full Preview

📝 Changed (1 total)

⚙️ Other (1)
File
docs.json

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: de0ca0c at 2026-07-20 16:53:02 UTC

@w-b-hivemind

w-b-hivemind Bot commented Jul 20, 2026

Copy link
Copy Markdown

HiveMind Sessions

1 session · 2m · $2.25

Session Agent Duration Tokens Cost Lines
Prioritize weave.init in TypeDoc Navigation
f27447c3-cb8a-4c69-a86c-e4beb2ed46dd
claude 2m 8.0K $2.25 +25 -8
Total 2m 8.0K $2.25 +25 -8

View all sessions in HiveMind →

Run claude --resume f27447c3-cb8a-4c69-a86c-e4beb2ed46dd to pickup where you left off.

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.

1 participant