Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linking to other Wiki pages on GitHub? [closed]

Tags:

github

People also ask

How do I link a wiki page to GitHub?

You can create links in wikis using the standard markup supported by your page, or using MediaWiki syntax. For example: If your pages are rendered with Markdown, the link syntax is [Link Text](full-URL-of-wiki-page) . With MediaWiki syntax, the link syntax is [[Link Text|nameofwikipage]] .

How do I pull wiki from GitHub?

The Wiki pages are managed as a repository. So click on your repository, then on the left side click on Wiki. Finally on the upper right corner click on Clone Repository. There you will clear instructions on how to clone it correctly.

Can I use GitHub as a wiki?

Wikis are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud and GitHub Enterprise Server.


Using the Markdown link syntax

[Link Text](WikiPage)

seems to work in the edit preview but not on the actual wiki page. At least for me the generated link is WikiPage instead of wiki/WikiPage and I get the famous GitHub 404.

However the MediaWiki syntax

[[Link Text|WikiPage]]

works for me, even for Markdown wiki pages.


GitHub by default uses Markdown syntax for the wikis so you can just do:

[Arbitrary Link Text](Wiki Page Name)

Check out Markdown and this blog post for more information about their wikis and the other markup syntaxes they support.

This solution has issues when you're on the home page because it creates relative URLs. Check out Sven's answer, below.


The internal-ref part is relative to your project. For wiki pages use:

[Page Name](wiki/Page-Name)

In the preview the link will be broken but when the page is saved it will work.