Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
97c61900
Commit
97c61900
authored
Aug 02, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor wiki Markdown documentation
parent
dc396dc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
25 deletions
+35
-25
doc/markdown/wiki.md
doc/markdown/wiki.md
+35
-25
No files found.
doc/markdown/wiki.md
View file @
97c61900
# Wiki-
S
pecific Markdown
# Wiki-
s
pecific Markdown
## Table of Contents
This page has information related to wiki-specific Markdown. For more
information on GitLab's Markdown, see the
[
main Markdown document
](
./markdown.md
)
.
*
[
Links to Other Wiki Pages
](
#links-to-other-wiki-pages
)
*
[
Direct Page Link
](
#direct-page-link
)
*
[
Direct File Link
](
#direct-file-link
)
*
[
Hierarchical Link
](
#hierarchical-link
)
*
[
Root Link
](
#root-link
)
## Table of contents
## Links to Other Wiki Pages
*
[
Links to other wiki pages
](
#links-to-other-wiki-pages
)
*
[
Direct page link
](
#direct-page-link
)
*
[
Direct file link
](
#direct-file-link
)
*
[
Hierarchical link
](
#hierarchical-link
)
*
[
Root link
](
#root-link
)
## Links to other wiki pages
You can link to other pages on your wiki in a few different ways.
### Direct
Page L
ink
### Direct
page l
ink
A link which just includes the slug for a page will point to that page, _at the base level of the wiki_.
A link which just includes the slug for a page will point to that page,
_at the base level of the wiki_
.
1.
This snippet would link to a
`documentation`
page at the root of your wiki.
This snippet would link to a
`documentation`
page at the root of your wiki:
```
markdown
[
Link to Documentation
](
documentation
)
```
### Direct
File L
ink
### Direct
file l
ink
Links with a file extension point to that file, _relative to the current page_.
1.
If this snippet was placed on a page at
`<your_wiki>/documentation/related`
, it would link to
`<your_wiki>/documentation/file.md`
.
If this snippet was placed on a page at
`<your_wiki>/documentation/related`
,
it would link to
`<your_wiki>/documentation/file.md`
:
```markdown
[Link to File](file.md)
```
```
markdown
[
Link to File
](
file.md
)
```
### Hierarchical
L
ink
### Hierarchical
l
ink
A link can be constructed relative to the current wiki page using
`./<page>`
,
`../<page>`
, etc.
A link can be constructed relative to the current wiki page using
`./<page>`
,
`../<page>`
, etc.
1.
If this snippet was placed on a page at
`<your_wiki>/documentation/main`
, it would link to
`<your_wiki>/documentation/related`
.
-
If this snippet was placed on a page at
`<your_wiki>/documentation/main`
,
it would link to
`<your_wiki>/documentation/related`
:
```markdown
[Link to Related Page](./related)
```
1.
If this snippet was placed on a page at
`<your_wiki>/documentation/related/content`
, it would link to
`<your_wiki>/documentation/main`
.
-
If this snippet was placed on a page at
`<your_wiki>/documentation/related/content`
,
it would link to
`<your_wiki>/documentation/main`
:
```markdown
[Link to Related Page](../main)
```
1.
If this snippet was placed on a page at
`<your_wiki>/documentation/main`
, it would link to
`<your_wiki>/documentation/related.md`
.
-
If this snippet was placed on a page at
`<your_wiki>/documentation/main`
,
it would link to
`<your_wiki>/documentation/related.md`
:
```markdown
[Link to Related Page](./related.md)
```
1.
If this snippet was placed on a page at
`<your_wiki>/documentation/related/content`
, it would link to
`<your_wiki>/documentation/main.md`
.
-
If this snippet was placed on a page at
`<your_wiki>/documentation/related/content`
,
it would link to
`<your_wiki>/documentation/main.md`
:
```markdown
[Link to Related Page](../main.md)
```
### Root
L
ink
### Root
l
ink
A link starting with a
`/`
is relative to the wiki root.
1.
This snippet links to
`<wiki_root>/documentation`
-
This snippet links to
`<wiki_root>/documentation`
:
```markdown
[Link to Related Page](/documentation)
```
1.
This snippet links to
`<wiki_root>/miscellaneous.md`
-
This snippet links to
`<wiki_root>/miscellaneous.md`
:
```markdown
[Link to Related Page](/miscellaneous.md)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment