site: move guides to top-level /guides route + flesh out Bun migration map#59
Merged
Conversation
…n map Add a separate fumadocs `guides` content source rooted at site/content/guides/ with its own /guides/[[...slug]] route and layout, mirroring the docs route. Move the Bun-to-nub guide from /docs/guides/bun-to-nub to /guides/bun-to-nub, add a permanent redirect from /docs/guides/* to /guides/*, and wire the guides source into the llms.txt index and per-page markdown route. Guides stay out of the docs sidebar as a distinct top-level section. Expand the Bun-to-nub guide with a comprehensive API map: every Bun-specific API (Bun.* globals and bun:* modules) grouped by category with its recommended Node or npm-ecosystem replacement. Claude-Session: https://claude.ai/code/session_01YRvztkcr4fzfg9rD5edUwa
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Shipped in v0.1.10: https://github.com/nubjs/nub/releases/tag/v0.1.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves guides off the docs route onto a dedicated top-level
/guides/*route, and expands the Bun-to-nub guide into a comprehensive API migration map.Route move
guidescontent source rooted atsite/content/guides/(source.config.ts+src/lib/source.ts)./guides/[[...slug]]route segment + layout (src/app/guides/), mirroring the docs route but without the per-command sidebar chips. Guides stay out of the docs sidebar as a distinct top-level section.content/docs/guides/bun-to-nub.mdxtocontent/guides/bun-to-nub.mdx(/docs/guides/bun-to-nubto/guides/bun-to-nub) and removes the emptycontent/docs/guides/./docs/guides/:path*to/guides/:path*innext.config.mjsso existing links keep working./llms.txtindex and the per-page/llms/*.mdxroute so the guide's AI-readable markdown resolves.Content
Bun.*globals andbun:*modules) grouped by category (process/shell, FS/glob, HTTP/net, DB, hashing/crypto/compression, build/transpile, testing, FFI, HTML/text, utilities) with its recommended Node or npm-ecosystem replacement. Calls out where the runtime already covers it (Web APIs) and where it's unnecessary under nub (Bun.Transpiler).Verification
pnpm buildsucceeds;/guides/[[...slug]]prerenders/guides/bun-to-nub, and/llms/guides/bun-to-nub.mdxis emitted.routes-manifest.json:/docs/guides/:path*to/guides/:path*, statusCode 308.https://claude.ai/code/session_01YRvztkcr4fzfg9rD5edUwa