Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reorganize fern docs #1917

Merged
merged 42 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
645965e
fix: reorganize fern docs
abvthecity Dec 19, 2024
e8bf797
tab width 4 -> 2
abvthecity Dec 19, 2024
343b68d
tailwind sorting
abvthecity Dec 19, 2024
64b693d
compileable
abvthecity Dec 19, 2024
ff93548
fix: upgrade typescript, eslint
abvthecity Dec 19, 2024
19a461c
add eslint.config.mjs
abvthecity Dec 19, 2024
010ed91
migrate eslint.config.mjs
abvthecity Dec 19, 2024
2c6900b
migrate the remaining eslint versions
abvthecity Dec 19, 2024
54f4b2f
fix
abvthecity Dec 20, 2024
cc8c896
fix
abvthecity Dec 20, 2024
cc37018
fix compile issues
abvthecity Dec 20, 2024
0ccd817
fix: one in a million
abvthecity Dec 20, 2024
baa8005
tiny prettier fixes
abvthecity Dec 20, 2024
240fc95
update lint staged
abvthecity Dec 20, 2024
cbc8406
Merge branch 'main' into ajiang/reorganize-fern-docs
abvthecity Dec 20, 2024
160a5c5
update lint
abvthecity Dec 20, 2024
e774628
revert
abvthecity Dec 20, 2024
1a9aeab
migrated
abvthecity Dec 20, 2024
47490d5
lint fix
abvthecity Dec 20, 2024
827da54
fix
abvthecity Dec 20, 2024
11a8ea2
done
abvthecity Dec 20, 2024
df3650d
fix
abvthecity Dec 20, 2024
3b09e69
fix import
abvthecity Dec 20, 2024
93313be
fix some umd import issues
abvthecity Dec 20, 2024
97bf064
fix arraybuffer types
abvthecity Dec 20, 2024
c274e13
fix arraybuffer test
abvthecity Dec 20, 2024
99d87fc
fix tests
abvthecity Dec 20, 2024
4114683
lint fix
abvthecity Dec 20, 2024
1af88ad
fix pnpm-lock
abvthecity Dec 20, 2024
ce90ddb
edge compatible
abvthecity Dec 20, 2024
03ec4ae
make the routes buildable
abvthecity Dec 20, 2024
c8d089c
launchdarkly
abvthecity Dec 20, 2024
9b8fdc4
migrate endpoints to app router
abvthecity Dec 20, 2024
e132655
enable revalidating individual route
abvthecity Dec 20, 2024
e21a3bc
remove edge
abvthecity Dec 20, 2024
a3b19a7
use cookiejar
abvthecity Dec 20, 2024
8f9b8ab
Merge branch 'main' into ajiang/reorganize-fern-docs
abvthecity Dec 20, 2024
9b9dca3
fix lockfile
abvthecity Dec 20, 2024
599f798
eslint
abvthecity Dec 20, 2024
ba1da6c
fix lint issues
abvthecity Dec 20, 2024
bcffe48
prettier
abvthecity Dec 20, 2024
cc7efd2
disable lint
abvthecity Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

153 changes: 0 additions & 153 deletions .eslintrc.js

This file was deleted.

46 changes: 0 additions & 46 deletions .eslintrc.lint-staged.js

This file was deleted.

5 changes: 2 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
* @dsinghvi
packages/template-resolver/** @armandobelardo
packages/ui/** @abvthecity
packages/ui/fern-dashboard/** @armandobelardo
packages/fern-docs/** @abvthecity
packages/parsers/** @RohinBhargava
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ jobs:
uses: ./.github/actions/install

- name: Build components
run: pnpm turbo --filter=@fern-ui/components compile
run: pnpm turbo --filter=@fern-docs/components compile

- name: Run Chromatic
uses: chromaui/action@latest
# Chromatic CI config: https://www.chromatic.com/docs/github-actions/
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/ui/components
workingDir: packages/fern-docs/components
onlyChanged: true

fern-generate:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs-bundle-dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/docs-bundle (dev)
name: Deploy @fern-docs/bundle (dev)

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
with:
token: ${{ secrets.VERCEL_TOKEN }}
project: "app-dev.buildwithfern.com"
package: "@fern-ui/docs-bundle"
package: "@fern-docs/bundle"
environment: "production"
branch: main

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-docs-bundle-preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Preview @fern-ui/docs-bundle
name: Preview @fern-docs/bundle

on:
pull_request:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
with:
token: ${{ secrets.VERCEL_TOKEN }}
project: "app.buildwithfern.com"
package: "@fern-ui/docs-bundle"
package: "@fern-docs/bundle"
environment: "preview"
branch: ${{ github.event.pull_request.head.ref || github.ref_name || github.ref }}

Expand Down Expand Up @@ -100,26 +100,26 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: bundle
path: packages/ui/docs-bundle/.next/analyze/__bundle_analysis.json
path: packages/fern-docs/bundle/.next/analyze/__bundle_analysis.json

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v6
if: success() && github.event.number
with:
workflow: deploy-docs-bundle-preview.yml
branch: ${{ github.event.pull_request.base.ref }}
path: packages/ui/docs-bundle/.next/analyze/base
path: packages/fern-docs/bundle/.next/analyze/base

# https://infrequently.org/2021/03/the-performance-inequality-gap/
- name: Compare with base branch bundle
if: success() && github.event.number
run: ls -laR packages/ui/docs-bundle/.next/analyze/base && pnpm --package=nextjs-bundle-analysis dlx compare
run: ls -laR packages/fern-docs/bundle/.next/analyze/base && pnpm --package=nextjs-bundle-analysis dlx compare

- name: Comment PR Bundle Analysis
if: github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
with:
filePath: packages/ui/docs-bundle/.next/analyze/__bundle_analysis_comment.txt
filePath: packages/fern-docs/bundle/.next/analyze/__bundle_analysis_comment.txt
comment_tag: bundle_analysis

deploy-dev:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy-docs-bundle-prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/docs-bundle
name: Deploy @fern-docs/bundle

on:
push:
Expand Down Expand Up @@ -88,6 +88,8 @@ jobs:
if: success()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
- name: Revalidate all app.buildwithfern.com deployments
run: pnpm vercel-scripts revalidate-all app.buildwithfern.com --token ${{ secrets.VERCEL_TOKEN }}

Expand All @@ -98,6 +100,8 @@ jobs:
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
- name: Rollback on failure # remove this step once we switch back to pre-promotion testing
run: |
echo "E2E tests failed. Rolling back deployment"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-fdr-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- ".github/workflows/publish-fdr-sdk.yml"
- "packages/fdr-sdk/**"
# Remove this once fdr is no longer needed in the generation
- "packages/ui/fern-docs-search-server/**"
- "packages/fern-docs/search-server/**"
- "pnpm-lock.yaml"

env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-fontawesome-cdn.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/fontawesome-cdn
name: Deploy @fern-docs/icons-cdn

on:
push:
Expand All @@ -23,7 +23,7 @@ jobs:
with:
token: ${{ secrets.VERCEL_TOKEN }}
project: "icons.ferndocs.com"
package: "@fern-ui/fontawesome-cdn"
package: "@fern-docs/icons-cdn"
environment: "production"
branch: main

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy-local-preview-bundle-dryrun.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/local-preview-bundle (Dry Run)
name: Deploy @fern-docs/local-preview-bundle (Dry Run)

on:
pull_request:
Expand Down Expand Up @@ -26,9 +26,9 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: pnpm turbo --filter=@fern-docs/local-preview-bundle build
- name: Synthesize local preview bundle
run: pnpm --filter=@fern-ui/cdk run synth:dev2
run: pnpm --filter=@fern-platform/cdk run synth:dev2

prod:
runs-on: ubuntu-latest
Expand All @@ -44,6 +44,6 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: pnpm turbo --filter=@fern-docs/local-preview-bundle build
- name: Synthesize local preview bundle
run: pnpm --filter=@fern-ui/cdk run synth:prod
run: pnpm --filter=@fern-platform/cdk run synth:prod
10 changes: 5 additions & 5 deletions .github/workflows/deploy-local-preview-bundle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy @fern-ui/local-preview-bundle
name: Deploy @fern-docs/local-preview-bundle

on:
workflow_dispatch: {}
Expand Down Expand Up @@ -31,9 +31,9 @@ jobs:
- name: Build local preview bundle
run: |
pnpm compile
ENABLE_SOURCE_MAPS=true pnpm turbo --filter=@fern-ui/local-preview-bundle build
ENABLE_SOURCE_MAPS=true pnpm turbo --filter=@fern-docs/local-preview-bundle build
- name: Deploy local preview bundle
run: pnpm --filter=@fern-ui/cdk run deploy:dev2
run: pnpm --filter=@fern-platform/cdk run deploy:dev2

prod:
runs-on: ubuntu-latest
Expand All @@ -50,6 +50,6 @@ jobs:
- name: Install
uses: ./.github/actions/install
- name: Build local preview bundle
run: pnpm turbo --filter=@fern-ui/local-preview-bundle build
run: pnpm turbo --filter=@fern-docs/local-preview-bundle build
- name: Deploy local preview bundle
run: pnpm --filter=@fern-ui/cdk run deploy:prod
run: pnpm --filter=@fern-platform/cdk run deploy:prod
Loading
Loading