- Making a Quick Edit
- Editing Locally
- Editing Using Stoplight Studio
- Commit Messages
- Style Guides
- Linting & Spell Checking
- Contributing to Other Projects
Thanks for showing interest in contributing!
The following is a set of guidelines for contributing to BigCommerce Developer Documentation. These are just guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
The easiest way to edit a file is using GitHub's web interface:
- Navigate to the file in github (making-requests.md, for example)
- Click the pencil icon to Edit This File
- Make the edit
- Type a commit message
- Select Create a new branch for this commit and start a pull request
- Give the branch a descriptive name
- Click Propose file change
- Give the pull request a descriptive title
- Fill in the pull request description
- Click Create pull request
That's it! You're done.
For more complex changes, fork and edit locally:
- Fork
bigcommerce/dev-docs
git clone
the fork to your local machine- Make edits in your favorite code editor on a new branch
- Commit and pushes changes to your remote repo
- Create a pull request against
bigcommerce/dev-docs/master
Stoplight Studio "is Stoplight's next generation application for API design, modeling, and technical writing". Studio makes contributing to BigCommerce Developer Documentation super easy -- simply navigate to https://stoplight.io/p/studio/gh/bigcommerce/dev-docs to load the in-browser editor, then
- Create a new branch
- Make your edits
- Click Commit to select the file changes you would like to commit and view a diff
- Commit the changes
- Navigate to the commit in GitHub and make a pull request against
bigcommerce/dev-docs/master
- Always include subject; include body when necessary
- Use present tense ("Add feature" not "Added feature")
- Use imperative mood ("Fix broken link..." not "Fixes broken link...")
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the body to explain what and why vs. how
# install grunt-cli
npm install -g grunt-cli
# make sure you're in dev-docs root dir
cd ~/path/to/dev-docs
# install the linters and spell checkers
npm install
# run mdspell to spell check:
grunt mdspell
# run textlint to lint / check for dead links:
grunt textlint
Configuration Files:
...
├── .spelling # mdspell dictionary
├── .textlintrc # textlint configuration file
├── Gruntfile.js # grunt configuration file
├── package-lock.json # packages for grunt, linting, and spell checking
├── package.json # packages for grunt, linting, and spell checking
...
There are many other public BigCommerce repositories accepting contributions. If you're interested in contributing to those projects, see the full list of public source repos. Also, consider joining the BigCommerce Developer Community Group.