From 5f18fa7591fe7e236742dd90a5cda9a970b06602 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 30 Apr 2024 10:33:03 -0700 Subject: [PATCH] docs: Adding LightScript Affiliate Links ( Fixes #121 ) --- Commands/Hue/README.ps1.md | 21 +++++++++++++++++++++ Commands/LaMetric/README.ps1.md | 17 +++++++++++++++++ Commands/NanoLeaf/README.ps1.md | 2 ++ README.md | 20 ++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 Commands/LaMetric/README.ps1.md diff --git a/Commands/Hue/README.ps1.md b/Commands/Hue/README.ps1.md index a3c6bca..7d81ccf 100644 --- a/Commands/Hue/README.ps1.md +++ b/Commands/Hue/README.ps1.md @@ -1,5 +1,26 @@ This directory contains LightScript's functions for [Philips Hue Bridges](https://www.philips-hue.com/). +> Don't have a Hue Bridge? [Buy On Amazon](https://amzn.to/4bguVQO) +
+
+ Want more Hue? + +
+
+ ~~~PipeScript { Import-Module ../../LightScript.psd1 -Global [PSCustomObject]@{ diff --git a/Commands/LaMetric/README.ps1.md b/Commands/LaMetric/README.ps1.md new file mode 100644 index 0000000..e644d77 --- /dev/null +++ b/Commands/LaMetric/README.ps1.md @@ -0,0 +1,17 @@ +This directory contains LightScript's functions for [LaMetric Time](https://lametric.com/en-US). + +> [Don't have a LaMetric Time?](https://amzn.to/44p3HF6) + +~~~PipeScript { + Import-Module ../../LightScript.psd1 -Global + [PSCustomObject]@{ + Table = Get-Command -Module LightScript | + Where-Object { $_.ScriptBlock.File -like "$pwd*" } | + .Name .Verb .Noun .Source { + $relativePath = $_.ScriptBlock.File.Substring("$pwd".Length) -replace '^[\\/]' + "[$relativePath]($relativePath)" + } + } + +} +~~~ \ No newline at end of file diff --git a/Commands/NanoLeaf/README.ps1.md b/Commands/NanoLeaf/README.ps1.md index 520b452..bf13f18 100644 --- a/Commands/NanoLeaf/README.ps1.md +++ b/Commands/NanoLeaf/README.ps1.md @@ -1,5 +1,7 @@ This directory contains LightScript's functions for [NanoLeaf](https://nanoleaf.me/). +> [Don't have a NanoLeaf?](https://amzn.to/3QrzxeS) + ~~~PipeScript { Import-Module ../../LightScript.psd1 -Global [PSCustomObject]@{ diff --git a/README.md b/README.md index d49f36f..0c16316 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,26 @@ Import-Module LightScript -Force -PassThru ## Philips Hue Bridges +> Don't have a Hue Bridge? [Buy On Amazon](https://amzn.to/4bguVQO) +
+
+ Want more Hue? + +
+
Hue Bridges let you control every Philips Hue (or compatible ZigBee) light in your house.