Go to file
bgilmer77 2b3586399e [Logging] Add example for logging Item state (#546)
* Add example for logging Item State

-  Addresses #534
-  Edited text to improve comprehension
-  Changed "Demo" to "heating-control.rules" in text
-  Changed "Demo" example to "heating-control.rules" example in #534
-  Article needs more work, but this PR is limited to addressing this issue.

* Address various comments from ThomDietrich

-  Numerous changes to address comments

Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)

* Shorten package name/log example

-  Shortened package to e.model.script.heating-control.rules
-  Removed one of the temp entries from the logging example

Signed-off-by: Brad Gilmer <brad@gilmer.tv> (github: bgilmer77)

* Add improvements

Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)

* Change suggested by @bgilmer

Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-11-08 13:23:08 +01:00
_addons_actions Distinguish collections, improve update process (#514) 2017-09-22 21:05:09 +02:00
_addons_bindings updated generated content 2017-10-18 17:08:32 +02:00
_addons_iconsets/classic updated generated content 2017-10-18 17:08:32 +02:00
_addons_ios updated generated content 2017-10-18 17:08:32 +02:00
_addons_persistences updated generated content 2017-10-18 17:08:32 +02:00
_addons_transformations updated generated content 2017-10-18 17:08:32 +02:00
_addons_uis updated generated content 2017-10-18 17:08:32 +02:00
_addons_voices updated generated content 2017-09-27 12:55:42 +02:00
_data updated generated content 2017-09-27 12:55:42 +02:00
_includes Fix usermenu 2017-10-18 17:04:23 +02:00
_layouts Distinguish collections, improve update process (#514) 2017-09-22 21:05:09 +02:00
_sample_code/osgi_codings_tasks/bundles [Developers] Improve prerequisites section (#407) 2017-06-27 13:53:39 +02:00
_sass reverted _source folder again as it does not seem to be supported by Github Pages 2016-05-30 14:50:02 +02:00
addons Attend to nit suggestions 2017-10-18 17:04:23 +02:00
administration [Logging] Add example for logging Item state (#546) 2017-11-08 13:23:08 +01:00
appendix Replace openHAB 2.0 by openHAB 2 2016-12-14 19:05:17 +01:00
community Remove redundant/outdated content (#271) 2017-01-25 15:11:56 +01:00
concepts updated generated content 2017-09-27 12:55:42 +02:00
configuration [Items] Improve comprehension (#512) 2017-11-07 12:37:40 +01:00
css updated generated content 2017-09-27 12:55:42 +02:00
developers [Development] Add article about OSGi Config Admin (#467) 2017-08-30 14:03:11 +02:00
features Remove redundant/outdated content (#271) 2017-01-25 15:11:56 +01:00
fonts/roboto Update frameworks and fix highlighting (#417) 2017-06-29 18:54:19 +02:00
images Update to new openHAB logo (#529) 2017-10-15 14:19:36 +02:00
img updated generated content 2017-09-27 12:55:42 +02:00
installation [Docker] Update docker image tag (#544) 2017-10-27 15:11:17 +02:00
js Move addons js function out of footer.html 2017-10-18 17:04:23 +02:00
tutorials Distinguish collections, improve update process (#514) 2017-09-22 21:05:09 +02:00
.editorconfig Add editorconfig file 2016-12-03 14:34:20 +01:00
.gitignore Distinguish collections, improve update process (#514) 2017-09-22 21:05:09 +02:00
404.md Add option to generate a sitemap.xml file for Google (#178) 2017-01-22 14:23:51 +01:00
CNAME Initial version of openHAB 2 documentation website 2016-05-14 21:18:31 +02:00
CONTRIBUTING.md added infos to README.md 2016-05-30 11:26:24 +02:00
README.md Distinguish collections, improve update process (#514) 2017-09-22 21:05:09 +02:00
Vagrantfile Re-add incremental to jekyll/Vagrant, delete temp 2017-10-18 17:04:23 +02:00
_config.yml Add new externals, rename addons plural 2017-10-18 17:04:23 +02:00
favicon.ico added a round white background to the favicon 2017-10-27 17:59:20 +02:00
imprint.md Update frameworks and fix highlighting (#417) 2017-06-29 18:54:19 +02:00
index.html [Main] Add pronunciation and revice intro (#208) 2017-01-16 13:16:57 +01:00
introduction.md Update menu entry names, many small changes 2016-12-14 19:05:17 +01:00
package.json Fix all installation articles according to style guide (#426) 2017-07-06 17:36:46 +02:00
pom.xml Tidy up pom.xml 2017-10-18 17:04:23 +02:00
privacy.md [Imprint,Privacy] Fix some smaller defects (#290) 2017-02-04 20:32:39 +01:00
process_addons.groovy Add new externals, rename addons plural 2017-10-18 17:04:23 +02:00
search.html Add Google search function (#222) 2017-01-21 23:50:26 +01:00
styleguide.md Add style guide link to style guide 2017-08-30 23:14:52 +02:00
update-external-resources.sh Add new externals, rename addons plural 2017-10-18 17:04:23 +02:00

README.md

Introduction

This repository contains the documentation for openHAB.

The result is available at http://docs.openhab.org/

Contributing to the Documentation

The documentation is a community effort, so everyone is welcome to suggest changes, add new sections and fix bugs. This is done exactly the same way as for the code repositories, simply through pull requests against this repo. Please read the contribution guidelines for details.

Prerequisites

Our documentation is built with Jekyll and served through Github Pages.

In order to run Jekyll locally, you also need Ruby being installed. Please see the Jekyll installation instructions for details.

An alternative for a local setup is a virtual machine provided by Vagrant.

Serving the Documentation locally

Once you have Jekyll installed and the repository checked out, simply run

jekyll serve

from within the repository root folder and point your browser to http://localhost:4000. This will give you a preview of the documentation in the same way as it will appear on docs.openhab.org once your PR is merged. Changes to the markdown files will automatically be taken into account as Jekyll re-generates the pages on the fly.

Alternative: Vagrant VM

You can also have a virtual machine serving a Jekyll and webserver instance for you, without changing your base system or being limited by it. The virtual machine will run in the background, process your changes to the source and presenting the results on your hosts http://localhost:4000. A Vagrant machine configured by a Vagrantfile file is provided for that purpose.

You need to have VirtualBox and Vagrant installed. After that, it's as easy as:

/path-to/openhab-docs$ vagrant up

Automatically Generated Parts

Please note that a few parts of this repository MUST NOT BE MANUALLY EDITED! These are copied from the source code repositories and some files are generated from them. These files/folders are:

  • addons_*
  • concepts

The generation/update of these files can be triggered through bash update-external-resources.sh in the repo root. The process will create a temporary folder .external-resources, which is only used by the update script and can be ignored.

About the _addons_* Folders

See Jekyll Collections for general details. The folders represent collections of the different Addons types.

If you are here to help improve one of the contained READMEs, read carefully. These files are mere copies of files in other repositories and will be overwritten on a regular basis. Please find the original repository and add your contribution there.

At the time of this writing, the folders are automatically created and updated by the toolchain

  • update-external-resources.shpom.xmlprocess_addons.groovy

Configuration of the collections happens through _config.yml. The most important setting you need to be aware of, is, that all files in collections are mapped to certain paths:

Check the mentioned files for more details.