mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +02:00
update sitemap step for easier debugging
This commit is contained in:
parent
919b87d88e
commit
0c574323fe
1 changed files with 9 additions and 1 deletions
10
.github/workflows/docs.yaml
vendored
10
.github/workflows/docs.yaml
vendored
|
@ -61,8 +61,16 @@ jobs:
|
|||
env:
|
||||
site_url: http://127.0.0.1:8000
|
||||
run: |
|
||||
filename='sitemap.xml'
|
||||
select="{urls: [\"${site_url}/\", \"${site_url}/search.html?q=jrnl\", .urlset.url[].loc]}"
|
||||
curl -s "$site_url/sitemap.xml" | poetry run xq "$select" > list.json
|
||||
|
||||
curl -s "${site_url}/${filename}" > $filename
|
||||
|
||||
echo "::group::${filename}"
|
||||
cat $filename
|
||||
echo '::endgroup::'
|
||||
|
||||
poetry run xq "$select" $filename > list.json
|
||||
|
||||
- name: Accessibility testing (Pa11y)
|
||||
run: pa11y-ci -c list.json
|
||||
|
|
Loading…
Add table
Reference in a new issue