AustinWise / smeagol

A simple wiki
https://smeagol.dev/
MIT License
27 stars 5 forks source link
rust wiki

Smeagol - locally hosted wiki

The goal of this project is to create a wiki software with these properties:

Non goals include:

Phrased in another way, the goal of this project is to create something that behaves like Gollum be installs easily and quickly. This is contrasted with the Gollum install experience of having to deal with the slowness and complication of setting up a Ruby environment and running gem install.

Getting started

See the smeagol.dev website for more install options.

If you use the Rust programming language, you can also install this tool using Cargo:

cargo install smeagol-wiki

Download the latest release from GitHub. Extract the smeagol-wiki executable from the compressed archive. smeagol-wiki is a command line application. It needs a directory containing the Markdown files you want to serve. You can pass a command line argument to it to specify the directory:

smeagol-wiki ~/wiki

When run without arguments, the current directory is used.

Once started, it listens on http://127.0.0.1:8000 by default.

Configuration

There are a few command line options:

Additionally, the following settings can be put in a smeagol.toml file in the root directory of the wiki:

Differences from Gollum

Security

Smeagol is intended to be run on your local computer to read your own private data. It is not designed to be exposed to the public internet: there is no authentication.

That said, there is one class of security problem I would be interested in hearing about: opening a maliciously designed Wiki with Smeagol either causing code execution or writing to files outside the wiki directory. Please file an issue if you encounter such a problem.

Why Rust, please tell me more about why you love Rust

Rust makes it easy to ship cross-compiled executables that run without much fuss. As for why not some other language also shares this capability (Go or C#), I just want to get more experience working with Rust.

License

Licensed under the MIT License.

Note that some elements, specifically aspects of the visual design, have been copied from Gollum.