/docs

Primary LanguageJavaScript

Docs

This repository contains the sources of the documentation for CHIP, the DIPS, PocketCHIP, CHIP PRO, CHIP PRO DevKit, and Gadget.

Submit an Request for Edit

To submit an edit to the online documentation create a ticket under Issues. For instructions on how to create a ticket visit the Wiki page called "Request: How to Submit a Request for Online Documentation".

Organisation

In order to simplify things, all of the documention has been moved into subdirectories of this repository:

Branches

There are four branches:

Edit and Review Flow

How to push and switch from unstable to testing to stable branches.

Unstable

To start working with the docs for the first time, clone the upstream branches:

git clone <upstream url>

Make sure you are on the unstable branch:

git branch git checkout unstable

Edit and add any files you need. When you are ready to review check out the branch status to see if there are any unchecked files:

git status

Add any unchecked files to git:

add <file path> You can add whole directory to make it quicker.

Commit changes:

git commit -m "commit message"

Push changes to sync upstream with your local computer:

git push

Review your changes at http://ntc-docs-unstable.surge.sh/

Testing

How to move from unstable to testing branch.

Commit all changes to unstable and switch to testing branch:

git checkout testing

Merge unstable with testing (everything from unstable will merge unless you cherry-pick):

git merge unstable

To choose a commit to merge, look at all the commits and grab commit-hash:

git log

Choose the commit to merge:

git cherry-pick <commit-hash>

Push and sync changes:

git push

Get peers to review your changes at http://ntc-docs-testing.surge.sh/

History

In the past, the documetation is spread over 6 different repositories on github.com:

They should soon be deleted.