feat: support fumadocs projects in cloud init#334
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@farming-labs/astro
@farming-labs/astro-theme
@farming-labs/docs
@farming-labs/theme
@farming-labs/next
@farming-labs/nuxt
@farming-labs/nuxt-theme
@farming-labs/svelte
@farming-labs/svelte-theme
@farming-labs/tanstack-start
commit: |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Contributor
There was a problem hiding this comment.
1 issue found across 2 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
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.
Summary
docs cloud initto detect existing Fumadocs projects when no Docs Infra config exists.docs.config.tsthat points at the existing Fumadocs content root instead of replacing the rendering setup.docs.jsonwithextensions.docsInfraProfileso cloud readers can understand the Fumadocs source shape.Validation
pnpm --filter @farming-labs/docs exec vitest run src/cli/cloud.test.tspnpm --filter @farming-labs/docs typecheckpnpm exec oxlint packages/docs/src/cli/cloud.ts packages/docs/src/cli/cloud.test.tspnpm exec oxfmt --check packages/docs/src/cli/cloud.ts packages/docs/src/cli/cloud.test.tspnpm --filter @farming-labs/docs buildSummary by cubic
Teach
docs cloud initto 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
fumadocs-core,fumadocs-ui), source config files, and common content roots.docs.config.tswith a connect marker,contentDir, analytics defaults, andapiKeyenv (DOCS_CLOUD_API_KEY); leaves existing native@farming-labs/docsconfigs untouched.docs.jsonwithdocsruntime, content roots, andextensions.docsInfraProfiledescribing the Fumadocs setup.docs.config.*already exists; Cloud treats that as the source of truth.Bug Fixes
extensions.docsInfraProfileonce a nativedocs.config.*is present, preserving otherextensions.Written for commit d6b1b07. Summary will update on new commits.