Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate a website from GitHub wiki pages

I've used GitHub pages to generate a beautiful website for my project (this one). Now I want to keep the documentation of my project up to date, and having everything in a single README.md file is probably not scalable to the many features we are adding.

So, I thought that the best place to keep the documentation is the GitHub wiki, but I'd like to integrate the wiki to the gh-pages generated site, keeping the beautiful layout.

How would I take the GitHub wiki and generate an HTML web site with a customizable layout?

like image 489
Luigi R. Viggiano Avatar asked May 25 '13 20:05

Luigi R. Viggiano


People also ask

Can I use GitHub Pages for a personal website?

GitHub Pages are public web pages hosted for free through GitHub. GitHub users can create and host both personal websites (one allowed per user) and websites related to specific GitHub projects. Imagine you work on a letter using Microsoft Word on your computer.

How do I clone a 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.


2 Answers

Here is an example URL for a wiki:

https://github.com/golang/go/wiki

On the same page you will find a clone link:

https://github.com/golang/go.wiki.git

Then run the Markdown files through Hugo or even create a new repository to the host site based on the Wiki.

like image 103
Zombo Avatar answered Oct 20 '22 16:10

Zombo


You could include your wiki as subtree.

BTW, GitHub Pages now no longer need the gh-pages branch. Create a repository named your-user-name.github.io; it will automatic generate to a website. See GitHub Pages for more detail.

like image 41
Allen Avatar answered Oct 20 '22 14:10

Allen