Skip to content

Commit 6f54a8e

Browse files
authored
Add sitemap generator to website for crawling. (#350)
1 parent 0fdb37a commit 6f54a8e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/docs.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ jobs:
3636
cmake -S . -B build -G Ninja --install-prefix=$(pwd)/build/install -D MFC_DOCUMENTATION=ON
3737
ninja -C build install
3838
39+
# From here https://github.com/cicirello/generate-sitemap
40+
- name: Generate the sitemap
41+
id: sitemap
42+
uses: cicirello/generate-sitemap@v1
43+
with:
44+
base-url-path: https://mflowcode.github.io/
45+
path-to-root: build/install/docs
46+
include-pdf: false
47+
sitemap-format: txt
48+
49+
- name: Output stats
50+
run: |
51+
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
52+
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
53+
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
54+
3955
- name: Publish Documentation
4056
run: |
4157
set +e

0 commit comments

Comments
 (0)