Skip to content

Add support for gitlab links #56

@ukos-git

Description

@ukos-git

Currently, there is built-in support for GitHub links.

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_link to something more generic
  • add an additional sphinx modifier no_github_link --> no_link
  • adapt the documentation

Related #11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions