Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,19 @@ jobs:
path: "_out/"

- name: Install prose linter
env:
VALE_VERSION: "3.21.0"
VALE_SHA256: "96997d19a4ca6981673b0d4c5ca7f3ede4a9f97964a96edc29fba9e28a328336"
run: |
sudo snap install vale
set -euo pipefail
tarball="vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
curl --fail --silent --show-error --location --retry 5 --retry-all-errors \
-o "$RUNNER_TEMP/$tarball" \
"https://github.com/vale-cli/vale/releases/download/v${VALE_VERSION}/$tarball"
echo "$VALE_SHA256 $RUNNER_TEMP/$tarball" | sha256sum --check
mkdir -p "$RUNNER_TEMP/vale"
tar -xzf "$RUNNER_TEMP/$tarball" -C "$RUNNER_TEMP/vale" vale
echo "$RUNNER_TEMP/vale" >> "$GITHUB_PATH"

- name: Preprocess HTML for prose linter
run: |
Expand Down
2 changes: 1 addition & 1 deletion .vale/scripts/rewrite_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def process_html_file(filepath, output_filepath):
header_tag.contents[0].replace_with(no_num)
for other in header_tag.find_all(['span'], class_="permalink-widget"):
other.decompose()
header_tag.replace_with(header_tag.get_text())
header_tag.unwrap()

# Simplify ordinal idiom
for code_tag in soup.find_all('code'):
Expand Down
Loading