mirror of
https://github.com/LouisShark/chatgpt_system_prompt.git
synced 2025-07-06 14:50:31 -04:00
docs: Flipper Zero App Builder.md
This commit is contained in:
parent
09eb526685
commit
4e12aca7d6
9 changed files with 2594 additions and 3 deletions
|
@ -3,11 +3,19 @@
|
|||
generate_toc() {
|
||||
local dir=$1
|
||||
local base_dir=$(pwd)
|
||||
local exclude_dir="knowledge" # 设置要排除的目录名称
|
||||
|
||||
for file in "$dir"/*; do
|
||||
# 获取文件或目录的基本名称
|
||||
local name=$(basename "$file")
|
||||
|
||||
# 如果是要排除的目录,则跳过
|
||||
if [ "$name" == "$exclude_dir" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ -d "$file" ]; then
|
||||
local dir_name=$(basename "$file")
|
||||
echo "- $dir_name"
|
||||
echo "- $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