-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Currently, there is built-in support for GitHub links.
sphinx-git/sphinx_git/__init__.py
Lines 94 to 95 in 4a5201b
| if 'github' in url: | |
| commit_url = url + '/commit/' + self.commit.hexsha |
Gitlab links are constructed the same way, so to allow gitlab we would have to write:
hosts = ['github', 'gitlab']
if (host in url for host in hosts):additional (optional) modifications
- adapt the naming schema of the function
_github_linkto something more generic - add an additional sphinx modifier
no_github_link-->no_link - adapt the documentation
Related #11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels