Skip to content

Commit 7bec2ed

Browse files
authored
Update main.yml
1 parent 44e2678 commit 7bec2ed

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,27 @@ jobs:
4040
cat tree.md >> combined.md
4141
echo "" >> combined.md
4242
43-
# Find and sort README.md files first
44-
find doc -type f -name "readme.md" | sort | while read -r file; do
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
4545
echo "Processing $file"
4646
cat "$file" >> combined.md
4747
echo "" >> combined.md
4848
done
4949
50+
# Add doc/readme.md after other README.md files
51+
if [ -f "doc/readme.md" ]; then
52+
echo "Processing doc/readme.md"
53+
cat "doc/readme.md" >> combined.md
54+
echo "" >> combined.md
55+
fi
56+
5057
# Find and sort other .md files
5158
find doc -type f -name "*.md" ! -name "readme.md" ! -name "doc-tree.md" | sort | while read -r file; do
5259
echo "Processing $file"
5360
cat "$file" >> combined.md
5461
echo "" >> combined.md
5562
done
63+
5664
- name: Convert README.md to README.pdf
5765
run: pandoc combined.md -o README.pdf --pdf-engine=xelatex
5866

0 commit comments

Comments
 (0)