]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI/spellcheck: build curl.1 and spellcheck it
authorDaniel Stenberg <daniel@haxx.se>
Tue, 1 Aug 2023 12:11:50 +0000 (14:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 1 Aug 2023 12:12:03 +0000 (14:12 +0200)
Added acceptable words

Closes #11562

.github/scripts/spellcheck.words
.github/workflows/spellcheck.yml

index 7be1719b43097b1b85f90cdb1a0f55fd1ea86d85..f598dbc02f38fc42d82b7b6eec77e69ad074699d 100644 (file)
@@ -77,6 +77,7 @@ buildconf
 Caddy
 calloc
 CAPA
+capath
 CCC
 CDN
 CentOS
@@ -187,6 +188,7 @@ EBCDIC
 ECC
 ECDHE
 ECH
+ECONNREFUSED
 eCOS
 EFnet
 EGD
@@ -259,6 +261,7 @@ ggcov
 Ghedini
 Gisle
 Glesys
+globbed
 globbing
 gmail
 GnuTLS
@@ -304,9 +307,9 @@ hsts
 HTC
 html
 http
+HTTPAUTH
 httpd
 HTTPD
-HTTPAUTH
 httpget
 HttpGet
 HTTPS
@@ -325,6 +328,7 @@ ifdef
 ifdefed
 Ifdefs
 ifdefs
+IIS
 ILE
 Illumos
 IMAP
@@ -335,6 +339,7 @@ impacket
 init
 initializer
 inlined
+interop
 interoperable
 interoperates
 IoT
@@ -364,6 +369,7 @@ keepalive
 Keil
 kerberos
 Keychain
+keychain
 KiB
 kickstart
 Kirei
@@ -500,6 +506,7 @@ NEC
 Necko
 NetBSD
 netrc
+netstat
 Netware
 NFS
 nghttp
@@ -558,6 +565,7 @@ permafailing
 PINGs
 pipelining
 PKCS
+pkcs
 PKGBUILD
 PKI
 pluggable
@@ -591,6 +599,7 @@ PTR
 ptr
 punycode
 PWD
+pwd
 py
 pycurl
 pytest
@@ -608,6 +617,7 @@ RBS
 ReactOS
 README
 realloc
+Realtime
 rebase
 RECV
 recv
@@ -781,6 +791,7 @@ toolset
 toplevel
 TPF
 TrackMemory
+transcode
 Tru
 Tse
 Tsujikawa
@@ -798,9 +809,12 @@ UIDL
 Ultrix
 Unary
 unassign
+UNC
 uncompress
+unencoded
 unencrypted
 unescape
+Unglobbed
 UNICOS
 unix
 UnixSockets
@@ -826,6 +840,7 @@ USD
 userdata
 Userinfo
 userinfo
+USERPROFILE
 UTF
 UX
 valgrind
@@ -849,6 +864,7 @@ watchOS
 WAV
 WB
 web page
+WebDAV
 WebOS
 WebSocket
 WEBSOCKET
@@ -872,6 +888,7 @@ WS
 WSS
 www
 Xbox
+XDG
 xdigit
 Xilinx
 XP
index 65a7da10c5b7ce83f15a40a4f302bd766ed33b3b..fa644a44b85944573a0f1fdfa9fb0c108833e7d0 100644 (file)
@@ -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