Skip to content

Documentation site for Regression Games' games, tools, etc.

Notifications You must be signed in to change notification settings

Regression-Games/RegressionDocs

This branch is 60 commits behind main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4b3cd72 · Aug 26, 2024
Jul 24, 2023
Jun 6, 2023
Aug 26, 2024
Aug 22, 2024
May 8, 2024
Jun 6, 2023
Dec 6, 2023
Jun 6, 2023
May 7, 2024
Aug 22, 2024
Jul 23, 2024
Jun 6, 2023
Mar 29, 2024

Repository files navigation

RegressionDocs

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ yarn

Local Development

$ yarn start -p 3005

(Port 3005 is to avoid conflicts with the RG Client also running locally)

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Best Practices for this Project

Naming Conventions

  • Names of markdown files and images are kebab-case
  • Names of markdown files should match either their sidebar_label or top-level title
  • Images should be given descriptive filenames that reflect what they're being used to demonstrate
  • Markdown partials begin with an underscore (ex. _shared_section.mdx)

File Structure

  • Markdown files are organized in a way that mimics their layout in the site's sidebar. This makes it easier to locate a file or link from one page to another.
    • Ex. If the "Client Dashboard" page appears under "Session Insights" in the sidebar, then its path should be docs/session-insights/client-dashboard.mdx
  • An image is always located within an /img directory at a reasonable depth in relation to the md that requires that image. The idea here is to make it easy to locate and link to images, so keep them close-by.
    • Rule of thumb -> either same level as the md, or at its parent's level (img/my-image.png or ../img/my-image.png)
  • If an /img dir contains many images or is shared by many pages, organize images into subdirectories that match the names of the markdown files they belong to.
    • Ex. images belonging to docs/tutorials/building-your-first-bot should be located under docs/tutorials/img/building-your-first-bot/

Misc.

  • DO NOT include important headers in partials - Docusaurus won't include these in the table-of-contents for any pages they are used in.