Skip to content

feat: support fumadocs projects in cloud init#334

Merged
Kinfe123 merged 2 commits into
mainfrom
feat/cloud-init-fumadocs-connect
Jul 1, 2026
Merged

feat: support fumadocs projects in cloud init#334
Kinfe123 merged 2 commits into
mainfrom
feat/cloud-init-fumadocs-connect

Conversation

@Kinfe123

@Kinfe123 Kinfe123 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Teach docs cloud init to detect existing Fumadocs projects when no Docs Infra config exists.
  • Generate a Docs Cloud sidecar docs.config.ts that points at the existing Fumadocs content root instead of replacing the rendering setup.
  • Materialize docs.json with extensions.docsInfraProfile so cloud readers can understand the Fumadocs source shape.
  • Keep existing native Docs Infra configs as the source of truth, even when Fumadocs packages are also present.

Validation

  • pnpm --filter @farming-labs/docs exec vitest run src/cli/cloud.test.ts
  • pnpm --filter @farming-labs/docs typecheck
  • pnpm exec oxlint packages/docs/src/cli/cloud.ts packages/docs/src/cli/cloud.test.ts
  • pnpm exec oxfmt --check packages/docs/src/cli/cloud.ts packages/docs/src/cli/cloud.test.ts
  • pnpm --filter @farming-labs/docs build

Summary by cubic

Teach docs cloud init to connect existing Fumadocs apps without replacing their rendering setup. It also removes stale Fumadocs profiles when a native docs config exists so Cloud uses the right source.

  • New Features

    • Detects Fumadocs via dependencies (e.g., fumadocs-core, fumadocs-ui), source config files, and common content roots.
    • Creates a sidecar docs.config.ts with a connect marker, contentDir, analytics defaults, and apiKey env (DOCS_CLOUD_API_KEY); leaves existing native @farming-labs/docs configs untouched.
    • Materializes docs.json with docs runtime, content roots, and extensions.docsInfraProfile describing the Fumadocs setup.
    • Skips connect mode if a native docs.config.* already exists; Cloud treats that as the source of truth.
  • Bug Fixes

    • Drops a stale extensions.docsInfraProfile once a native docs.config.* is present, preserving other extensions.

Written for commit d6b1b07. Summary will update on new commits.

Review in cubic

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Jul 1, 2026 11:07pm
farming-labs-docs-docs-cloud Building Building Preview, Comment Jul 1, 2026 11:07pm

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@farming-labs/astro

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/astro@334

@farming-labs/astro-theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/astro-theme@334

@farming-labs/docs

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/docs@334

@farming-labs/theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/theme@334

@farming-labs/next

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/next@334

@farming-labs/nuxt

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/nuxt@334

@farming-labs/nuxt-theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/nuxt-theme@334

@farming-labs/svelte

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/svelte@334

@farming-labs/svelte-theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/svelte-theme@334

@farming-labs/tanstack-start

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/tanstack-start@334

commit: d6b1b07

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@Kinfe123 Kinfe123 changed the title feat: connect Fumadocs projects in cloud init feat: support fumadocs projects in cloud init Jul 1, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/docs/src/cli/cloud.ts
@Kinfe123 Kinfe123 merged commit 0458c4d into main Jul 1, 2026
9 of 10 checks passed
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