Back to services

Gitit

Wiki program that stores pages and uploaded files in a git repository, which can then be modified using the VCS command line tools or the wiki's web interface.

View alternatives to Gitit
Suggest edit
Open source
Self-hostable
GPL-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Gitit is an open-source wiki program developed by John MacFarlane (jgm, the author of Pandoc). The description in its GitHub repository reads "A wiki using HAppS, pandoc, and git". It is written in Haskell and built on the Happstack (formerly HAppS) web framework. Pages are stored as plain text files in a version-controlled repository, using Git by default, with support for Darcs and Mercurial as well. Every edit is a commit, so the wiki comes with a complete revision history.

Key Features

  • Version control backend: Pages and uploaded files are stored in a Git, Darcs or Mercurial repository. You can edit on the web, or clone the repository, edit locally and push your changes.
  • Multiple markup languages: Thanks to Pandoc, pages can be written in Markdown, reStructuredText, LaTeX, HTML and other formats.
  • Math and code highlighting: TeX math formulas can be displayed, and code blocks support syntax highlighting.
  • Export to multiple formats: Pages can be exported to the many document formats that Pandoc supports.
  • Revision history and diffs: You can view a page's history, compare differences between versions, and revert changes.
  • Other features: Full-text search, page categories, file uploads, an RSS feed of recent changes, user accounts, and more.
  • Plugin extensions: Plugins can be written in Haskell to apply custom transformations to page content.

Target Users and Use Cases

  • Developers who like plain text and Markdown and want to manage documentation with Git
  • Individuals or small teams who need a lightweight, self-hosted wiki
  • Academic users who need to write math formulas or technical documentation
  • Users who want wiki content to be easy to migrate and back up, and who don't want to be locked into a database

Core Strengths

  • Content is just plain text files in a repository. It doesn't depend on a database, so backup and migration are simple.
  • Built on Pandoc, it offers strong support for markup formats and document conversion.
  • You can maintain the wiki with your familiar editor and Git workflow.

Installation and Deployment

Gitit is distributed as a Haskell package and can be installed with the Haskell toolchain (cabal or stack), for example:

cabal install gitit

After installation, run gitit in the target directory to start the built-in web server. On first run, it automatically initializes the repository and default pages. You can adjust the port, repository type, default markup format, authentication method and more through a configuration file, for example gitit -f my.conf. In production, a reverse proxy such as Nginx or Apache is usually placed in front of it.

Technical Requirements

  • Building from source requires GHC and cabal or stack
  • The corresponding version control tool (git, darcs or mercurial) must be installed
  • License: GPL

Notable Characteristics

This is a long-standing project with a fairly traditional interface and a relatively minimal feature set. It is better suited to technical users who value plain text and version control than to teams looking for a modern collaboration interface.