Gitlab Wiki相同页面的链接 [英] Gitlab Wiki same page links

查看:394
本文介绍了Gitlab Wiki相同页面的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Gitlab Wiki中使用相同的页面链接?例如:

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

基本上,我正在尝试创建一个类似Wikipedia的页面,您可以在其中使用目录浏览单个页面.

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

推荐答案

此内容已添加到此拉动请求.

它会生成toc_x个锚点,每个新标头的x都会递增.

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).

这篇关于Gitlab Wiki相同页面的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆