The wiki in GitLab can be managed via the web interface, but it is also possible to edit it locally using the Gollum gem. In this recipe, we will take a look at what is needed to get the wiki running on your local machine, make a change, and push it back to GitLab.
To follow this recipe, you need to have Ruby installed on your system, and you need the permissions to install new gems on your machine. Also, you need to have a project in GitLab that has at least one wiki page.
Let's create a wiki article using Gollum with the following steps:
Install Gollum on your local machine. This might take a while:
gem install gollum
Now, clone the wiki. You can find the Git URL in the top-right section on the wiki page of your project.
Go to the folder you just cloned.
Enter the
gollum
command. This will start the Gollum server so that you can watch your changes in your browser.