mirror of
https://github.com/rust-unofficial/awesome-rust
synced 2024-11-10 06:14:13 +00:00
Add ToC lint
This commit is contained in:
parent
fbe4afca36
commit
864208e1fe
3 changed files with 18 additions and 0 deletions
14
.github/workflows/lint.yml
vendored
14
.github/workflows/lint.yml
vendored
|
@ -28,3 +28,17 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
- name: Check for editorconfig violations
|
||||
uses: editorconfig-checker/action-editorconfig-checker@v1
|
||||
|
||||
lint-markdown-toc:
|
||||
runs-on: ubuntu-latest
|
||||
name: Lint for Table of Contents
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: 'npm'
|
||||
- run: npm install markdown-toc
|
||||
- run: ./node_modules/.bin/markdown-toc -i README.md
|
||||
- run: git diff --exit-code
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
.idea/
|
||||
.vscode/
|
||||
target/
|
||||
node_modules/
|
||||
|
|
|
@ -6,6 +6,7 @@ If you want to contribute, please read [this](CONTRIBUTING.md).
|
|||
|
||||
## Table of contents
|
||||
|
||||
<!-- toc -->
|
||||
- [Applications](#applications)
|
||||
- [Audio and Music](#audio-and-music)
|
||||
- [Cryptocurrencies](#cryptocurrencies)
|
||||
|
@ -101,6 +102,8 @@ If you want to contribute, please read [this](CONTRIBUTING.md).
|
|||
- [Resources](#resources)
|
||||
- [License](#license)
|
||||
|
||||
<!-- tocstop -->
|
||||
|
||||
## Applications
|
||||
|
||||
See also [Rust — Production](https://www.rust-lang.org/production) organizations running Rust in production.
|
||||
|
|
Loading…
Reference in a new issue