summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJonathan Wren <jonathan@nowandwren.com>2022-01-08 14:51:02 -0800
committerGitHub <noreply@github.com>2022-01-08 14:51:02 -0800
commite7f24527c3c3ffa4d34f57e9466e8b465876275f (patch)
tree325b902a329fe25c8dddf01526145127527651dd /.github
parentc4c60efab2ef9f1beb53c29e07306fd7865f47e5 (diff)
Fix styling on documentation sidebar (#1395)
* fix sidebar stling in docs theme * don't display heading levels higher than 3 in sidebar * update sitemap step for easier debugging * add matrix so github doesn't get confused
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docs.yaml17
1 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 3b8cfa96..ac85f2c0 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -22,6 +22,11 @@ jobs:
accessibility:
if: contains(toJson(github.event.commits), '[ci skip]') == false
runs-on: ubuntu-latest
+ strategy:
+ fail-fast: true
+ matrix:
+ python-version: [ 3.9 ]
+ os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v2
@@ -29,7 +34,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
- python-version: 3.9
+ python-version: ${{ matrix.python-version }}
- name: Setup Node.js environment
uses: actions/setup-node@main
@@ -61,8 +66,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