_includes/extra | ||
module-development | ||
.gitignore | ||
404.md | ||
_config.yml | ||
Gemfile | ||
Gemfile.lock | ||
index.md | ||
LICENSE | ||
README.md |
Documentation
User-made documentation for GooseMod.
Adding content
To add content to this documentation, first fork it to have your own copy of the repo. Clone your fork and make your edits there.
To add a page, add a MarkDown .md
file to one of the categories
(eg: module-development/
).
You can also add your own category by adding a directory with a README.md
file inside, that describes what your category is about and lists the
category's files by adding this line:
{% include list.liquid all=true %}
By default Jekyll will pull the first title as the page's title, but that can be overwritten with front matter at the top of your page:
---
title: Your title
# other front matter definitions
---
To sort a category's pages, add a sort
property to the pages' front matter
section:
---
# other front matter definitions
sort: <number>
---
Updating the documentation website
Before pushing your edits to the documentation, you may want to see what they look like. To do so, you need to:
- have a local Ruby environment
- install the
bundler
andjekyll
gemsgem install bundler jekyll
- install this project's specific requirements:
bundle install
(orbundle update
if you already built it before) - run Jekyll:
bundle exec jekyll serve
- open the address that is returned on the terminal in your browser
(usually
http://127.0.0.1:4000/
)
To push your modifications to the documentation, push your modifications to your fork and submit a pull request to this one.
No particular operation is needed, Github Pages will update the documentation's website whenever commits are pushed to this repo.
Additional resources
- GH Pages: Github Pages docs
- Generator: Jekyll docs
- Theme: jekyll-rtd-theme and rundocs.io