ponylang / main.actor.archived

https://www.main.actor
6 stars 5 forks source link

Deep links into source code appears to be broken #30

Open SeanTAllen opened 4 years ago

SeanTAllen commented 4 years ago

See

https://www.main.actor/packages/crypto/1.0.0/crypto/md5

for an example.

The problem is that the #lNUMBER links don't exist in the source. Or rather, the gatsby generated html isn't aware of the source links the way that stdlib.ponylang.io is.

See for example:

https://stdlib.ponylang.io/src/backpressure/backpressure/#L95

EpicEric commented 4 years ago

The way we've solved this in the MkDocs theme was creating an anchor for every line in source code, in a div element, like so: https://github.com/ponylang/mkdocs-theme/blob/736b94b6496e97d5dbb6cdd02de638080f8d6923/src/assets/javascripts/application.js#L87-L99