This wiki is hosted on GitHub Pages using static site generation via Jekyll.
bundle install
to install the dependencies.bundle exec jekyll serve
and open a browser window to http://localhost:4000/chesswiki/
.Pages can be created by creating a markdown file (.md
) in the content/
directory.
The file should start with font matter:
1
2
3
---
title: My Awesome Page
---
The page content can then be written using GitHub Flavored Markdown for formatting, although please do not use Markdown links for anything other than #
links.
Some additional functionality is provided via Liquid.
The first sentence of the page will appear in search results.
To create a link, use the link
include.
The page to link to is specified using the to
parameter.
When linking internally, the text for the link can be specified using the text
parameter, and if omitted defaults to the title of the page, which can be made lowercase using the lowercase=true
parameter.
If the specified page does not exist, a red link to Contributing will be made instead.
When linking externally, the text for the link must be specified using the text
parameter.
Example:
1
2
3
4
5
- {% include link to="content/alpha-beta.md" %}
- {% include link to="content/alpha-beta.md" text="the link text" %}
- {% include link to="content/alpha-beta.md" lowercase=true %}
- {% include link to="wherever/does-not-exist.md" %}
- {% include link to="https://example.com" text="External link" %}
Produces: