docs.yml

 1name: Docs
 2
 3on:
 4  pull_request:
 5    paths:
 6      - "docs/**"
 7  push:
 8    branches:
 9      - main
10  merge_group:
11
12jobs:
13  check_formatting:
14    name: "Check formatting"
15    if: github.repository_owner == 'zed-industries'
16    runs-on: ubuntu-latest
17
18    steps:
19      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20
21      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
22        with:
23          version: 9
24
25      - name: Prettier Check on /docs
26        working-directory: ./docs
27        run: |
28          pnpm dlx prettier . --check || {
29            echo "To fix, run from the root of the zed repo:"
30            echo "  cd docs && pnpm dlx prettier . --write && cd .."
31            false
32          }
33
34      - name: Check for Typos with Typos-CLI
35        uses: crate-ci/typos@8e6a4285bcbde632c5d79900a7779746e8b7ea3f # v1.24.6
36        with:
37          config: ./typos.toml
38          files: ./docs/