killercup / grock

Grock converts your nicely commented code into a gorgeous documentation where comments and code live happily next to each other.
http://killercup.github.io/grock/
MIT License
38 stars 13 forks source link

Add Internal Links #12

Open killercup opened 10 years ago

killercup commented 10 years ago

It should be possible to link to other files in the documentation using relative URLs.

E.g., the comment in

###
# Set the answer to the [correct value](../magic_numbers.coffee#answers).
###
answer = 42

should render like

Set the answer to the <a href="../magic_numbers.coffee.html#answers">correct value</a>.

Determining whether a link points to an existing file (and anchor) is secondary.