File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -40,21 +40,21 @@ jobs:
4040 cat tree.md >> combined.md
4141 echo "" >> combined.md
4242
43- # Find and sort README.md files first, excluding doc/readme.md
44- find doc -type f -name "readme.md" ! -path "doc/readme.md" | sort | while read -r file; do
45- echo "Processing $file"
46- cat "$file" >> combined.md
47- echo "" >> combined.md
48- done
49-
50- # Add doc/readme.md after other README.md files
43+ # Insert doc/readme.md first
5144 if [ -f "doc/readme.md" ]; then
5245 echo "Processing doc/readme.md"
5346 cat "doc/readme.md" >> combined.md
5447 echo "" >> combined.md
5548 fi
5649
57- # Find and sort other .md files
50+ # Find and sort other README.md files (excluding doc/readme.md)
51+ find doc -type f -name "readme.md" ! -path "doc/readme.md" | sort | while read -r file; do
52+ echo "Processing $file"
53+ cat "$file" >> combined.md
54+ echo "" >> combined.md
55+ done
56+
57+ # Find and sort other .md files (excluding readme.md and doc-tree.md)
5858 find doc -type f -name "*.md" ! -name "readme.md" ! -name "doc-tree.md" | sort | while read -r file; do
5959 echo "Processing $file"
6060 cat "$file" >> combined.md
You can’t perform that action at this time.
0 commit comments