diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml new file mode 100644 index 00000000..d00e7fb3 --- /dev/null +++ b/.github/workflows/toc.yml @@ -0,0 +1,18 @@ +name: TOC Generator +on: + push: + branches: + - main + - ximo_dev + paths: + - 'README.md' # 只有 README.md 发生变化时触发name: TOC Generator +jobs: + generateTOC: + name: TOC Generator + runs-on: ubuntu-latest + steps: + - uses: technote-space/toc-generator@v4 + with: + CREATE_PR: true + GITHUB_TOKEN: ${{ secrets.LIBRO_TOKEN }} + PR_TITLE: 'chore(docs): update TOC of readme' diff --git a/README.md b/README.md index 8b2bfa60..465efe62 100644 --- a/README.md +++ b/README.md @@ -27,20 +27,8 @@ Language: English | [简体中文](./README_zh.md) --- -## Table of Contents - -- [Quick Start](#Quick-Start) -- [Quick Integration](#Quick-Integration) -- [New Features](#New-Features) - - [prompt cell](#prompt-cell) - - [sql cell](#sql-cell) -- [Technical Architecture](#Technical-Architecture) -- [Future Plans](#Future-Plans) -- [More](#More) - - [Reporting Issues](#Reporting-Issues) - - [Contributing](#Contributing) - - [Contributors](#Contributors) - - [Contact Us](#Contact-Us) + + --- diff --git a/README_zh.md b/README_zh.md index 37615081..1490dc88 100644 --- a/README_zh.md +++ b/README_zh.md @@ -27,20 +27,8 @@ --- -## 目录 - -- [快速开始](#快速开始) -- [快速集成](#快速集成) -- [新特性](#新特性) - - [prompt cell](#prompt-cell) - - [sql cell](#sql-cell) -- [架构](#架构) -- [后续计划](#后续计划) -- [更多](#更多) - - [提交issue](#提交issue) - - [贡献代码](#贡献代码) - - [贡献者](#贡献者) - - [联系我们](#联系我们) + + ---