添加自动化脚本, 当用户提交文档的时候优先把图片放到和MDX同一级 #18
Workflow file for this run
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
| 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" | |
| jobs: | |
| check-content: | |
| 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 | |
| # Build the site to validate MDX and docs using Fumadocs | |
| - run: pnpm build |