From bc1be31de302835fc3b2f36ffc2674cc7ad2dae1 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 25 Oct 2015 01:40:06 -0700 Subject: [PATCH] Move cookbook to a collection --- _config.yml | 2 ++ .../automation_for_rainy_days.markdown | 0 .../automation_sun.markdown | 0 .../basic_example_use_trigger_values.markdown | 0 .../dim_lights_when_playing_media.markdown | 0 ..._for_10_minutes_when_motion_detected.markdown | 0 source/cookbook/index.markdown | 16 ++++++---------- 7 files changed, 8 insertions(+), 10 deletions(-) rename source/{cookbook => _cookbook}/automation_for_rainy_days.markdown (100%) rename source/{cookbook => _cookbook}/automation_sun.markdown (100%) rename source/{cookbook => _cookbook}/basic_example_use_trigger_values.markdown (100%) rename source/{cookbook => _cookbook}/dim_lights_when_playing_media.markdown (100%) rename source/{cookbook => _cookbook}/turn_on_light_for_10_minutes_when_motion_detected.markdown (100%) diff --git a/_config.yml b/_config.yml index fa78c57c154..119a41a4ed1 100644 --- a/_config.yml +++ b/_config.yml @@ -66,6 +66,8 @@ default_asides: [post/sharing.html, asides/recent_posts.html, asides/github.html collections: components: output: true + cookbook: + output: true # ----------------------- # # 3rd Party Settings # diff --git a/source/cookbook/automation_for_rainy_days.markdown b/source/_cookbook/automation_for_rainy_days.markdown similarity index 100% rename from source/cookbook/automation_for_rainy_days.markdown rename to source/_cookbook/automation_for_rainy_days.markdown diff --git a/source/cookbook/automation_sun.markdown b/source/_cookbook/automation_sun.markdown similarity index 100% rename from source/cookbook/automation_sun.markdown rename to source/_cookbook/automation_sun.markdown diff --git a/source/cookbook/basic_example_use_trigger_values.markdown b/source/_cookbook/basic_example_use_trigger_values.markdown similarity index 100% rename from source/cookbook/basic_example_use_trigger_values.markdown rename to source/_cookbook/basic_example_use_trigger_values.markdown diff --git a/source/cookbook/dim_lights_when_playing_media.markdown b/source/_cookbook/dim_lights_when_playing_media.markdown similarity index 100% rename from source/cookbook/dim_lights_when_playing_media.markdown rename to source/_cookbook/dim_lights_when_playing_media.markdown diff --git a/source/cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown b/source/_cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown similarity index 100% rename from source/cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown rename to source/_cookbook/turn_on_light_for_10_minutes_when_motion_detected.markdown diff --git a/source/cookbook/index.markdown b/source/cookbook/index.markdown index df2a288884d..bf1bcee1d10 100644 --- a/source/cookbook/index.markdown +++ b/source/cookbook/index.markdown @@ -10,18 +10,14 @@ footer: true --- This is a community currated list of `configuration.yaml` examples. New recipes can be added via -the [home-assistant.io repository](https://github.com/balloob/home-assistant.io/tree/master/source/cookbook). +the [home-assistant.io repository](https://github.com/balloob/home-assistant.io/tree/master/source/_cookbook). -#### Recipes - -{% directory path:cookbook exclude:index %} - * [{{ file.slug | replace: '_',' ' | capitalize }}]({{ file.slug | prepend: '/cookbook/' | append: '.html' }}) -{% enddirectory %} +{% for recipe in site.cookbook %} + * [{{recipe.title}}]({{recipe.url}}) +{% endfor %} #### Configuration.yaml Gists -- [Carlo Costanzo](https://github.com/CCOSTAN) - [Configuration.yaml](https://gist.github.com/CCOSTAN/9934de973a293b809868) +Some users keep a public scrubbed copy of their `configuration.yaml` to learn from. -

- Please be sure to properly scrub your configuration.yaml of usernames, passwords and other personal information you do not want public before sharing on this page. -

+- [Configuration.yaml by Carlo Costanzo](https://gist.github.com/CCOSTAN/9934de973a293b809868)