At Chec/Commerce.js, we believe open source developer tools documentation is a collaborative effort to be continuously improved on. We welcome and encourage all contributions to the Commerce.js documentation from the community, be it small or big. Contributing to the documentation source will require basic knowledge of Markdown formatting and styling.
The SDK documentation module source code resides in commerce.js/docs
. The docs source is fetched and added to a root directory in the Commerce.js website.
- Errors, typos, or any other improvements to current documentation
- A full-page new documentation to highlight a feature or resource
Do reach out on Slack or Twitter and we are happy to help.
- Drop by the Slack channel.
- Say hi on Twitter.
The simplest way to edit the documentation is to do it on GitHub's interface. All documentation source is located in commerce.js/docs
, so all you'll need to do is locate the appropriate .md
file in chec/commerce.js/docs and edit.
- Navigate to the file in GitHub in chec/commerce.js/docs
- Click the pencil icon in the top right corner and it will switch the document to an edit mode
- Type a commit message and any necessary description after making your edit
- Select Create a new branch for this commit and start a pull request
- Give your branch name a prefix and a description. See here.
- Click Propose file change
- Give the pull request a descriptive title similar to your branch name and a description
- Click Create pull request to submit
For more complex changes, you'll want to fork the repo and edit locally:
- Fork
chec/commerce.js
git clone
the fork to your local machine- Make edits in your favorite code editor on a new branch
- Commit and push changes to your remote repo
- Create a pull request to
chec/commerce.js/master
- Commit messages should be in the imperative tense ie. Edit the intro section of cart vs. Edited the intro section of cart
- Your branch should be prefixed with either Feature for new documentation content or Bugfix for typos and other small changes. Ie. Feature/new-cart-content
To contribute to other Chec open source projects, see a full list here.