Contributing
November 6, 2023 ยท View on GitHub
- Fork this repo and clone it to your development computer.
- From the terminal, navigate to the directory for your cloned repo.
- Add the main repo as a remote named
upstreamgit remote add upstream https://github.com/notaryproject/notaryproject.dev.git - Use
nvmto install the latest [LTS release][] of Node.nvm install --lts - Use
npmto get NPM packages and install the git submodules.npm installNote By default, this is done on the
origin/mainbranch. This step must be performed on a branch based fromoriginbefore you start creating new branches based onupstream/main. If you skip this step, the submodules will fail to install correctly.
Build or serve the site
To locally serve the site at [localhost:8888][], run the following command:
$ npm run serve
To build and check links, run these commands:
$ npm run build
$ npm run check-links
Submitting a PR
- Fetch the latest from
upstreamand create a new branch for your change.git fetch upstream git checkout -b <branch_name> upstream/main - Make your changes.
- Build and test the site on your development computer to verify your changes appear as you intended.
- If you updated any CLI commands, manifest examples, or code/configuration examples, please test those changes as well to ensure they work as you intended.
- Commit and push your changes. Note that Notary project repositories require signed commits. You can refer to GitHub documentation on commit signatures verification to know more about signing commits.
git add <files_changed> git commit -m <commit_message> git push origin HEAD - File a PR to notaryproject.dev.
Updating project maintainers
- Ensure justification is provided for the change. Example
- Create a PR that updates both CODEOWNERS and MAINTAINERS with the maintainer updates. Example
- Make sure
@notaryproject/notaryproject-governance-maintainersis added as a reviewer.