The user documentation is located at https://www.home-assistant.io. This section here is the place where we provide documentation and additional details about creating or modifying content.
You can use the "Edit this page on GitHub" link to edit pages without creating a fork. Keep in mind that you can't upload images while working this way. You work on your change and propose it via a Pull Request (PR).
Once you've created a Pull Request (PR), you can see a preview of the proposed changes by clicking Details against Netlify checker in the checkers section of the PR as soon as deployment is complete.
For larger changes, we suggest that you clone the website repository. This way, you can review your changes locally. The process of working on the website is no different from working on Home Assistant itself.
To test your changes locally, you need to install Ruby and its dependencies (gems):
- Install Ruby if you don't have it already. Ruby version 2.3.0 or higher is required.
bundler, a dependency manager for Ruby:
$ gem install bundler(You might have to run this command as
- Fork the home-assistant.io git repository.
- In your home-assistant.io root directory, run
$ bundleto install the gems you need.
Shortcut for Fedora:
$ sudo dnf -y install gcc-c++ ruby ruby-devel rubygem-bundler rubygem-json && bundle
Shortcut for Debian/Ubuntu:
$ sudo apt-get install ruby ruby-dev ruby-bundler ruby-json && bundle
Then you can work on the documentation:
bundle exec rake generateto generate the every first preview. This will take a couple of minutes.
- Create/edit/update a page. The components/platforms documentation is located in
source/_docs/contains the Home Assistant documentation itself.
- Test your changes to home-assistant.io locally: run
bundle exec rake previewand navigate to http://127.0.0.1:4000. While this command is working, any changes to a file are automatically detected and will update the affected pages. You will have to manually reload them in the browser though.
- Create a Pull Request (PR) against the next branch of home-assistant.io if your documentation is a new feature, platform, or component.
- Create a Pull Request (PR) against the current branch of home-assistant.io if you fix stuff, create Cookbook entries, or expand existing documentation.
The site generated by
bundle exec rake is only available locally. If you are developing on a headless machine, use port forwarding:
$ ssh -L 4000:localhost:4000 user_on_headless_machine@ip_of_headless_machine
Speeding up site generation
Every release we post long changelogs to the website. This slows down generation of the website significantly! We include some tools to temporarily exclude components and blog posts that you're not working on out of the way.
bundle exec rake isolate[filename-of-blogpost-or-component]
When you're done working on the site, run the following command to move the pages back again:
bundle exec rake integrate