You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All code with repository hosting that supports online editing does not have to be on GitHub, GitLab / self-hosted GitLab, or Bitbucket. Gitea, Forgejo, and others exist and are increasingly popular.
Override default templates, but it is time to support open projects as at least second-class citizens.
Additional context
Pointers for where to add this / how many default themes are supported that should get the above added to their templates would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
What's the problem this feature will solve?
All code with repository hosting that supports online editing does not have to be on GitHub, GitLab / self-hosted GitLab, or Bitbucket. Gitea, Forgejo, and others exist and are increasingly popular.
Describe the solution you'd like
Extend the options documented on https://docs.readthedocs.com/platform/stable/guides/edit-source-links-sphinx.html to include "Other" with a
display_repo
setting that takes uses the following variables:repo_host
repo_user
(or org)repo_slug
(repository name as seen in the URL)repo_version
(branch)conf_src_path
(to take the place of hard-coded/src/
and/blob
path segments for our flexible custom repo)The existing variable would still be used:
conf_py_path
(appears right before pagename, defaults to/
)suffix
pagename
Alternative solutions
Override default templates, but it is time to support open projects as at least second-class citizens.
Additional context
Pointers for where to add this / how many default themes are supported that should get the above added to their templates would be greatly appreciated.
The text was updated successfully, but these errors were encountered: