No description
Find a file
Paulus Schoutsen b51afcb6c0 Deploy website
2015-12-19 09:29:55 -08:00
.themes/classic Remove broken oscailte submodule 2015-07-14 18:49:32 -07:00
_deploy@45020579c3 Deploy website 2015-12-19 09:29:55 -08:00
plugins Remove unused plugins 2015-10-27 23:49:54 -07:00
sass Tweak sidebar and twitter link 2015-12-19 09:29:15 -08:00
source Tweak sidebar and twitter link 2015-12-19 09:29:15 -08:00
.editorconfig Add EditorConfig file for Ruby files 2012-02-26 11:08:16 -08:00
.gitattributes Added .gitattributes file to keep CRLF's out of the codebase. 2013-03-06 01:29:40 +01:00
.gitignore Remove Gemfile.lock from gitignore 2015-10-27 23:51:26 -07:00
.gitmodules Embed deploy target as git submodule 2015-03-23 17:59:09 -07:00
.powrc Adding .powrc to allow RVM to work when POW is updated to version 0.4.0 and beyond. 2012-06-08 13:58:52 -05:00
.ruby-version Add preferred Ruby version 2015-05-14 22:52:24 -07:00
.slugignore added slugignore to help with heroku deployment 2011-09-22 18:09:03 -05:00
.travis.yml Deprecate 1.9.2, add 2.0.0 :) 2013-07-13 16:42:19 +02:00
_config.yml Tweak sidebar and twitter link 2015-12-19 09:29:15 -08:00
CHANGELOG.markdown fixed typo in CHANGELOG - thanks VIM modes :/ 2011-07-23 17:57:47 -04:00
config.rb Fix http generated images path when using Compass sprites 2013-07-13 23:22:29 +12:00
config.ru More fixes 2015-10-27 00:53:57 -07:00
Gemfile Remove no longer needed gem 2015-10-28 23:44:17 -07:00
Gemfile.lock Merge branch 'jekyll-3' 2015-10-29 00:08:22 -07:00
generate-redirect.py Set up redirects for old urls 2015-10-28 23:53:12 -07:00
Rakefile Collection Index always generate 2015-10-26 23:24:16 -07:00
README.markdown Fix markup 2015-12-09 13:39:07 +01:00

Home Assistant website

This is the source for the Home Assistant website available at Home-Assistant.io.

Jekyll project to generate and deploy

Command Action
rake preview Preview site on http://127.0.0.1:4000
rake generate Generate new version of the site
rake deploy Deploy a new version of the site

Setup

You need to have Ruby installed.

$ git clone --recursive https://github.com/balloob/home-assistant.io.git
$ cd home-assistant.io
$ bundle

Create a new blog post

$ rake new_post["title"]

Site preview

$ rake preview

The preview is now available on http://127.0.0.1:4000.

Steps for the deployment of the site

All developers with write access to the repositories are able to deploy the website. The deploy process is fully automated with rake generate && rake deploy.

$ git submodule update --init
$ cd _deploy
$ git fetch
$ git pull origin gh-pages
$ cd ..
$ rake generate && rake deploy
TZ=UTC rake generate && rake deploy

Setup on Fedora and CentOS

On Fedora > 22 or CentOS 7.1.1503 Ruby is not available by default. Please take the notes here as a little guide for the Ruby installation process.

$ curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
$ curl -L get.rvm.io | bash -s stable
$ source ~/.profile
$ rvm requirements
$ rvm install ruby-2.2.3
$ rvm use ruby-2.2.3 --default
$ ruby -v

The last command will give you something like this ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]. Then install bundler.

$ gem install bundler

Now please follow the Setup instructions above.