In order to contribute, you at least need a GitHub account. This is a requirement so that you can create a fork of the repository, add your changes, and submit a pull request.
From there, you have a few different options for contributing.
The easiest way to contribute if you are not familiar with git
or don't want to install anything is to use
the remote development.
There are a few important files and directories to know about when contributing;
docs
- This is where all the guide content is stored, aside from assets.static
- This is where images, videos, and other assets are stored.config.yml
- This is the configuration file that stores the guide's metadata, layout information, et cetera..backend
- This folder houses all Docusaurus configuration and build files. Do not modify anything in here unless you know what you are doing.
At the time of writing, this is behaving a bit strangely. If you are having issues, please try the local development method.
You can use StackBlitz web-based editor and link your GitHub account to it. From here, you will have access to a web version of Visual Studio Code, where you can edit the files and see a preview update in real time.
-
In the top right, click
Fork
to create a fork of the repository. This will create a copy of the repository in your account. Alternatively, you can click here to create a fork. -
Visit
https://pr.new/github/<your username>/<name of fork>
to open the StackBlitz web editor with your fork. For example, if your username isspeedrun-guide
and your fork is namedportal
, you would visithttps://pr.new/github/speedrun-guide/portal
. -
From here, you can edit the files and see a preview update in real time. When you're done, you can push the changes to your fork, then submit a pull request. You can also create a pull request directly from within the editor by navigating to
Source Control
on the left side.
Local development can have a few benefits, but also a few more steps. Those benefits include faster preview and build times, as well as the ability to use your own editor, like WebStorm or Vim.
-
Clone the project using
git clone https://github.com/speedrun-guide/portal
. If you don't havegit
installed, learn how to here. -
Install Node.js.
-
Run
npm run dev
in the project directory in a terminal.localhost:3000
should automatically open in your browser and provide you a live updating preview.
Once you've followed all of these steps, you can edit the guide and see your changes in real time.
Once you've made your changes, you can submit a pull request to the main repository. This will allow the verified maintainers to review your changes and merge them into the main repository.
Please write meaningful PR messages describing all the changes you've made. If you are adding a new section, please include a description of the section and what it covers.
PRs that modify anything in .backend
are incredibly likely to be rejected, unless you have a very, very good reason.