elm / package.elm-lang.org

website for browsing packages and exploring documentation
https://package.elm-lang.org/
BSD 3-Clause "New" or "Revised" License
293 stars 113 forks source link

Link "browse source" directly to the relevant code #35

Open jvoigtlaender opened 9 years ago

jvoigtlaender commented 9 years ago

... 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 commented 9 years ago

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.

evancz commented 9 years ago

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