-
Notifications
You must be signed in to change notification settings - Fork 298
Editing Wiki Locally
The Github wiki is implemented using github/gollum. For more complex editing it's 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 peoples 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.
Each project should have its own page located in /projects/ProjectName.md
.
Images for each project should be placed into the /projects/images/project-parent/
directory.
The Home page /Home.md
should be updated with a link to the project.
# Project Name With White Space (this shows up in the Pages listing as the name of the page)
Description of the project and a representative picture of the control:
[[/projects/images/project-parent/project-screenshot.png]]
# Maven Artifacts
* project-parent
* project
* project-examples
# Documentation
## Maven Stable
```xml
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>project</artifactId>
<version>1.4.14</version>
</dependency>
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>project</artifactId>
<version>1.4-SNAPSHOT</version>
</dependency>
<repository>
<id>wicketstuff-core-snapshots</id>
<url>ttps://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
// Example in Java of how the component can be used.
<!-- HTML example of how the component can be attached to markup -->
<div wicket:id="grid"></div>
The list of project maintainers. A good starting point would be the contents of the project/pom.xml.
Or it could list historical contributors.
Path on github to core-1.4.x version of the project files.
Path on githun to master version of the project files.
## Page Links
```text
[[ 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: