diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml index dc551a94..71a1b522 100644 --- a/.github/workflows/build-site.yml +++ b/.github/workflows/build-site.yml @@ -56,4 +56,5 @@ jobs: directory: "_site" arguments: | --ignore-files "/.+\/_posts\/README.md" + --ignore-urls "/^https?:\/\/(www\.)?pyopensci\.org\//" --checks "Images,Scripts" diff --git a/_config.yml b/_config.yml index cd665920..96075b61 100644 --- a/_config.yml +++ b/_config.yml @@ -165,7 +165,6 @@ footer: include: - .htaccess - _pages - - _posts exclude: - "*.sublime-project" - "*.sublime-workspace" diff --git a/lychee.toml b/lychee.toml index bf876392..9a5fd5d9 100644 --- a/lychee.toml +++ b/lychee.toml @@ -60,4 +60,7 @@ include_verbatim = false # Regex excludes. Plain-domain skips belong in .lycheeignore. exclude = [ 'zenodo\.org', + # Self-references to the deployed site lag the build, producing false + # 404s for new pages. Internal links are validated via relative paths. + '^https?://(www\.)?pyopensci\.org/', ]