feat(cli): support local library git inputs - #17510
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Docs Generation Benchmark ResultsComparing PR branch against median of 5 nightly run(s) on
Docs generation runs |
SDK Generation Benchmark ResultsComparing PR branch against median of 5 nightly run(s) on Full benchmark table (click to expand)
main (generator): generator-only time via --skip-scripts (includes Docker image build, container startup, IR parsing, and code generation — this is the same Docker-based flow customers use via |
Description
Linear ticket: Closes
Allow
fern docs md generate --localto resolve library documentation inputs from git repositories, including optional refs and repository-relative subpaths.Changes Made
@fern-api/github, preserving default-branch, branch/tag, and commit-SHA handling./repo, and forwardpackagePath, source URL, and configured ref to the parser.Testing
pnpm turbo run compile --filter @fern-api/github --filter @fern-api/configuration-loader --filter @fern-api/library-docs-generator --filter @fern-api/workspace-loaderpnpm turbo run test --filter @fern-api/github --filter @fern-api/library-docs-generator --filter @fern-api/workspace-loaderpnpm turbo run test --filter @fern-api/configuration-loader -- src/docs-yml/__test__/gitRefVersioning.matrix.test.tspnpm turbo run depcheck --filter @fern-api/github --filter @fern-api/configuration-loader --filter @fern-api/library-docs-generator --filter @fern-api/workspace-loaderpnpm lint:biome --fix && pnpm format:fix && pnpm check:fixpnpm test:eteran 168 passing tests; the suite still reported two.fernignoretimeouts, a missingFERN_ORG_TOKEN_DEV, and an existing validate snapshot mismatch.Link to Devin session: https://app.devin.ai/sessions/33a7d2928e6a4665be1498ed388596ac
Requested by: @Ryan-Amirthan