Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links #1339

Merged
merged 2 commits into from
May 23, 2024
Merged

Fix links #1339

merged 2 commits into from
May 23, 2024

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented May 23, 2024

Two things done in this PR;

  1. Convert http://datashader.org to https://datashader.org.
  2. Try to update failing links.

Commands used for 1: rg -l 'http://datashader.org' | xargs sed -i 's/http:\/\/datashader.org/https:\/\/datashader.org/g'

The commands used for 2:

rg --no-filename --no-line-number --no-ignore --glob '!*.svg' --glob '!CHANGELOG.rst' -o 'https?:\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])' | sort | uniq | tee inputs.txt
parallel 'curl --output /dev/null --silent --fail {} -w "%{http_code} %{url}\n" --connect-timeout 10' :::: inputs.txt | tee outputs.txt
cat outputs.txt | grep '^40' 

Output:

404 http://blaze.pydata.org/docs/datashape.html
404 https://docs.rapids.ai/api/cudf/stable/10min.html
404 https://datashader-tiles-testing.s3.amazonaws.com/wald_tiles/
403 https://storage.googleapis.com/tlc-trip-data/2015/
404 https://www.anaconda.com/distribution/

@hoxbro hoxbro merged commit e4a6af9 into main May 23, 2024
2 of 15 checks passed
@hoxbro hoxbro deleted the fix_links branch May 23, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant