This repo contains the source powering up docs.reviewpad.com
- Git
- Nodejs: version v16.14.0 or greater
- Yarn v1: See Yarn website for installation instructions
- A fork of the repo (for any contributions)
- A clone of the reviewpad/docs repo on your local machine
- Navigate into the project root
cd docs
- Install the website's npm dependencies
yarn
- Start a local development server
yarn start
Note
You browser should open automatically. If that's not the case please navigate to http://localhost:3000.
Note
Most changes are reflected live without having to restart the server.
We strongly recommend using Visual Studio Code as your IDE.
- EditorConfig for VS Code for consistent coding styles
- MDX for syntax highlighting on MDX files
- YAML for enabling
reviewpad.yml
JSON schema.
Open the project in VSCode, open the command palette (Ctrl+Shift+P) and search for Preferences: Open Workspace Settings (JSON)
.
Paste the following configuration:
{
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"files.autoSave": "onFocusChange"
}
- Checkout the
main
branch from any folder in your localdocs.reviewpad.com
repository
git checkout main
- Ensure you have the latest main code
git pull origin main
- Create a new branch
git checkout -b THE-NAME-OF-MY-BRANCH
Warning
Please replace
THE-NAME-OF-MY-BRANCH
with a suitable name for your branch
- Follow the "Running locally" instructions
- Save the files and check in the browser
If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile.
- Stage and commit your changes
git add -A && git commit -m "MY MESSAGE"
Warning
Please replace
MY MESSAGE
with a conventional commit message, such asfix: typo on installation section
- Push your changes
git push MY-FORK-NAME THE-NAME-OF-MY-BRANCH
Warning
Please replace
MY-FORK-NAME
with the name of your fork Please replaceTHE-NAME-OF-MY-BRANCH
with the name of your branch
-
Go to the reviewpad/docs repo and you should see recently pushed branches.
-
Follow GitHub's instructions.
-
If possible, include screenshots of visual changes. A preview build is triggered after your pull request is opened.
Note
After a pull request is created, a preview is built automatically.
yarn reset
to clear the local cache
If you have any questions, please reach out to us at our Discord community 💪
This project is licensed under GNU Lesser General Public License v3.0