File tree 5 files changed +22
-3
lines changed
5 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ /scripts /gh-md-toc
2
+ test_readme.md
Original file line number Diff line number Diff line change 88
88
shell : bash
89
89
run : " python -m pip install jinja2 pyyaml"
90
90
91
+ - name : " Install github-markdown-toc"
92
+ shell : bash
93
+ run : |
94
+ curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o ${{ github.action_path }}/scripts/gh-md-toc
95
+ chmod a+x ${{ github.action_path }}/scripts/gh-md-toc
96
+
91
97
- name : " Update README.md"
92
98
shell : bash
93
99
run : " bash ${{ github.action_path }}/scripts/update_readme.sh \" ${{ inputs.readme_path }}\" "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -e
4
+
3
5
if [[ $SKIP_README == " true" ]]; then
4
6
echo " Generation of README.md is disabled."
5
7
exit 0
19
21
fi
20
22
21
23
python $SCRIPT_DIR /../readme_builder.py > $1
24
+
25
+ # If TOC tag is in the readme generate and add the TOC.
26
+ if grep -q " <\!\-\-ts\-\->" " $1 " ; then
27
+ $SCRIPT_DIR /gh-md-toc --insert --no-backup --hide-footer $1
28
+ fi
Original file line number Diff line number Diff line change 1
1
{% set short_repository = repository.split("/")[ 1] -%}
2
2
# {{ short_repository }}
3
3
4
-
5
4
{{ description }}
6
5
6
+ <!-- ts-->
7
+ <!-- te-->
8
+
7
9
## Benefits
8
10
9
11
### Multi Architecture Builds
@@ -38,6 +40,8 @@ Containers are rebuilt weekly in order to take on the security patches from upst
38
40
39
41
{{ quick_start }}
40
42
43
+ {{ documentation }}
44
+
41
45
## Python Versions
42
46
43
47
This project actively supports these Python versions:
@@ -81,4 +85,3 @@ Every tag in this repository supports these architectures:
81
85
82
86
{{ tags }}
83
87
84
- {{ documentation }}
Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ export PACKAGE_VERSIONS="0.13.3 0.13.4 0.14.0 0.15.0"
7
7
export PYTHON_VERSIONS=" 3.6 3.7 3.8 3.9 3.10"
8
8
export ORGANIZATION=" TestOrganization"
9
9
export REPOSITORY=" TestOrganization/TestRepository"
10
+ export REPOSITORY_SHORT=" TestRepository"
10
11
11
- ./scripts/update_readme.sh -
12
+ ./scripts/update_readme.sh ./test_readme.md
You can’t perform that action at this time.
0 commit comments