lychee: add page (#13733)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
pull/28/head
Managor 2024-09-19 13:38:01 +03:00 committed by GitHub
parent 08ce1bae3c
commit 335de6f8fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 0 deletions

24
pages/common/lychee.md Normal file
View File

@ -0,0 +1,24 @@
# lychee
> Find broken URLs.
> More information: <https://lychee.cli.rs/usage/cli/>.
- Scan a website for broken links:
`lychee {{https://example.com}}`
- Display a breakdown of error types:
`lychee --format detailed {{https://example.com}}`
- Limit the amount of connections to prevent DDOS protection:
`lychee --max-concurrency {{5}} {{links.txt}}`
- Check files in a directory structure for any broken URLs:
`grep -r "{{pattern}}" | lychee -`
- Display help:
`lychee --help`