Visit https://smartthings.github.io/ to view rendered repository. The page contains a listing of repositories that are open source and maintained by SmartThings Developers.
- Clone the repository and checkout a new branch.
$ git clone https://smartthings.github.io
$ git checkout -b branch_name
- Update the files you'd like to change.
- Push the changes upstream.
$ git add filename1 filename2
$ git commit -m "add your message here"
$ git push origin branch_name
- View your branch in Github and create a Pull Request.
To have a new repository show up at smartthings.github.io, a change to orgs.js file is required.
- To add all the repositories inside a Github organization: Add a new entry to orgs.js, specify the Github organization name, and set the
type
toorg
:
{
"name": "SmartThings",
"type": "org"
}
- To add a single repository: Add a new entry to orgs.js, specify the Github organization name and the repository name (separate them with a
/
), and set thetype
torepo
:
{
"name": "SmartThings/SmartThingsPublic",
"type": "repo"
}
Open the cloned repository using your terminal and run:
npm i -g http-server
Then:
http-server
Select available server. For example: http://127.0.0.1:8080