[Docs] Warn that gesture relations can't mix new and old APIs #1126
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: Check documentation | |
| on: | |
| pull_request: | |
| paths: | |
| - packages/docs-gesture-handler/** | |
| workflow_dispatch: | |
| jobs: | |
| check: | |
| if: github.repository == 'software-mansion/react-native-gesture-handler' | |
| runs-on: ubuntu-latest | |
| env: | |
| WORKING_DIRECTORY: packages/docs-gesture-handler | |
| concurrency: | |
| group: docs-check-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install node dependencies | |
| working-directory: ${{ env.WORKING_DIRECTORY }} | |
| run: yarn | |
| - name: Generate docs | |
| working-directory: ${{ env.WORKING_DIRECTORY }} | |
| run: yarn build | |
| - name: Check docs llms.txt | |
| run: | | |
| file=packages/docs-gesture-handler/build/llms.txt | |
| if [ ! -s "$file" ]; then | |
| echo "::error::$file is missing or empty" | |
| exit 1 | |
| fi | |
| count=$(grep -cE '^- \[[^]]+\]\(https://docs\.swmansion\.com/react-native-gesture-handler/[^)]+\)' "$file" || true) | |
| if [ "$count" -eq 0 ]; then | |
| echo "::error::$file lists no pages" | |
| exit 1 | |
| fi |