sphinx-doc / alabaster

Lightweight, configurable Sphinx theme
http://alabaster.readthedocs.io/
Other
738 stars 189 forks source link

arbitrary "edit source" link targets #87

Open anarcat opened 8 years ago

anarcat commented 8 years ago

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 commented 8 years ago

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

bitprophet commented 8 years ago

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.

anarcat commented 8 years ago

ping?

abitrolly commented 5 years ago

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

abitrolly commented 5 years ago

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

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