-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest
More file actions
executable file
·28 lines (24 loc) · 1.42 KB
/
Copy pathtest
File metadata and controls
executable file
·28 lines (24 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -euo pipefail
export LANG=en_US.UTF-8
./scripts/build
# External URLs htmlproofer should not fail on. Two reasons appear here:
# dead — confirmed 404/gone, unrelated to this repo
# ci-block — live (200 from a browser) but returns 403/415 to htmlproofer,
# i.e. bot/WAF blocking, not a broken link
ignore_urls=(
"https://drive.google.com/file/d/0B_TmiicGbqjHb2ZGcE5QYmtXRHc/view?usp=sharing" # dead
"https://reps.mozilla.org/e/maker-party-gujarat/" # dead
"https://sayanchowdhury.dgplug.org/" # dead
"https://github.com/moby/moby/blob/master/CHANGELOG.md#180-2015-08-11" # dead
"https://www.ahduni.edu.in/" # ci-block
"https://pythonexpress.in/" # ci-block
"https://www.hackerearth.com" # ci-block
"http://www.gweca.ac.in" # ci-block
)
# htmlproofer wants a single comma-separated string.
ignore_urls_csv=$(IFS=,; echo "${ignore_urls[*]}")
# baseurl is empty (the site is served at the root of a custom domain), so
# internal links already resolve against ./_site/ with no URL rewriting.
bundle exec htmlproofer ./_site/ --only-4xx --no-enforce-https \
--ignore-urls "$ignore_urls_csv"