Skip to content

Commit c817a8f

Browse files
fix(ci): sitemap generation
Signed-off-by: Victor Adossi <[email protected]>
1 parent 5abbe48 commit c817a8f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/mdbook.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ jobs:
6262
fi
6363
6464
- name: Generate sitemap
65+
shell: bash
6566
run: |
6667
cd ${{ env.ARTIFACT_PATH }}
67-
python3 ../scripts/generate_sitemap.py --domain "component-model.bytecodealliance.org" --higher-priority "design" --output-path book/sitemap.xml
68-
cd ..
68+
python3 ../../../scripts/generate_sitemap.py --domain "component-model.bytecodealliance.org" --higher-priority "design" --output-path sitemap.xml
69+
cd ../../../
6970
7071
- name: Setup Pages
7172
id: pages

scripts/generate_sitemap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def parse_summary():
77
"""Parse URLs from the SUMMARY.md file."""
8-
with open("src/SUMMARY.md", "r") as file:
8+
with open("../../src/SUMMARY.md", "r") as file:
99
for line in file:
1010
if "](" in line:
1111
url = line.split("](")[1].split(")")[0]

0 commit comments

Comments
 (0)