package.elm-lang.org icon indicating copy to clipboard operation
package.elm-lang.org copied to clipboard

Link "browse source" directly to the relevant code

Open jvoigtlaender opened this issue 10 years ago • 2 comments
trafficstars

... not to the top level of the github repo.

Requested, for example, here. I've also felt the same want.

Should be something happening in these lines: https://github.com/elm-lang/package.elm-lang.org/blob/a8f00fba39fd9d82ff6e27f820932859f481475a/frontend/Component/Header.elm#L36-L37

jvoigtlaender avatar Jun 05 '15 06:06 jvoigtlaender

Had a look myself at how this might be doable. It's complicated, by the fact that there is no known directory structure that all packages follow. So one cannot simply build the link by appending "src/" and the module name.

jvoigtlaender avatar Jun 11 '15 20:06 jvoigtlaender

May be possible with https://github.com/elm-lang/elm-make/issues/29

evancz avatar Jun 27 '15 21:06 evancz