Skip to content

Commit

Permalink
docs: update link check instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Nov 18, 2024
1 parent 214d8b4 commit d2e5e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ You should then be able to open <http://localhost:4321> and see your changes.
When adding or translating content in the Starlight docs site, you can check all internal links are valid.
All GitHub PRs are checked this way automatically, but testing locally can help if you want to confirm changes are correct before committing them.

To do this, move into the `docs/` directory from the root of the repo and then build the site with the `CHECK_LINKS` environment variable:
To do this, move into the `docs/` directory from the root of the repo and then run `pnpm linkcheck`:

```sh
cd docs
CHECK_LINKS=true pnpm build
pnpm linkcheck
```

If there are any broken links, the build will fail and log which pages need to be fixed.
Expand Down

0 comments on commit d2e5e3d

Please sign in to comment.