mirror of
https://github.com/LouisShark/chatgpt_system_prompt.git
synced 2025-07-05 14:20:33 -04:00
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:
parent
8ac8e180ed
commit
5a3b80adaa
3 changed files with 236 additions and 229 deletions
|
@ -32,4 +32,8 @@ generate_toc() {
|
|||
done
|
||||
}
|
||||
|
||||
generate_toc .
|
||||
# 清空现有的 TOC.md 文件内容
|
||||
> TOC.md
|
||||
|
||||
# 生成目录并将其写入 structure.md
|
||||
generate_toc . >> TOC.md
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue