bookindex: regen #1030
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: proselint | |
on: | |
# Trigger the workflow on push or pull requests, but only for the | |
# master branch | |
push: | |
branches: | |
- master | |
- '*/ci' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install prereqs | |
run: sudo apt-get install python3-proselint | |
- name: trim off quoted parts | |
run: find . -name "*.md" -print0 | xargs -0 -n1 .github/scripts/cleanmd.pl | |
# config file help: https://github.com/amperser/proselint/ | |
- name: store proselint config | |
run: | | |
echo '{' > $HOME/.proselintrc | |
echo ' "checks": {' >> $HOME/.proselintrc | |
echo ' "typography.diacritical_marks": false,' >> $HOME/.proselintrc | |
echo ' "typography.symbols": false,' >> $HOME/.proselintrc | |
echo ' "annotations.misc": false' >> $HOME/.proselintrc | |
echo ' }' >> $HOME/.proselintrc | |
echo '}' >> $HOME/.proselintrc | |
- name: check prose | |
run: make check |