mirror of
https://github.com/curl/curl.git
synced 2026-06-03 18:14:16 +03:00
CI/spellcheck: build curl.1 and spellcheck it
Added acceptable words Closes #11562
This commit is contained in:
parent
959e613e7c
commit
6b11d9d86b
2 changed files with 30 additions and 1 deletions
12
.github/workflows/spellcheck.yml
vendored
12
.github/workflows/spellcheck.yml
vendored
|
|
@ -36,6 +36,12 @@ jobs:
|
|||
- name: install pandoc
|
||||
run: sudo apt-get install pandoc
|
||||
|
||||
- name: build curl.1
|
||||
run: |
|
||||
autoreconf -fi
|
||||
./configure --without-ssl
|
||||
make -C docs
|
||||
|
||||
- name: strip "uncheckable" sections from .3 pages
|
||||
run: find docs -name "*.3" -size +40c | sed 's/\.3//' | xargs -t -n1 -I OO ./.github/scripts/cleanspell.pl OO.3 OO.33
|
||||
|
||||
|
|
@ -45,6 +51,12 @@ jobs:
|
|||
- name: convert .1 man pages to markdown
|
||||
run: find docs -name "*.1" -size +40c | sed 's/\.1//' | xargs -t -n1 -I OO pandoc OO.1 -o OO.md
|
||||
|
||||
- name: trim the curl.1 markdown file
|
||||
run: |
|
||||
perl -pi -e 's/^ .*//' docs/curl.md
|
||||
perl -pi -e 's/--[a-z0-9-]*//ig' docs/curl.md
|
||||
perl -pi -e 's!https://[a-z0-9%/.-]*!!ig' docs/curl.md
|
||||
|
||||
- name: setup the custom wordlist
|
||||
run: grep -v '^#' .github/scripts/spellcheck.words > wordlist.txt
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue