Repository navigation
feat(docs): publish raw markdown/yaml docs as @nuxt/docs - #31353
Conversation
|
|
WalkthroughThe update involves a modification to the 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@nuxt/kit
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #31353 will not alter performanceComparing Summary
|
Co-authored-by: Horu <73709188+HigherOrderLogic@users.noreply.github.com>
|
do you think it would be possible to run twoslash to augment docs at build time? at the moment two slash often type errors because the nuxt/nuxt.com environment or nuxt version is different, and that will be increased when we support displaying different docs versions on the site |
|
That's an interesting idea! It's definitely possible, let me see how it can be built! I created twoslashes/twoslash#67 to track on it |
Really cool idea, I had already added nuxt-llms to the new version of the doc but this would clearly be even better! |
|
This is now I believe it's also the right time to stop generating the nuxt configuration file on nuxt.com (see https://github.com/nuxt/nuxt.com/blob/main/server/plugins/docs-config.ts) as it will make sense to have it directly part of the |
|
Excellent - sounds like we are agreed. One more important comment for a future PR (cc: @HugoRCD): right now the docs are dependent on components in nuxt/nuxt.com, including components from nuxt/ui-pro. that means that even if we publish separately it's still not truly consumable anywhere but nuxt/nuxt.com I think it would be good to consider making the docs 'pure' (or bundling all components used inside them?) so that they are truly independent. added to that, they would not need to be updated if/when nuxt/ui or nuxt/ui-pro is updated, meaning we wouldn't need to coordinate updates to the docs markdown source and the website (e.g. #31150). any transforms that use components from the nuxt/nuxt.com codebase could be applied in a plugin or module in nuxt/nuxt.com itself. |
|
Agree! I think we can share the same Undocs content transformers so the |
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/jiti@2.4.2, npm/klona@2.0.6, npm/knip@5.46.5, npm/knitwork@1.2.0 |
@nuxt/docs package@nuxt/docs
@nuxt/docs@nuxt/docs
This is a proposal that we should publish our docs together with the monorepo as an additional resource to be consumed by other integrations, namely LLM agents (https://github.com/antfu/nuxt-mcp), but potentially other tools like Nuxt DevTools to present offline docs, etc.
The benefit is that the version of the docs is explicitly matched to the runtime versions. Eliminate the problem of version mismatch between installed and online docs. It also allows consuming those data offline without API requests.
I feel that all the projects with docs should adapt to this (if we agree on this, I'd also do the same for other packages like VueUse, UnoCSS, etc.)