geekq / git-wiki forked from sr/git-wiki

A quick & dirty git-powered Sinatra wiki

This URL has Read+Write access

sr (author)
Tue Aug 26 08:45:09 -0700 2008
commit  44e73c3e5e287739c163b4708a2808d6e7c01cf3
tree    19929d4d5e116e456f9ba0345f02b49e39029011
parent  6aa8f93c71a4539dbea6590f78fad0994c009e11
name age message
file .gitignore Thu Mar 27 16:36:33 -0700 2008 Ignore *.swp [sr]
file README.markdown Mon Jul 21 17:27:08 -0700 2008 update requirements in readme [sr]
file Rakefile Mon Jul 21 17:27:16 -0700 2008 make the rakefile a little more friendly and dr... [sr]
file git-wiki.rb Loading commit data...
directory public/ Sun Aug 24 06:47:07 -0700 2008 decamelize page title and title-case-ify them [sr]
directory vendor/ Tue Aug 26 01:33:44 -0700 2008 vendor grit [sr]
README.markdown

git-wiki: because who needs cool names when you use git?

git-wiki is a wiki that relies on git to keep pages' history and Sinatra to serve them.

I wrote git-wiki as a quick and dirty hack, mostly to play with Sinatra. It turned out that Sinatra is an awesome little web framework and that this hack isn't as useless as I first though since I now use it daily.

However, it is definitely not feature rich and will probably never be because I mostly use it as a web frontend for git, ls and vim.

If you want history, search, etc. you should look at other people's forks, especially al3x's one.

Install

The fellowing gems are required to run git-wiki:

  • haml
  • git
  • BlueCloth
  • rubypants

Run rake bootstrap && ruby git-wiki.rb and point your browser at http://0.0.0.0:4567/. Enjoy!

Licence

        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                Version 2, December 2004

Copyright (C) 2008 Simon Rozet simon@rozet.name

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO.

Quotes

[...] the first wiki engine I'd consider worth using for my own projects.

Steve Dekorte

Oh, it looks like Git Wiki may be the starting point for what I need...

Tom Morris on "How to build the perfect wiki"

What makes git-wiki so cool is because it is backed by a git store, you can clone your wiki just like you could any other git repository. I’ve always wanted a wiki that I could a.) pull offline when I didn’t have access to the Internets and b.) edit (perhaps in bulk) in my favorite text editor. git-wiki allows both.

Cloning your wiki

Numerous people have written diff and merge systems for wikis; TWiki even uses RCS. If they used git instead, the repository would be tiny, and you could make a personal copy of the entire wiki to take on the plane with you, then sync your changes back when you're done.

Git is the next Unix