Skip to content

Commit b5edf75

Browse files
committed
ADD TO: publish action / auto-generate table of contents
1 parent 16c790f commit b5edf75

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/publish-wiki.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
shell: bash
4040
run: cp -v -a wiki _wiki
4141

42+
- name: Update tables of contents
43+
uses: umonkey/[email protected]
44+
with:
45+
path: wiki
46+
toc_header: "## Table of contents"
47+
4248
- name: Deploy to wiki
4349
uses: Andrew-Chen-Wang/github-wiki-action@v4
4450
with:

wiki/Fixing-Errors-Automatically.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
## Table of contents
2-
3-
* [About Automatic Fixing](#about-automatic-fixing)
4-
* [Using the PHP Code Beautifier and Fixer](#using-the-php-code-beautifier-and-fixer)
5-
* [Viewing Debug Information](#viewing-debug-information)
1+
__TOC__
62

73
***
84

0 commit comments

Comments
 (0)