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
Boxiang Sun
gitlab-ce
Commits
46111917
Commit
46111917
authored
Aug 02, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge wiki-specific Markdown in main Markdown file
parent
97c61900
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
89 deletions
+80
-89
doc/markdown/markdown.md
doc/markdown/markdown.md
+80
-2
doc/markdown/wiki.md
doc/markdown/wiki.md
+0
-87
No files found.
doc/markdown/markdown.md
View file @
46111917
...
@@ -28,9 +28,12 @@
...
@@ -28,9 +28,12 @@
*
[
Line Breaks
](
#line-breaks
)
*
[
Line Breaks
](
#line-breaks
)
*
[
Tables
](
#tables
)
*
[
Tables
](
#tables
)
**[Wiki-Specific Markdown](
wiki.md
)**
**[Wiki-Specific Markdown](
#wiki-specific-markdown
)**
*
[
Links
](
wiki.md#links-to-other-wiki-pages
)
*
[
Wiki - Direct page link
](
#wiki-direct-page-link
)
*
[
Wiki - Direct file link
](
#wiki-direct-file-link
)
*
[
Wiki - Hierarchical link
](
#wiki-hierarchical-link
)
*
[
Wiki - Root link
](
#wiki-root-link
)
**[References](#references)**
**[References](#references)**
...
@@ -696,6 +699,81 @@ By including colons in the header row, you can align the text within that column
...
@@ -696,6 +699,81 @@ By including colons in the header row, you can align the text within that column
| Cell 1 | Cell 2 | Cell 3 | Cell 4 | Cell 5 | Cell 6 |
| Cell 1 | Cell 2 | Cell 3 | Cell 4 | Cell 5 | Cell 6 |
| Cell 7 | Cell 8 | Cell 9 | Cell 10 | Cell 11 | Cell 12 |
| Cell 7 | Cell 8 | Cell 9 | Cell 10 | Cell 11 | Cell 12 |
## Wiki-specific Markdown
The following examples show how links inside wikis behave.
### Wiki - Direct page link
A link which just includes the slug for a page will point to that page,
_at the base level of the wiki_.
This snippet would link to a `documentation` page at the root of your wiki:
```
markdown
[
Link to Documentation
](
documentation
)
```
### Wiki - Direct file link
Links with a file extension point to that file, _relative to the current page_.
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
)
```
### Wiki - Hierarchical link
A link can be constructed relative to the current wiki page using `./<page>`,
`../<page>`, etc.
- 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
)
```
- 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
)
```
- 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
)
```
- 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
)
```
### Wiki - Root link
A link starting with a `/` is relative to the wiki root.
- This snippet links to `<wiki_root>/documentation`:
```
markdown
[
Link to Related Page
](
/documentation
)
```
- This snippet links to `<wiki_root>/miscellaneous.md`:
```
markdown
[
Link to Related Page
](
/miscellaneous.md
)
```
## References
## References
- This document leveraged heavily from the [Markdown-Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet).
- This document leveraged heavily from the [Markdown-Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet).
...
...
doc/markdown/wiki.md
deleted
100644 → 0
View file @
97c61900
# Wiki-specific Markdown
This page has information related to wiki-specific Markdown. For more
information on GitLab's Markdown, see the
[
main Markdown document
](
./markdown.md
)
.
## Table of contents
*
[
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 link
A link which just includes the slug for a page will point to that page,
_at the base level of the wiki_
.
This snippet would link to a
`documentation`
page at the root of your wiki:
```
markdown
[
Link to Documentation
](
documentation
)
```
### Direct file link
Links with a file extension point to that file, _relative to the current page_.
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
)
```
### Hierarchical link
A link can be constructed relative to the current wiki page using
`./<page>`
,
`../<page>`
, etc.
-
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)
```
-
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)
```
-
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)
```
-
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 link
A link starting with a
`/`
is relative to the wiki root.
-
This snippet links to
`<wiki_root>/documentation`
:
```markdown
[Link to Related Page](/documentation)
```
-
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