Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/content-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ name: Content Check
on:
pull_request:
paths:
- '**/*.md'
- '**/*.mdx'
- 'source.config.ts'
- 'app/docs/**'
- 'lib/source.ts'
- 'mdx-components.tsx'
- 'package.json'
- 'pnpm-lock.yaml'
- 'next.config.mjs'
- 'postcss.config.mjs'
- 'tailwind.config.ts'
- 'tsconfig.json'
- "**/*.md"
- "**/*.mdx"
- "source.config.ts"
- "app/docs/**"
- "lib/source.ts"
- "mdx-components.tsx"
- "package.json"
- "pnpm-lock.yaml"
- "next.config.mjs"
- "postcss.config.mjs"
- "tailwind.config.ts"
- "tsconfig.json"

jobs:
check-content:
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: '1'
CI: 'true'
NEXT_TELEMETRY_DISABLED: "1"
CI: "true"
steps:
- uses: actions/checkout@v4

Expand All @@ -32,7 +32,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache: "pnpm"

- run: pnpm install --frozen-lockfile
# Build the site to validate MDX and docs using Fumadocs
Expand Down
106 changes: 53 additions & 53 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: '1'
CI: 'true'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run build # ← 只需要 build,静态站会输出到 ./out
# (可选)避免被 Jekyll 处理
- run: touch ./out/.nojekyll
- uses: actions/upload-pages-artifact@v3
with:
path: ./out
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: "1"
CI: "true"
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- run: pnpm install --frozen-lockfile
- run: pnpm run build # ← 只需要 build,静态站会输出到 ./out

# (可选)避免被 Jekyll 处理
- run: touch ./out/.nojekyll

- uses: actions/upload-pages-artifact@v3
with:
path: ./out

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ next-env.d.ts
.cursor

# contentlayer
.contentlayer
.contentlayer

# source
.source
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
16 changes: 16 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Dependencies
node_modules

# Build outputs
build
dist
.next
out

# Test coverage
coverage

# Misc
*.log
.cache
.turbo
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
12 changes: 0 additions & 12 deletions .source/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions .source/source.config.mjs

This file was deleted.

Loading