ref: e3cbad743a5e098380c832d38f8e859b165dbe10 gwiki/README.md -rw-r--r-- 2.1 KiB
e3cbad74Stephen Cochrane Added clarity to helper script 4 months ago


Simple git curated wiki


I like the concept of simple statically generated websites, although they lack the feeling of "live content", that is, content can be updated anywhere, easily.

gwiki is simple, in that all it is, is a docker image which handles hosting of a wiki (and sub wikis), which themselves are hosted in public (or private) git repositories.

When gwiki detects a change in any wiki (be it the root, or sub wikis), they are rebuilt, and redeployed.

The keen reader may realise that this allows us to maintain a wiki (or arbitrary website) only through the actions of pushing updates to a repository.

The nice thing is gwiki doesnt have to be a wiki, it can be a basic website as well, it is essentially the concept of the dev server of my website, but improved.


To Build the image, something like the following will work (replace podman with docker if you use docker):

$ podman build -t gwiki:latest .


To run the image, the following is suitable

$ podman run --name gwiki \
		-p 80:80 \
		--env CONFIG_HOME=https://some.website/repo.git \
		--env TIMER=60 \

Notable environment variables

  • CONFIG_HOME : The url to the root wiki, which should contain a config file, which is just an array containing urls to other repos to be hosted.
  • TIMER : Time in seconds between checking if a rebuild must occur.

#Getting Started

This repo ships with a basic "root" wiki script, to get started, the following will suffice, note mkdocs is used.

$ bash <(curl https://git.sr.ht/~skiqqy/gwiki/blob/master/setup)

Once the project has been creating, the only file of importance is config located in the root of the project that was just created.

This config file consists of a single array, with each element consisting of a url to a repository (this repository can be anything, but typically it would be a mkdocs project), gwiki then pulls, builds, and deploys this wiki.

Then if you wish to add a wiki to be deployed, you simply have to update config appropriatly, and push the changes, gwiki does the rest!