add config to pa11y to workaround github actions issue

fixes #1932
This commit is contained in:
Jonathan Wren 2024-10-01 20:13:23 -07:00
parent af1b9f128e
commit cb99feb100
No known key found for this signature in database

View file

@ -41,7 +41,14 @@ def generate_pa11y_config_from_sitemap():
urls += [url["loc"] for url in xml_sitemap["urlset"]["url"]]
with open(CONFIG_FILENAME, "w") as f:
f.write(json.dumps({"urls": urls}))
f.write(
json.dumps(
{
"defaults": {"chromeLaunchConfig": {"args": ["--no-sandbox"]}},
"urls": urls,
}
)
)
def output_file(file):