Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.5 KB

README.md

File metadata and controls

62 lines (43 loc) · 1.5 KB

Portal for SmartThings Developers @ GitHub

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.

Getting Started

  1. Clone the repository and checkout a new branch.
$ git clone https://smartthings.github.io
$ git checkout -b branch_name
  1. Update the files you'd like to change.
  2. Push the changes upstream.
$ git add filename1 filename2
$ git commit -m "add your message here"
$ git push origin branch_name
  1. View your branch in Github and create a Pull Request.

Add a New Repository to the List

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 to org:
  {
      "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 the type to repo:
  {
      "name": "SmartThings/SmartThingsPublic",
      "type": "repo"
  }

Test Changes Locally

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