Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab cross-reference project

I am trying to find the best way to document my project in Gitlab. And I found two different alternatives:

  • Markdown in the actual repository (my-repo.git)
  • Wiki using markdown (my-repo/wiki.git)

Note that the suffix .git indicates that these are two different git repositories.

I like the approach to simply modify the Wiki using markdown from the webpage (for everyones simplicity), but I am missing how to link between them or any other project in Gitlab.

In the documentation is provided some information to link (issues, commits, etc...) to other projects but not link files like the README.md and other documentation.

Is there such functionality?

like image 635
aitorhh Avatar asked Apr 27 '26 07:04

aitorhh


1 Answers

I also don't know if I am 100% getting your question, but Gitlab does support special syntax for referencing other projects/commits/etc..

You can reference other project like so,

namespace/project>

It doesn't support referencing files in other projects (as far as I can tell), but you can reference files in the same project:

[README](doc/README.md)

And to specify a line number:

[README](doc/README.md#L13)
like image 54
Mr.Zeus Avatar answered Apr 29 '26 00:04

Mr.Zeus