Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github: Wiki page title from markup not filename/web client

Is there a way in github to have a wiki's title be based on the markup? I have found another project using markdown that has the title for Home.md wiki page come from the file. The author could have also used the web interface and made the title of the page the same as the markdown. That project is here:

https://github.com/sitaramc/gitolite/wiki

When I tried doing the same thing with restructuredtext (Home.rest) using the underline of ='s the title ends up being ignored and not even shown in the rendered page. The same thing also happens when using markdown.

like image 859
djhoese Avatar asked Jun 08 '12 19:06

djhoese


People also ask

Can you use HTML in GitHub wiki?

Wherever HTML is rendered on GitHub (gists, README files in repos, comments on issues and pull requests, ...) you can use any of the HTML elements that GitHub Flavored Markdown (GFM) provides syntactic sugar for.

How do I add a wiki file to GitHub?

How do I add files to a wiki page? You need to clone the wiki repo and edit it on your system. Add files to the files directory (or subdirectory below it). For example: files/project-presentation.

How do I cross out text in GitHub?

In order to create a crossed-out text, use the tilde in Markdown twice in a row, followed by the respective text and then another two tildes. ~~This text is struckthrough. ~~ This one isn't.


1 Answers

Looking at this pull request from a few months ago and the related discussion, it appears that the page title used to be set based on the markdown, but is now based exclusively on the filename.

That would explain why a project might have RestructuredText/Markdown that appears to define the title (it once did!), but the same doesn't work for you.

It appears that you're out of luck for defining the wiki page title through the RestructuredText/MarkDown file these days.

like image 80
blahdiblah Avatar answered Sep 26 '22 00:09

blahdiblah