Documentation Guidelines

User documentation is hosted via GitHub Pages using the Jekyll theme, Just the Docs. It is deployed via a GitHub action automatically whenever a change to documentation under the folder docs is merged into the main branch.

Contributions should follow the Contributor Guidelines and be submitted via a pull request.

Table of Contents

  1. Building Locally
  2. Guidelines
    1. Assets
    2. Navigation Order
    3. Style
    4. Page Contents
      1. Table of Contents (TOC)

Building Locally

For more detailed information on how to install Jekyll and its prerequisites, please see the relevant Jekyll documentation.

  1. Navigate to the root of the documentation, the folder docs.

  2. Build the site and make it available on a local server by running bundle exec jekyll serve

  3. Browse to http://localhost:4000.

Guidelines

Assets

Where possible, all assets should be hosted within the repository itself and not be hosted externally and embedded as links.1 Even if the assets are used by the RimSort application itself, a copy of it should be included under docs/assets. This means that the documentation portion of the repository can act standalone.

Navigation order should be determined by importance, and by similarity between the names of the page titles. For example, Documentation Guidelines and Contributer Guidelines should be next to each other in the navigation order as they share a similar structure and word. This is for the sake of usability and aesthetics.

Style

Navigation info such as File > Settings and filenames such as About.xml should always be code blocked.

Page Contents

Table of Contents (TOC)

Parent pages will automatically generate and include a table of contents consisting of its children pages. Do not disable this.

Most content pages should include a table of contents (TOC). The TOC should be the first second level header item after the primary page header and any contents belonging to that.

Both the page header and the table of contents header should not be a part of the table of contents, and should just be marked with .not_toc. All other headers within the page should be a part of the table of contents.

The table of contents header should be marked with .text-delta such that it is set as delta text.

To generate the table of contents, include the following code (markdown):

## Table of Contents
{: .no_toc .text-delta }

1. TOC
{:toc}

  1. Some assets from the old wiki are grandfathered in and not hosted within the repository itself.