Skip to content

Commit 15926ab

Browse files
authored
ci: add index.md when autogenerating README.md (#518)
1 parent 45c7986 commit 15926ab

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/update-readme.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
- name: Read Documentation Index
2929
id: read-doc-index
3030
uses: unity3d-jp/actions/read-file@main
31+
with:
32+
filepath: 'com.unity.toonshader/Documentation~/index.md'
33+
- name: Read Documentation TOC
34+
id: read-doc-toc
35+
uses: unity3d-jp/actions/read-file@main
3136
with:
3237
filepath: 'com.unity.toonshader/Documentation~/TableOfContents.md'
3338
- name: Overwrite Readme with Index
@@ -56,6 +61,10 @@ jobs:
5661
cat temp.md >> $generated_file
5762
rm temp.md
5863
64+
cat <<"EOF" >> $generated_file
65+
${{ steps.read-doc-toc.outputs.content }}
66+
EOF
67+
5968
cat <<"EOF" >> $generated_file
6069
${{ steps.read-footer.outputs.content }}
6170
EOF

AutoGenerateParts/ReadmeHeader.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
- [English](https://docs.unity3d.com/Packages/com.unity.toonshader@latest)
33
- [日本語](https://docs.unity3d.com/ja/Packages/com.unity.toonshader@latest)
44

5-
# Unity Toon Shader
65

0 commit comments

Comments
 (0)