Everything between the github repository root and the hash gets removed, though it is correct on the local copy. This doesn't seem to be the case with gleam_stdlib, so I'm not sure about steps to reproduce, other than to link the example for now.
https://hexdocs.pm/shellout/shellout/
Local copy generated with gleam docs publish --version 0.1.0
https://gist.github.com/tynanbe/7f5fa408bc33f562361f3ab30665d276
I'm not sure why but I'm guessing path_in_repo is coming up blank https://github.com/gleam-lang/gleam/blob/main/src/docs/source_links.rs#L19
@tynanbe would you be able to build the compiler from the main branch and see if building the docs work with that?