mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
72c41f7c8b
This spellchecker checks markdown files. For this reason this job converts all man pages in the repository to markdown with pandoc before the check runs. The perl script 'cleanspell' filters out details from the man page in the process, to avoid the spellchecker trying to spellcheck things it can't. Like curl specific symbols and the SYNOPSIS and EXAMPLE sections of libcurl man pages. The spell checker does not check words in sections that are within pre, strong and em tags. 'spellcheck.words' is a custom word list with additional accepted words. Closes #9523
33 lines
677 B
YAML
33 lines
677 B
YAML
# Copyright (C) 2022 Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
#
|
|
# Docs: https://github.com/UnicornGlobal/spellcheck-github-actions
|
|
matrix:
|
|
- name: Markdown
|
|
expect_match: false
|
|
apsell:
|
|
mode: en
|
|
dictionary:
|
|
wordlists:
|
|
- wordlist.txt
|
|
output: wordlist.dic
|
|
encoding: utf-8
|
|
pipeline:
|
|
- pyspelling.filters.markdown:
|
|
markdown_extensions:
|
|
- markdown.extensions.extra:
|
|
- pyspelling.filters.html:
|
|
comments: true
|
|
attributes:
|
|
- title
|
|
- alt
|
|
ignores:
|
|
- ':matches(code, pre)'
|
|
- 'code'
|
|
- 'pre'
|
|
- 'strong'
|
|
- 'em'
|
|
sources:
|
|
- '**/*.md|!docs/BINDINGS.md'
|