-
Notifications
You must be signed in to change notification settings - Fork 296
Editing Wiki Locally
The Githib wiki is implemented using github/gollum. For more complex editing its possible to git clone the wiki and work locally.
- Click on Wiki
- Click on Git Access
- Copy writable git location.
- Clone the location like
git clone [email protected]:wicketstuff/core.wiki.git
You can then *pull changes made online or via other peopls cloned repositories and push your work back to the central site.
- Install gollum:
gem install gollum
- Install Markdown support:
gem install rdiscount
Then in the root of your cloned copy run gollum
which will run a webserver on http://127.0.0.1:4567. Note that the page content shown reflects
the latest committed values for each file. If you want to see what your latest changes would look like you need to git commit
locally before you rungollum
.
-
/Home.md
This is the home page that appears when users click on the wiki link for wicketstuff/core/wiki. -
/dev
This is the directory for topics related to wicketstuff/core development like releases and this document. -
/projects
This is a directory for holding each projects top level pages.
[[ Link Label | Link ]]
The natural language version that you want displayed for the link is the first part. The actual link is the second part.
There is a single page namespace in Gollum so the second part if it is a page is the name of the page with dashes replacing spaces and no path info and no file extension.
For example: Here is the Progress Bar Project link.
[[Progress Bar Project | Progressbar ]]
-
Progress Bar Project
is the label we want shown for the link. -
Progressbar
is the name of the page we are linking to. On the filesystem the path to the file is/projects/Progressbar.md
but due to the single namespace we can refer to it directly.
Image resources can also be placed into any location in the directory structure. I would recommend an images
directory at each level in the heirarchy to keep things seperated.
They can then be referred to using an absolute name like:
[[/dev/images/example-image.png]]
Which renders like this: