Skip to content

Replace all hexdocs URLs with the subdomain format#6693

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

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

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_]+' -- \
    ':!doc/**' ':!_build/**' ':!deps/**' |
  xargs -0 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=.
```
@SteffenDE SteffenDE merged commit e1e7912 into main Jun 1, 2026
12 checks passed
@SteffenDE

Copy link
Copy Markdown
Member

Nice! Do you also want to send a PR for LiveView?

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