调整设计模式说明顺序及格式,提高文档可读性 #22
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: lint markdown | |
on: [workflow_dispatch, push, pull_request] | |
jobs: | |
lint-markdown: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set node version | |
uses: actions/setup-node@v4 | |
- name: Install lint-md | |
run: npm install @lint-md/cli -g | |
- name: Install zhlint | |
run: npm install zhlint -g | |
- name: Lint markdown | |
run: lint-md 'README.md' --config=.lintmdrc --threads | |
# - name: Lint zh_CN | |
# run: zhlint 'README.md' --config=.zhlintrc |