Skip to content

Document fern/ folder upload and --no-source for guest docs publishes - #7795

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1794157699-guest-source-upload
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1794157699-guest-source-upload

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

When you publish docs with fern generate --docs --guest, the CLI now uploads your fern/ folder along with the site. Once you claim the site, connecting a GitHub repository in the Fern Dashboard writes that folder to the repo, opening a pull request if the repo already has commits. People who try Fern without an account can keep going from the guest site to a GitHub-backed project without rebuilding or copying their config by hand. If you don't want your source uploaded, --no-source turns the upload off.

Implements docs for: feat(cli): upload the fern/ folder with a guest docs publish so a claimed site can be connected to GitHub (fern-api/fern#18821)

Pages changed

  • cli-api-reference/pages/docs-commands.mdx: adds [--no-source] to the fern generate --docs usage line. The guest section now covers the folder upload: it only applies to production guest publishes (not --preview); git-ignored files plus .env/.env.*, .guest-session, .git, node_modules and .DS_Store are left out; above 20 MB or 5,000 files the upload is skipped with a warning and the publish still goes through; and --no-source opts out.
  • cli-api-reference/pages/general-commands.mdx (fern claim): one sentence saying that connecting a GitHub repo after claiming adds the uploaded folder.
  • dashboard/pages/github-repo.mdx: one sentence on what connecting a repo does for a site claimed from a guest publish.
  • home/pages/fern-instructions/new-site.mdx (agent instructions): adds a Guest sessions bullet on the upload and --no-source, a rule to check fern/ for secrets that git doesn't ignore before a guest publish, and reference links. I checked the other instruction pages that mention --guest (docs/publish.mdx, overview.mdx, automate.mdx, troubleshoot.mdx). None of their steps change.

The exclusion list, limits and preview-only condition come from docsSourceArchive.ts / runRemoteGenerationForDocsWorkspace.ts in fern-api/fern. The CLI changelog is not edited because it's auto-generated.

fern check --warnings reports 0 errors.

Link to Devin session: https://app.devin.ai/sessions/a5677c5455404a20ae29f15dbe3cd33a
Open in Devin Desktop: https://app.devin.ai/desktop/session/a5677c5455404a20ae29f15dbe3cd33a?variant=devin

…lishes

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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.

0 participants