Skip to content

Commit c9a5b64

Browse files
authored
chore: makefile to mise in docs/ (#6418)
1 parent 7e90689 commit c9a5b64

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

.github/workflows/docs-check.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@ jobs:
3131
working-directory: ./docs
3232
steps:
3333
- uses: actions/checkout@v6
34-
- uses: actions/setup-node@v6
35-
with:
36-
node-version: 20
37-
package-manager-cache: false
38-
- run: corepack enable
39-
- run: make format-spellcheck-dictionary-check
34+
- uses: jdx/mise-action@v3
35+
- run: mise run docs:format-spellcheck-dictionary-check
4036
- run: yarn --immutable
4137
- run: yarn typecheck
4238
- run: yarn spellcheck

docs/Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

mise.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,25 @@ run = '''
170170
cargo llvm-cov -p forest-filecoin --codecov --output-path lcov.info
171171
'''
172172

173+
[tasks."docs:format-spellcheck-dictionary"]
174+
description = "Format and deduplicate the spellcheck dictionary."
175+
dir = "docs"
176+
run = '''
177+
TMPFILE=$(mktemp)
178+
cat dictionary.txt | sort --ignore-case | uniq > "$TMPFILE"
179+
mv "$TMPFILE" dictionary.txt
180+
'''
181+
182+
[tasks."docs:format-spellcheck-dictionary-check"]
183+
description = "Check if spellcheck dictionary is properly formatted."
184+
dir = "docs"
185+
run = '''
186+
TMPFILE=$(mktemp)
187+
trap "rm -f $TMPFILE" EXIT
188+
cat dictionary.txt | sort --ignore-case | uniq > "$TMPFILE"
189+
diff dictionary.txt "$TMPFILE"
190+
'''
191+
173192
[tools]
174193
cargo-binstall = "1.16.6"
175194
go = "1.25.5"

0 commit comments

Comments
 (0)