Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab Wiki same page links [closed]

How do I use same page links in the Gitlab wiki? For example:

Contents

 - heading1 ---> this should move the page to heading 1
 - heading2
 - heading3
 - heading4

HEADING 1

Basically I am trying to create a page like Wikipedia where you can navigate a single page using a table of contents.

like image 252
Jaybeecave Avatar asked Dec 07 '12 05:12

Jaybeecave


People also ask

Where are GitLab wiki files stored?

Where files are stored. Attach a file, and GitLab stores it according to your installed version of GitLab: Files added in GitLab 11.3 and later: Files are stored in the wiki's Git repository. Files added GitLab 11.2 and earlier: Files are stored in GitLab itself.

Does GitLab have wiki?

If you don't want to keep your documentation in your repository, but you want to keep it in the same project as your code, you can use the wiki GitLab provides in each GitLab project. Every wiki is a separate Git repository, so you can create wiki pages in the web interface, or locally using Git.

What is wiki in GitLab?

Wiki is a system for maintaining documentation for a project in the GitLab. It is like a Wikipedia which can be editable and given permissions to manage the wiki pages. A Guest can view a wiki page and Developer can create and edit a wiki page.


1 Answers

This has been added in this pull request.

It generates toc_x anchors, with x incremented for each new header.

If you define a link like:

 [My link to third header](#toc_3)

It will link you to the current page third header (no matter what level that header is).

like image 107
VonC Avatar answered Oct 08 '22 14:10

VonC