Skip to content

Commit 62daede

Browse files
authored
Update main.yml
1 parent 78590cd commit 62daede

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ jobs:
2222
sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra tree
2323
2424
- name: Generate documentation tree in Markdown
25-
run: |
26-
tree doc -I 'node_modules|.git' -L 2 --noreport --charset ascii --prune --matchdirs --ignore-case -P '!*.md|!*.docx' > tree.md
25+
run: |
26+
tree doc -I 'node_modules|.git' -L 2 --noreport --charset ascii > tree.md
2727
28+
- name: Remove file extensions from tree.md
29+
run: |
30+
sed -i 's/\(.*\)\.[^.]*$/\1/' tree.md
31+
2832
- name: Format tree.md for Markdown
2933
run: |
3034
sed -i 's/^/ /' tree.md

0 commit comments

Comments
 (0)