Gollum
Simple, Git-powered wiki with a sweet API and local frontend.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Introduction
Gollum is a simple, Git-based wiki system. A Gollum wiki is essentially just a Git repository: pages are text or markup files that people can edit directly, you decide the directory structure, and you can also include images, PDFs, and things like headers and footers. All changes are recorded as Git commits, so every page has a viewable version history and can be rolled back. The project is open source under the MIT license and has more than 14,000 stars on GitHub.
Key Features
- Git-powered: Pages are stored in a Git repository. You can edit them in the built-in web interface or with your favorite editor, and your changes show up once you commit them.
- Version management: Every page lets you view all of its past versions and roll back to them.
- Multiple markup languages: Markdown (rendered with kramdown by default) and RDoc are built in. If you install the corresponding renderers, you can also use AsciiDoc, Creole, MediaWiki, Org, Pod, reStructuredText, and Textile. The Markdown renderer can be swapped out, for example with commonmarker for CommonMark support.
- Compatible with GitHub/GitLab wikis: Clone a wiki from GitHub or GitLab locally and you can browse and edit it right away.
- Advanced features: Mermaid and PlantUML diagrams, BibTeX and citations, CriticMarkup annotations, KaTeX or MathJax math formulas, macros, redirects, an RSS feed of recent changes, emoji, and more.
- Flexible configuration: Command-line options include
--host,--port,--ref,--bare,--base-path,--no-edit(read-only),--allow-uploads, custom CSS/JS, template directories, and more. Theconfig.rbconfiguration file allows finer adjustments.
Target Users and Use Cases
- Developers and technical teams used to Git workflows, who can use it for project documentation or a team knowledge base
- Users who want to browse and edit GitHub or GitLab project wikis locally
- Users who need personal notes or a wiki that is plain text, version-controlled, and portable
- People writing academic or technical documents that include math formulas, diagrams, and bibliographic citations
Core Strengths
- Your data is just plain text files in a Git repository, with no database dependency and no lock-in to any platform, so backup and migration are simple
- It makes full use of Git's history, branching, and collaboration capabilities
- It is lightweight and easy to start, running with a single command
Installation and Deployment
System requirements: Runs on Unix-like systems and Windows. It supports MRI Ruby (using the rugged Git library) and JRuby (using rjgit/JGit). On Windows, you can only use JRuby, or use the prebuilt WAR package directly.
Install via Ruby gem:
gem install gollum
gollum /path/to/wiki # 该目录需为已初始化的 Git 仓库
Then open http://localhost:4567 in your browser.
Via Docker: The official gollumwiki/gollum image is available; see the project wiki for usage details.
Via Java WAR: Every release ships with a directly executable gollum.war:
java -jar gollum.war -S gollum <参数>
When using the WAR, paths in the arguments must be absolute paths.
Other options: Run from source (run bundle exec bin/gollum after bundle install), deploy to any Rack-compatible web server, or run it as a system service.
Things to Note
- By default it listens on
0.0.0.0, which means remote access is allowed. For personal use, it is recommended to use--host 127.0.0.1so it only listens on the local machine. - Gollum itself has no full-fledged user system. With a CAS single sign-on server and some adjustments, you can get basic user support.
- The
APP_ENVenvironment variable controls the run mode of the underlying Sinatra application (development or production).
Discover more
BookStack
Organize and store information. Stores documentation in a book like fashion.
LeafWiki
LeafWiki - Self-hosted wiki. Single Go binary, SQLite, Markdown on disk. No external database required.
Otter Wiki
Simple, easy to use wiki software using markdown.
Raneto
Raneto is an open source Knowledgebase platform that uses static Markdown files to power your Knowledgebase.
WikiDocs
A databaseless markdown flat-file wiki engine.
Wikmd
Modern and simple file based wiki that uses Markdown and Git.