Hi, we, the guide maintainers, are really exited that you are interested in contributing to this guide. Before contributing, decide what type of contribution you are looking to make:
- Writing guide pages.
- Writing code. Before starting make sure to read:
- Becoming a team member: send a message to Mr. Swaggles or ghostrider-05 on Discord
To make changes to the content of the guide, we recommend to use the CMS (Content Management System), available on the /admin/
path or by clicking the Edit this page
link on a guide page, to make your contributions through the following steps:
- Create a GitHub account
- Log in using your GitHub account on the guide CMS.
- Write guide pages while following the guidelines.
- When finished, save your edited pages and go to the workflow UI and move your changes to the
In Review
column. - A maintainer will review your changes and merge the pull request on GitHub.
Code contributions should be performed through the following steps:
- Find an issue to fix.
- Fork the repository.
- Create a branch for your issue.
- Make the necessary changes to the repository.
- Commit and publish your changes.
- Create a pull request into the main repository from your fork.
- Address any comments.
- Branch will hopefully be accepted and merged.
We have some minor style requirements for documentation additions:
- Always proofread your submissions. PRs that contain spelling mistakes or incorrect grammar will be requested for changes.
- All checks must pass before the pull request can be merged.
- When adding folders:
- use lowercase for folder naming conventions.
- add an
index.md
file is present in all new/docs/
folders, if this is needed. Usually you would describe the content in this folder or some general content that does not need a separate file.
- When naming your files:
- use snake_case for file naming conventions. Only use lowercase for TypeScript files.
- If you are adding markdown files in the
docs
folder:- use
\d{2}_([a-z_])*.md
for naming all other files in the/cheatsheet/
,/essential/
and/guide/**/
folders. - add the following frontmatter to new files:
title
(string
): The topic of the current page.advanced
(boolean
): Whether this page is an advanced guide. Only needed on pages when a folder has an advanced section (/guide/blender/
and/guide/udk/
).
- use
- If you are changing / adding content related to UDK, check your changes in UDK (only follow the content you have written and not your own knowledge). Any PR with changes in UDK should be reviewed.
- If you are adding image resources:
- pay attention to their file size: images above 1MB will fail the tests and should be reviewed. Use an online compressor tool or Windows PowerToys' Image resizer to make sure that the file size is below the limit.
- Images should be added in
/docs/.vitepress/public/images/{section}/
and icons in/docs/.vitepress/public/icons
. - Images and icons should have relevant file names to their content and be named in snake_case. Icons should also be prefixed by
logo_
. - Images are not allowed directly in
/images/
,/images/blender/
and/images/udk/
, only the subdirectories of those folders. - Image references in markdown should have a good alt text. They can also have a title with a comment or small joke.
- Images should have a line break (
---
with one white line above) between each other if no other text is between the images.
- Create an issue for small contributions (such as fixing typos or broken links).
The project utilises vitepress
in order to create pages for our documentation, running on a Node backend.
node --version
should show at leastv18.19.0
. Lower versions have not been tested but may also work.npm --version
should show at least10.2.3
. Lower versions have not been tested but may also work.
- Clone the repository to your machine.
- Execute
npm install
from the root of the repository.
- Execute
npm run docs:dev
. - Open the URL specified within the output of the command.
Note
To preview the built website:
- Execute
npm run docs:build
andnpm run docs:preview
. - Open the URL specified within the output of the command.
To share a local build of the current branch:
- Execute
npm install
from the root of the repository. - Log into the RLMM / your own Cloudflare account with
npx wrangler login
and complete the oauth2 flow. - Execute
npm run docs:build
- Execute
npx wrangler pages deploy ./docs/.vitepress/dist/ --project-name=rocketleaguemapmaking --branch=<branch>
. Replace<branch>
with the name of the current branch.
This guide uses a custom guide theme. The theme theme-rlmm
is built on VitePress with Vue.js 3 and Vite.
- Any theme modification should be in
docs/.vitepress/theme/
- Feature requests and issues with the theme (components) should be opened in the theme repository
Furthermore, this repo has the following pageClass
es available:
page-inline-images
: makes all images on the page display inline. This is used for pages with lists with an icon at the beginning of each item.
The following components (not including the components registered by the theme) are also registered globally: