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:
@@ -32,4 +32,8 @@ generate_toc() {
|
||||
done
|
||||
}
|
||||
|
||||
generate_toc .
|
||||
# 清空现有的 TOC.md 文件内容
|
||||
> TOC.md
|
||||
|
||||
# 生成目录并将其写入 structure.md
|
||||
generate_toc . >> TOC.md
|
||||
|
||||
Reference in New Issue
Block a user