Skip to content

feat(modules): host nuxt/image docs under /modules/image - #2579

Merged
atinux merged 3 commits into
mainfrom
feat/image-docs
Nov 2, 2026
Merged

atinux merged 3 commits into
mainfrom
feat/image-docs

Conversation

@atinux

@atinux atinux commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Hosts the nuxt/image docs under /modules/image, from nuxt/image#2374.

  • image entry in MODULE_DOCS with NUXT_IMAGE_PATH, added to .env.example and PULL_REPOS, with isPullContentPage tests.
  • Image is the first hosted module with nested sections (Usage, Providers, Advanced), which needed two changes on the module docs page:
    • breadcrumb sections without a page of their own are no longer links (they returned 404), as on /docs pages;
    • the frontmatter links are rendered in the page header, for the "Source" button on component and provider pages.

branch is main: nuxt/image#2374 is merged.

Verification

Ran the dev server with NUXT_IMAGE_PATH pointing at a local checkout of the nuxt/image branch:

  • all 51 pages return 200; unknown paths and section paths return 404; no broken internal links or anchors;
  • /raw/modules/image*.md returns text/markdown, /llms.txt has a "Nuxt Image Documentation" section and /sitemap.md lists the 51 pages;
  • OG image renders (@nuxt/image > Providers / Cloudinary);
  • no horizontal overflow at 1440px and 390px, mobile docs drawer shows the nested tree.

pnpm lint, vue-tsc (app, server, shared) and pnpm vitest run --project unit (454 tests) pass.

Also render the frontmatter `links` of hosted docs pages in the page header
(the Source button of nuxt/image pages) and stop linking breadcrumb sections
that have no page of their own (`Usage`, `Advanced`).

Amp-Thread-ID: https://ampcode.com/threads/T-01a18c6d-fa66-708b-8788-c12417a8f4ee
Co-authored-by: Sébastien Chopin <atinux@gmail.com>
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nuxt Ready Ready Preview Nov 2, 2026 2:21pm UTC

Request Review

@nuxt-com-bundle-report

Copy link
Copy Markdown

Production bundle

Comparing e9c6d3d9 with 06f7b032. Compressed sizes are calculated from the emitted production assets.

Initial page load

Page Base JS (Brotli) PR JS (Brotli) Δ JS Δ CSS Δ files
/ 557.2 KiB 557.4 KiB +214 B (+0.0%) — —
/docs/4.x/getting-started/introduction 615.4 KiB 615.7 KiB +214 B (+0.0%) — —
/modules/ui 547.7 KiB 547.9 KiB +204 B (+0.0%) — —
/updates 452.4 KiB 452.6 KiB +214 B (+0.0%) — —
/blog/v4-6 575.9 KiB 576.1 KiB +224 B (+0.0%) — —
/templates 433.2 KiB 433.4 KiB +217 B (+0.0%) — —

Entry script, modulepreload chunks and stylesheets referenced by the prerendered HTML. Lazy and prefetched chunks are excluded.

All client assets

Metric Base (Brotli) PR (Brotli) Δ Brotli Δ gzip
Client JavaScript 2.20 MiB 2.20 MiB +175 B (+0.0%) +62 B (+0.0%)
Client CSS 34.3 KiB 34.3 KiB — —
Other client assets 339.3 KiB 339.3 KiB +6 B (+0.0%) +2 B (+0.0%)
Total client assets 2.57 MiB 2.57 MiB +181 B (+0.0%) +64 B (+0.0%)

Largest module increases

Module Base (Brotli) PR (Brotli) Δ Brotli
virtual:nuxt-workers.mjs?source=%2Fhome%2Frunner%2Fwork%2Fnuxt.com%2Fnuxt.com%2Fapp%2Fworkers%2Fsearch.ts 0 B 408 B +408 B
/app/pages/nuxters/async-data-chunk-7.js 0 B 237 B +237 B
/app/pages/modules/[slug]/async-data-chunk-8.js 0 B 213 B +213 B
/app/async-data-chunk-27.js 0 B 187 B +187 B
/app/async-data-chunk-28.js 0 B 187 B +187 B
/app/pages/docs/async-data-chunk-4.js 0 B 162 B +162 B
/app/pages/blog/async-data-chunk-12.js 0 B 121 B +121 B
/app/pages/enterprise/agencies/async-data-chunk-14.js 0 B 115 B +115 B
/app/pages/enterprise/async-data-chunk-3.js 0 B 112 B +112 B
/app/pages/modules/async-data-chunk-22.js 0 B 112 B +112 B

Module values come from Nuxt’s analyzer and are attribution estimates. This workflow is currently report-only.

Workflow run

@atinux
atinux marked this pull request as ready for review November 2, 2026 14:14
Comment thread shared/utils/module-docs.ts Resolved
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b0107d72-8992-436f-b811-35d6921912cf
Commits

Reviewing files that changed from the base of the PR and between e9c6d3d and 06f7b03.

Files selected for processing: 5
  • .env.example
  • app/pages/modules/[slug]/[...path].vue
  • shared/utils/module-docs.ts
  • shared/utils/pull.ts
  • test/unit/pull-paths.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

The change adds Nuxt Image documentation source and preview support, including a local checkout option and tests for previewable paths. It also updates breadcrumb link assignment and adds frontmatter links to the documentation-page header.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: Minimal · up to 06f7b

No actionable merge-blocking risk remains in the reviewed changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: hosting Nuxt Image documentation under /modules/image.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description directly matches the changes. It describes hosting Nuxt Image documentation, the configuration updates, breadcrumb behaviour, frontmatter links, and verification results.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files. (2 skipped: 2 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

app/pages/modules/[slug]/[...path].vue

Parsing error: Unexpected token {

shared/utils/module-docs.ts

Parsing error: Unexpected token as

shared/utils/pull.ts

Parsing error: Unexpected token {

  • 1 others

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@atinux
atinux merged commit 57ce82f into main Nov 2, 2026
15 of 16 checks passed
@atinux
atinux deleted the feat/image-docs branch November 2, 2026 14:22

This branch was successfully deployed

1 active deployment
Preview — b7d17fb0 Deployed Nov 2, 2026 by vercel[bot]
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