Sha256: e9db2ed7605dd98782b82151a588a723fdaa42759e007afac15891e5130b7a97

Contents?: true

Size: 1.15 KB

Versions: 9

Compression:

Stored size: 1.15 KB

Contents

Homeland::Press
--------------

头条插件 for [Homeland](https://gethomeland.com) .

## Usage

## Installation

在 Homeland 应用的 Gemfile 增加:

```ruby
gem 'homeland-press'
```

然后执行 `bundle install`

## Configuration

修改 Homeland 的 `modules` 配置,增加 `press` 以启用。

```yml
defaults: &defaults
  # add "press" to modules
  modules: 'topic,...,press'
```

## Screenshot

![2017-02-28 10 52 08](https://cloud.githubusercontent.com/assets/5518/23389601/f72025f2-fda3-11e6-8340-7845c21e3a06.png)

## Contributing

如果你需要开发此插件,你需要同时准备好 Homeland 项目的开发环境,并修改 Homeland 项目 Gemfile:

```rb
gem 'homeland-press', path: '../homeland-press'
````

将 homeland-press 路径指向一个上层目录

```
~/work/homeland
~/work/homeland-press
```

然后执行 `bundle install` 和 `rails db:migrate`

现在,插件已经挂上了(别忘了开启 modules 的配置),然后在 Homeland 下面启动 `rails s`

访问 http://localhost:3000/posts 来验证功能。

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
homeland-press-0.4.2 README.md
homeland-press-0.4.1 README.md
homeland-press-0.4.0 README.md
homeland-press-0.3.4 README.md
homeland-press-0.3.3 README.md
homeland-press-0.3.2 README.md
homeland-press-0.3.1 README.md
homeland-press-0.2.1 README.md
homeland-press-0.2.0 README.md