Update generate_toc_for_readme.sh to format Table of Contents

Updated the shell script generate_toc_for_readme.sh to clear the existing TOC.md file and generate a new table of contents in this file. This is achieved by obtaining the directory structure and writing it into TOC.md. A more detailed listing of files can now be found in TOC.md rather than in README.md.
This commit is contained in:
LouisShark 2023-12-10 14:02:49 +08:00
parent 8ac8e180ed
commit 5a3b80adaa
3 changed files with 236 additions and 229 deletions

View file

@ -32,4 +32,8 @@ generate_toc() {
done
}
generate_toc .
# 清空现有的 TOC.md 文件内容
> TOC.md
# 生成目录并将其写入 structure.md
generate_toc . >> TOC.md