Is it possible to generate hexdoc links to the module/line in the module when setting `source_url` to something other than Github?

(while still using git)

I tried switching a package from Github to Codeberg, but it looks like ex_doc does not support its (Forgejo based?) URL scheme to generate links from the docs to the appropriate module line.

mix docs — ExDoc v0.39.3 see the :source_url_pattern option

2 Likes

Here’s a working example for Codeberg:

3 Likes

Arrgh, I put the `source_url_pattern` directly as a top level key instead of nested in the `:docs` list.

Thank you @adamu for the example - I also switched to using the version tag instead of using the main branch.

dainst/iiif_image_plug: An Elixir plug implementing the IIIF image API specification. - Codeberg.org :folded_hands:

2 Likes