asciidoctor-foodogsquared-e.../lib/asciidoctor/gitlab-link-inline-macro
2023-11-01 17:36:11 +08:00
..
extension.rb Add 'issue' attribute for GitLab link inline macro 2023-11-01 17:36:11 +08:00
README.adoc Add 'issue' attribute for GitLab link inline macro 2023-11-01 17:36:11 +08:00

Table of Contents

An inline macro for easily linking objects from GitLab instances.

Synopsis

gitlab:$OWNER/$REPO[$CAPTION]

Attributes

  • domain is the base domain of the GitLab instance. By default, it points to the official instance of gitlab.com.

  • rev is the commit of the repo. By default. it doesnt point to anything which should be in the default branch of the repository.

  • path is the filepath to be linked.

  • issue is the issue to be linked from the repo. Take note issue has higher precedence so once domain and issue are both set, it will still link to an issue.

There are settings that is enabled with the options attribute.

  • repo sets the default caption to be the repo part.

Example usage