Skip to content

Commit 8ff4b1e

Browse files
committed
Make TOC and BL headers overridable
1 parent 162142b commit 8ff4b1e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ inputs:
1818
description: "Update existing backlinks."
1919
required: false
2020
default: true
21+
backlinks_header:
22+
description: "Override the default backlinks header."
23+
required: false
24+
default: "## Pages that link here"
25+
toc_header:
26+
description: "Override the default table of contents header."
27+
required: false
28+
default: "**Table of Contents:**"
2129

2230
runs:
2331
using: "composite"
@@ -29,6 +37,7 @@ runs:
2937
env:
3038
INPUT_PATH: ${{ inputs.path }}
3139
ACTION_PATH: ${{ github.action_path }}
40+
WIKI_BACKLINKS_HEADER: ${{ inputs.backlinks_header }}
3241

3342
- name: "Update tables of contents"
3443
run: |
@@ -37,3 +46,4 @@ runs:
3746
env:
3847
INPUT_PATH: ${{ inputs.path }}
3948
ACTION_PATH: ${{ github.action_path }}
49+
WIKI_TOC_HEADER: ${{ inputs.toc_header }}

0 commit comments

Comments
 (0)