[Feat] add actions to generate TOC

pull/96/head
Mist 2024-05-02 17:00:09 +08:00
parent 5c365e0328
commit 48f37b9b78
2 changed files with 23 additions and 0 deletions

21
.github/workflows/generate_toc.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Generate TOC
on:
push:
paths:
README.md
branches:
main
permissions:
contents: write
jobs:
generate-toc:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- uses: technote-space/toc-generator@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -33,6 +33,8 @@
<h1 align="center">CodeSnap.nvim</h1> <h1 align="center">CodeSnap.nvim</h1>
<p align="center">📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim</p> <p align="center">📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim</p>
<!-- START doctoc -->
<!-- END doctoc -->
## 🚣Migration ## 🚣Migration
If you have installed v0.x before, this chapter will show you what break changes version v1.x introduced. If you have installed v0.x before, this chapter will show you what break changes version v1.x introduced.