markvincze / sabledocs

Simple static documentation generator for Protobuf and gRPC contracts.
MIT License
58 stars 14 forks source link

Add support for generating deep links to sources hosted on GitLab #71

Open vallahaye opened 3 weeks ago

vallahaye commented 3 weeks ago

Sabledocs (v0.13.784) supports the generation of deep links to sources hosted exclusively on GitHub and Bitbucket.

This issue proposes to add support for generating deep links to sources hosted on GitLab as well.

A new repository-type value named gitlab would trigger the generation of such links.

In terms of format, GitLab's deep links are almost the same as GitHub's, the only difference being that there's a hyphen separating the repository URL and the blob part.

For example: https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/README.md#L41