mirror of
https://github.com/LouisShark/chatgpt_system_prompt.git
synced 2025-07-05 14:20:33 -04:00
docs: generate toc
This commit is contained in:
parent
cadac8690e
commit
fa864da5c5
2 changed files with 59 additions and 55 deletions
|
@ -7,7 +7,7 @@ generate_toc() {
|
|||
for file in "$dir"/*; do
|
||||
if [ -d "$file" ]; then
|
||||
local dir_name=$(basename "$file")
|
||||
echo "- [$dir_name](#$dir_name)"
|
||||
echo "- $dir_name"
|
||||
echo " $(generate_toc "$file")"
|
||||
elif [ -f "$file" ] && [[ $file == *.md ]]; then
|
||||
local title=$(basename "$file" .md)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue