2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-09-21 05:30:02 +08:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
|
|
|
name: spell
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
2022-09-21 05:30:02 +08:00
|
|
|
paths:
|
2023-12-06 18:05:20 +08:00
|
|
|
- '**.md'
|
|
|
|
- '**/spellcheck.yml'
|
|
|
|
- '**/spellcheck.yaml'
|
2024-02-19 16:54:21 +08:00
|
|
|
- '.github/scripts/*'
|
2022-09-21 05:30:02 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
2022-09-21 05:30:02 +08:00
|
|
|
paths:
|
2023-12-06 18:05:20 +08:00
|
|
|
- '**.md'
|
|
|
|
- '**/spellcheck.yml'
|
|
|
|
- '**/spellcheck.yaml'
|
2024-02-19 16:54:21 +08:00
|
|
|
- '.github/scripts/*'
|
2022-09-21 05:30:02 +08:00
|
|
|
|
2022-11-16 22:55:33 +08:00
|
|
|
permissions: {}
|
|
|
|
|
2022-09-21 05:30:02 +08:00
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-06 18:05:20 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-09-21 05:30:02 +08:00
|
|
|
|
2024-02-19 16:54:21 +08:00
|
|
|
- name: trim all man page *.md files
|
|
|
|
run: find docs -name "*.md" ! -name "_*" | xargs -n1 ./.github/scripts/cleancmd.pl
|
2022-09-21 05:30:02 +08:00
|
|
|
|
2024-02-19 16:54:21 +08:00
|
|
|
- name: trim libcurl man page *.md files
|
|
|
|
run: find docs/libcurl -name "curl_*.md" -o -name "libcurl*.md" | xargs -n1 ./.github/scripts/cleanspell.pl
|
2023-08-01 20:11:50 +08:00
|
|
|
|
2024-02-19 16:54:21 +08:00
|
|
|
- name: trim libcurl option man page *.md files
|
|
|
|
run: find docs/libcurl/opts -name "CURL*.md" | xargs -n1 ./.github/scripts/cleanspell.pl
|
2022-09-21 05:30:02 +08:00
|
|
|
|
2024-02-19 16:54:21 +08:00
|
|
|
- name: trim cmdline docs markdown _*.md files
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
run: find docs/cmdline-opts -name "_*.md" | xargs -n1 ./.github/scripts/cleancmd.pl --no-header
|
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- name: setup the custom wordlist
|
|
|
|
run: grep -v '^#' .github/scripts/spellcheck.words > wordlist.txt
|
2022-09-21 05:30:02 +08:00
|
|
|
|
2023-12-06 18:05:20 +08:00
|
|
|
- name: Check Spelling
|
|
|
|
uses: rojopolis/spellcheck-github-actions@v0
|
|
|
|
with:
|
|
|
|
config_path: .github/scripts/spellcheck.yaml
|