alabaster icon indicating copy to clipboard operation
alabaster copied to clipboard

arbitrary "edit source" link targets

Open anarcat opened this issue 7 years ago • 5 comments

as the RTD sphinx theme, this theme somewhat enforces people use Github.com for their source control, something that may not be adequate for people hosted elsewhere. there's, for example, #52 for bitbucket support, but soon you'll have requests for Gitlab, Atlassian and whatnot.

how about simply making this configurable? you simply need a host prefix and you're done. sphinx_rtd did this in https://github.com/snide/sphinx_rtd_theme/pull/182, for example.

thanks for considering this.

anarcat avatar Sep 05 '16 02:09 anarcat

update: sphinx_rtd_theme supports this fine, if you run a good enough version. :)

anarcat avatar Sep 05 '16 02:09 anarcat

Because GH doesn't do links in titles, still: #88 is the PR for this. Thanks! Will test it out & merge when I have time. I don't use this feature much myself which is why it's not an instant "I get it, " - need to quickly view the before/after.

bitprophet avatar Sep 07 '16 23:09 bitprophet

ping?

anarcat avatar Nov 18 '16 22:11 anarcat

Most voted feature - https://github.com/bitprophet/alabaster/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc

abitrolly avatar Jan 07 '19 20:01 abitrolly

Found a way to patch source links with standard template override with Sphinx/Jinja2.

https://github.com/release-monitoring/anitya/pull/693/commits/84c7812ff600b8d86d048e18986fd3f8cce09a29

abitrolly avatar Jan 07 '19 23:01 abitrolly