Ensure `check-links:all` also builds first (#833)

This commit is contained in:
Patrice Chalin 2021-08-19 16:40:03 -04:00 committed by GitHub
parent 59ecd268d5
commit afde634755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,8 @@ DirectoryPath: public
IgnoreDirectoryMissingTrailingSlash: true IgnoreDirectoryMissingTrailingSlash: true
IgnoreAltMissing: true IgnoreAltMissing: true
CheckDoctype: false # Sadly, this is false only because of `google*.html` CheckDoctype: false # Sadly, this is false only because of `google*.html`
IgnoreURLs:
- "^https?://localhost.*"
IgnoreInternalURLs: IgnoreInternalURLs:
- /docs/languages/csharp/daily-builds/ - /docs/languages/csharp/daily-builds/
- /docs/languages/php/daily-builds/ - /docs/languages/php/daily-builds/

View File

@ -4,10 +4,11 @@
"build:preview": "hugo --cleanDestinationDir -DFE --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"", "build:preview": "hugo --cleanDestinationDir -DFE --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
"build:production": "hugo --cleanDestinationDir --minify", "build:production": "hugo --cleanDestinationDir --minify",
"build": "hugo --cleanDestinationDir -e dev -DFE", "build": "hugo --cleanDestinationDir -e dev -DFE",
"check-links:all": "npm run _check-links HTMLTEST_ARGS=", "check-links:all": "HTMLTEST_ARGS= npm run _check-links",
"check-links": "npm run _check-links", "check-links": "npm run _check-links",
"postbuild:preview": "npm run _check-links", "postbuild:preview": "npm run _check-links",
"postbuild:production": "npm run _check-links", "postbuild:production": "npm run _check-links",
"precheck-links:all": "npm run build",
"precheck-links": "npm run build", "precheck-links": "npm run build",
"preinstall": "npm run submodule:get", "preinstall": "npm run submodule:get",
"serve": "netlify dev -c \"hugo serve --minify -DFE -w\"", "serve": "netlify dev -c \"hugo serve --minify -DFE -w\"",