Skip to content

Commit

Permalink
Merge pull request #55 from ReneeVandervelde/doc-updates
Browse files Browse the repository at this point in the history
Break SDK and CLI into separate pages
  • Loading branch information
ReneeVandervelde authored Apr 4, 2020
2 parents e9e2457 + e5447aa commit 1bf80c2
Show file tree
Hide file tree
Showing 5 changed files with 523 additions and 281 deletions.
139 changes: 139 additions & 0 deletions docs/cli-overview.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="keywords" content="Shade, Hue, CLI, Terminal, Command" />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>CLI / Shade</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="all" />
<link href="https://fonts.googleapis.com/css?family=Alegreya+Sans+SC:300|Open+Sans:300|Inconsolata" rel="stylesheet">
<link rel="stylesheet" href="css/atom-one-light.css" type="text/css" />
<link rel="stylesheet" href="css/atom-one-dark.css" type="text/css" media="(prefers-color-scheme:dark)" />
<link rel="stylesheet" href="css/main-1.1.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/dark-1.1.css" type="text/css" media="(prefers-color-scheme:dark)" />

<script src="js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<header>
<a href="index.html">
<img src="svg/logo-full-dark.svg" class="logo only-dark" alt="Shade Logo" />
<img src="svg/logo-full.svg" class="logo only-light" alt="Shade Logo" />
</a>
</header>
<section>
<header>
<a name="cli" href="#cli">
<h1>CLI</h1>
</a>
</header>
<p>
Shade's CLI can provide an API for system tools to control lights,
can be run manually, and functions as a sample project for the SDK!
</p>
<article>
<a href="#cli-install" name="cli-install">
<h2>Install</h2>
</a>
<h3>Using HomeBrew</h3>
<p>
If you're on a Mac with <a href="https://brew.sh">HomeBrew</a> you can
install Shade with the following command:
</p>
<pre><code class="shell">
$ brew install inkapplications/cli-tools/shade
</code></pre>
<h3>Manual Install</h3>
<p>
For Windows or Linux, Shade's CLI can be installed by
downloading the
<a href="https://github.com/InkApplications/Shade/releases/latest">latest release</a>
and running the or <code>bin/shade.bat</code> or
<code>bin/shade</code> executable or adding them to your
<code>$PATH</code>.
</p>
</article>
<article>
<a href="#cli-connect" name="cli-connect">
<h2>Connect to a Hue bridge</h2>
</a>
<p>
You can set up your connection to Hue using the
<code>connect</code> command. This will automatically discover
hue bridges on the network and attempt to authenticate with
them.
</p>
<pre><code class="shell">
$ shade connect
Connecting to bridge at 192.168.1.100
Waiting to connect. Press the button on your Hue Device now.
</code></pre>
</article>
<article>
<a href="#cli-lights-list" name="cli-lights-list">
<h2>List lights</h2>
</a>
<p>
You can get information about of all the lights known to your
Hue bridge with the <code>lights:list</code> command.
</p>
<pre><code class="shell">
$ shade lights:list
1:
name: Renee's Office
uuid: 00:19:28:37:00:a1:b9:f2-0b
type: Extended color light
firmware: 5.127.1.26581
2:
name: Kitchen
uuid: 00:91:82:73:00:b9:c3:7a-0b
type: Extended color light
firmware: 5.127.1.26581
</code></pre>
</article>
<article>
<a href="#cli-lights-control" name="cli-lights-control">
<h2>Control Lights</h2>
</a>
<p>
You can control lights using the <code>lights:control</code>
command, including on/off, brightness, and color.
</p>
<pre><code class="shell">
$ shade lights:control 1 --on --brightness 50
</code></pre>
</article>
<article>
<a href="#cli-more" name="cli-more">
<h2>Groups, Scenes, and more</h2>
</a>
<p>
Shade supports commands for many of Hue's API's like Groups and
Scenes. For a full list of commands, run
<code>shade-cli --help</code>
</p>
</article>
</section>
<section>
<header>
<a name="contributions" href="#contributions">
<h1>Contributions and Issues</h1>
</a>
</header>
<p>
Shade is free, <a href="https://github.com/InkApplications/Shade">Open Source</a>,
actively maintained, and always looking for contributions.
</p>
<p>
There are many Hue devices and things to do with them.<br />
Testing all that can be difficult.
If you have an issue, please
<a href="https://github.com/InkApplications/Shade/issues/new/choose">tell us</a>!
</p>
</section>
</body>
</html>
4 changes: 4 additions & 0 deletions docs/css/dark-1.0.css → docs/css/dark-1.1.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ code,
.only-dark {
display: initial;
}

.hero > article {
background-color: #292929;
}
87 changes: 80 additions & 7 deletions docs/css/main-1.0.css → docs/css/main-1.1.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ h3
color: #616161;
}

section,
body > header
{
max-width: 1024px;
margin: 0 auto;
}

a,
a:visited,
a:hover
Expand All @@ -35,6 +28,18 @@ a:hover
text-decoration: none;
border-bottom: 1px solid #D84315;
}
a[href^="#"]
{
border: none;
}
a[href^="#"]:hover
{
cursor: default;
}
a[href^="#"]:focus
{
outline: none;
}

h1 {
font-size: 3rem;
Expand Down Expand Up @@ -80,12 +85,71 @@ pre > code {
margin: 1rem 0;
}

section,
body > header
{
max-width: 1024px;
margin: 0 auto;
}

body > header {
margin-bottom: 2rem;
}

body > header > a,
body > header > a:hover
{
border: none
}

.logo {
height: 5rem;
max-width: 40vw;
margin: .5rem 0;
}

.hero {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.hero > h1 {
flex-basis: 70%;
align-self: center;
font-size: 2rem;
}
.hero > article {
border-radius: .5rem;
padding: 1rem;
flex-basis: 30%;
background-color: #f2f2f2f2;
}
.hero > article > h1 {
font-size: 2rem;
}
.hero > article > a {
border-bottom: none;
border: 1px solid #D84315;
padding: .5rem;
border-radius: .25rem;
margin: 1rem 0;
display: inline-block;
float: right;
}
.hero > nav {
flex-basis: 30%
}
.hero > nav > a {
border-bottom: none;
display: block;
padding: 1rem;
font-size: 1.25rem;
}
.hero > nav > a:after {
content: '⭢';
padding-left: .25rem;
padding-top: .125rem;
}
.links {
margin: 1rem 0;
}
Expand Down Expand Up @@ -114,3 +178,12 @@ pre > code {
{
display: none;
}

@media(max-width: 820px) {
.hero > h1,
.hero > nav,
.hero > article
{
flex-basis: 100%;
}
}
Loading

0 comments on commit 1bf80c2

Please sign in to comment.