Skip to content

Commit

Permalink
Remove the setup instruction from the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Nov 2, 2016
1 parent b2083de commit ed48c65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
20 changes: 0 additions & 20 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,3 @@ In order to make the preview available on [http://127.0.0.1:4000](http://127.0.0
$ rake preview
```

### Setup on Fedora and CentOS
On Fedora 22 and later 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.

```bash
$ 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`.

```bash
$ gem install bundler
```

Now you can follow the [setup instructions](https://home-assistant.io/developers/website/).
8 changes: 5 additions & 3 deletions source/developers/website.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ You can use the "**Edit this page on GitHub**" link to edit pages without creati

For larger changes, we suggest that you clone the website repository. This way, you can review your changes locally. The process for working on the website is no different from working on Home Assistant itself. You work on your change and propose it via a pull request.

To test your changes locally, you need to install the **Ruby** dependencies (gems):
To test your changes locally, you need to install **Ruby** and its dependencies (gems):

- [Install Ruby](https://www.ruby-lang.org/en/documentation/installation/) if you don't have it already.
- Install `bundler`, a dependency manager for Ruby: `gem install bundler`
- In your home-assistant.github.io root directory, run `bundle` to install the gems you need.
- Install `bundler`, a dependency manager for Ruby: `$ gem install bundler`
- In your home-assistant.github.io root directory, run `$ bundle` to install the gems you need.

Short cut for Fedora: `$ sudo dnf -y install gcc-c++ ruby ruby-devel rubygem-bundler && bundle`

Then you can work on the documentation:

Expand Down

0 comments on commit ed48c65

Please sign in to comment.