Go to file
Thomas Dietrich c4db6d7786 Adopt openhab-android repo name, fixes #613
Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>
2018-01-07 17:38:02 +01:00
_addons_actions updated generated content 2017-12-22 08:08:32 +01:00
_addons_bindings updated generated content 2017-12-22 08:08:32 +01:00
_addons_iconsets/classic updated generated content 2017-10-18 17:08:32 +02:00
_addons_ios updated generated content 2017-12-16 12:45:37 +01:00
_addons_persistences updated generated content 2017-10-18 17:08:32 +02:00
_addons_transformations updated generated content 2017-11-27 09:20:24 +01:00
_addons_uis updated generated content 2017-11-27 09:20:24 +01: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 Add Home Builder and Android app articles from external repos (#594) 2017-12-16 22:04:24 +01:00
_layouts Add ssl-redirect, add to developersguide 2017-11-29 14:26:29 +01:00
_sample_code/osgi_codings_tasks/bundles
_sass
addons Adopt openhab-android repo name, fixes #613 2018-01-07 17:38:02 +01:00
administration Fix typo in logging article, fixes #615 2018-01-04 22:29:53 +01:00
appendix
community
concepts updated generated content 2017-12-16 12:45:37 +01:00
configuration Adopt openhab-android repo name, fixes #613 2018-01-07 17:38:02 +01:00
css updated generated content 2017-09-27 12:55:42 +02:00
developers
features
fonts/roboto
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 [QNAP] Corrected install folder (#616) 2018-01-05 12:59:29 +01:00
js Move addons js function out of footer.html 2017-10-18 17:04:23 +02:00
tutorials [Beginner Tutorial] Addresses #189 - Add pointer to file location info (#603) 2017-12-27 12:50:10 -05:00
v2.1.0 Adopt openhab-android repo name, fixes #613 2018-01-07 17:38:02 +01:00
.editorconfig
.gitignore Updated gitignore for usage with vscode (#609) 2018-01-02 19:24:21 -05:00
404.md
CNAME
CONTRIBUTING.md
README.md Add linkchecker result and badges (#566) 2017-11-29 14:39:38 +01:00
Vagrantfile Adopt openhab-android repo name, fixes #613 2018-01-07 17:38:02 +01:00
_config.yml Add ssl-redirect, add to developersguide 2017-11-29 14:26:29 +01:00
favicon.ico added a round white background to the favicon 2017-10-27 17:59:20 +02:00
imprint.md
index.html Update base and root front matter usage 2017-11-15 07:27:58 +01:00
introduction.md [introduction.md]Add grammatically-necessary plural ("s") (#584) 2017-12-05 22:13:14 +01:00
invalidlinks.html Adopt openhab-android repo name, fixes #613 2018-01-07 17:38:02 +01:00
package.json
pom.xml Adopt openhab-android repo name, fixes #613 2018-01-07 17:38:02 +01:00
privacy.md
process_addons.groovy Add Home Builder and Android app articles from external repos (#594) 2017-12-16 22:04:24 +01:00
search.html
styleguide.md
update-code-checks.sh updated generated content 2017-12-16 12:45:37 +01:00
update-external-resources.sh Adopt openhab-android repo name, fixes #613 2018-01-07 17:38:02 +01:00

README.md

openHAB 2.x Documentation Project

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 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.

Serving via 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.

Documentation Versioning

Just as openHAB is released in versions, the documentation website provides fixed versions of the documentation articles, e.g., docs.openhab.org/2.1.0/installation/linux.html

Please see this issue for all details regarding the current implementation. In short, the following has to be considered:

  • Versions like "v2.1.0" are marked by git tags.
  • Based on tags branches like "v2.1.0-patch" are created, to include later discovered changes (like fixed links).
  • The intended base folder for the version needs to be set in _config.yml, e.g. baseurl: "/v2.1.0".
  • New versions have to be added to the dropdown menu shown on the resulting website, configured in _includes/versioning.html.
  • The version branch has to be generated with jekyll, the resulting content goes into the version folder identical to the above set baseurl. Execute e.g. jekyll build -d path/to/checked-out/gh-pages-branch/v2.1.0/
  • The generated static page files under, e.g., v2.1.0/ need to be committed to gh-pages for GitHub Pages to pick them up and include in the generated page.