Fix edit_on_github

Now creates links to physical location of elements, not API locations.
Merge pull request #2661 from mdboom/doc/edit_on_github_fix

Documentation: Edit on github button leads to Error 404