Skip to content

Commit

Permalink
minor doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed May 31, 2019
1 parent 5c1bdf4 commit 9018977
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions Publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Steps:
rimraf dist # delete previous dist products (optional)
npm run dist # build the dist products, and publish, must do it on each OS (Mac,Win,Linux)
```
To test "pack" run `npm run dist:draft`.
Note: must set GH_TOKEN for `npm run dist` to publish to github
(e.g. `export GH_TOKEN=...` on Mac & Linux, `$env:GH_TOKEN=...` on Windows Powershell)

Expand Down
2 changes: 1 addition & 1 deletion docs/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Allowed patterns & meta-patterns for PatternsService:
* e.g. `#ff0033`
* `~off`
* `~blink:{color}-{count}`
* e.g. `~blink:red-3`
* e.g. `~blink:red-3` (can be CSS color name)
* e.g. `~blink:#ff00ff-5`
* `~blink:{color}-{count}-{on/off time}`
* e.g. `~blink:white-3-0.2`
Expand Down
7 changes: 7 additions & 0 deletions docs/tests/b1c-color-rand.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env perl
# Use this with "Script" Event Source set to "parse as color"
# Generates a random RGB hex code (e.g. '#F3027E') every time it is run

my $color = join '', map { sprintf "%02x", rand(255) } (0..2);

print '#',$color,"\n";
4 changes: 4 additions & 0 deletions docs/tests/colors-intext.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
color: #00f3ff

dddd

10 changes: 10 additions & 0 deletions docs/tests/colors-largetext.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Here is a bunch of random text.
This needs to go above the 'maxStringLength'
(which is by default 200 chars)

color: #00f3ff

"Bacon ipsum dolor sit amet salami jowl corned beef, andouille flank tongue ball tip kielbasa pastrami tri-tip meatloaf short loin beef biltong. Cow bresaola ground round strip steak fatback meatball shoulder leberkas pastrami sausage corned beef t-bone pork belly drumstick.

blahblahblahblah

4 changes: 4 additions & 0 deletions docs/tests/colors-testA.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
color: #990033

dddd

4 changes: 4 additions & 0 deletions docs/tests/colors-testB.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
color:#0033d3

dddd

1 change: 1 addition & 0 deletions docs/tests/pattern-existing.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pattern:"policecar"
3 changes: 3 additions & 0 deletions docs/tests/pattern-meta.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//
pattern:~pattern:BOB:3,#ff00ff,0.5,0,#00ff00,1.3,0
//

0 comments on commit 9018977

Please sign in to comment.