Skip to content

Replace all hexdocs URLs with the subdomain format#4257

Merged
SteffenDE merged 1 commit into
mainfrom
gr-hexdocs-links
Jun 1, 2026
Merged

Replace all hexdocs URLs with the subdomain format#4257
SteffenDE merged 1 commit into
mainfrom
gr-hexdocs-links

Conversation

@Gazler

@Gazler Gazler commented Jun 1, 2026

Copy link
Copy Markdown
Member

See hexpm/hexpm#1614

This is the command to update the URLs:

git grep -Ilz -E 'https://hexdocs\.pm/[A-Za-z0-9_]+' |
  perl -0ne 'print unless m{\A(?:doc|_build|deps)/}' |
  xargs -0 -r perl -0pi -e 's{https://hexdocs\.pm/([A-Za-z0-9_]+)}{"https://" . ($1 =~ s/_/-/gr) .
  ".hexdocs.pm"}ge'

The diff is best viewed with:

git diff --word-diff=color --word-diff-regex=.

See hexpm/hexpm#1614

This is the command to update the URLs:

```sh
git grep -Ilz -E 'https://hexdocs\.pm/[A-Za-z0-9_]+' |
  perl -0ne 'print unless m{\A(?:doc|_build|deps)/}' |
  xargs -0 -r perl -0pi -e 's{https://hexdocs\.pm/([A-Za-z0-9_]+)}{"https://" . ($1 =~ s/_/-/gr) .
  ".hexdocs.pm"}ge'
```

The diff is best viewed with:

```
git diff --word-diff=color --word-diff-regex=.
```
@Gazler

Gazler commented Jun 1, 2026

Copy link
Copy Markdown
Member Author

I didn't update the build js files as we'll do that for the next release.

@SteffenDE SteffenDE merged commit d9a9195 into main Jun 1, 2026
15 of 16 checks passed
@SteffenDE

Copy link
Copy Markdown
Member

🙌️

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.

2 participants