This is the repo for the yourjustice.life website, and we want it to be the best resource for YourJustice community (except YourJustice itself).
This website can be improved and changed by the contribution of community members, who add content, provide feedback, help this website to work.
This project follows the all-contributors specification. Contributions of any kind welcome!
- Create a new issue.
- Comment on the issue (if you'd like to be assigned to it) - that way our team can assign the issue to you.
- If you're not sure, here's how to fork the repo.
If you're ready to contribute and create your PR, it will help to set up a local environment so you can see your changes.
-
Set up your development environment
-
Clone your fork
If this is your first time forking our repo, this is all you need to do for this step:
$ git clone [email protected]:[your_github_handle]/landing.git && cd landing
If you've already forked the repo, you'll want to ensure your fork is configured and that it's up to date. This will save you the headache of potential merge conflicts.
$ git remote add upstream https://github.com/YourJustice-Live/landing.git
To sync your fork with the latest changes:
$ git checkout dev
$ git fetch upstream
$ git merge upstream/dev
- Install dependencies
$ yarn install
- Create new branch for your changes
$ git checkout -b new_branch_name
- Start developing!
$ yarn dev
- Open this directory in your favorite text editor / IDE, and see your changes live by visiting
localhost:3000
from your browser - Pro Tip: Explore scripts within
package.json
for more build options
- Commit and prepare for pull request (PR). In your PR commit message, reference the issue it resolves (see how to link a commit message to an issue using a keyword).
$ git commit -m "brief description of changes [Fixes #1234]"
- Push to your GitHub account
$ git push
- After your changes are committed to your GitHub fork, submit a pull request (PR) to the
dev
branch of theYourJustice-Live/landing.git
repo - In your PR description, reference the issue it resolves (see linking a pull request to an issue using a keyword)
- ex.
Updates out of date content [Fixes #1234]
- ex.
- Why not say hi and draw attention to your PR in our discord server?
- The website team reviews every PR
- Acceptable PRs will be approved & merged into the
dev
branch
The Translation Program is an initiative to translate yourjustice.life into different languages and make the website accessible to people from all over the world.
Folder | Primary use |
---|---|
/components |
Next.js components that do not function as standalone pages |
/data |
Markdown(.md) files for site content |
/pages |
Static pages |
/public |
Image assets |
/styles |
Root level css styling |
/utils |
Custom utility scripts |