85 lines
1.6 KiB
Markdown
85 lines
1.6 KiB
Markdown
# halo-plugin-douban
|
|
|
|
> 基于原作者v1.2.2代码修改
|
|
|
|
#### v1.2.2-2
|
|
1. 新增类别接口`/apis/api.douban.moony.la/v1alpha1/doubanmovies/-/types`(基于原作者v1.2.5代码)
|
|
|
|
#### v1.2.2-1
|
|
1. 修改前台页面路由为/books
|
|
2. 控制台类别value不再限制
|
|
3. 修复构建失败等异常
|
|
|
|
|
|
|
|
|
|
|
|
# plugin-douban
|
|
|
|
* 豆瓣管理插件, 支持在 Console 进行管理以及为主题端提供 `/douban` 页面路由。
|
|
* 提供从豆瓣爬取到的数据
|
|
* 内置模板,无需主题支持,但也可以通过主题自定义模板。
|
|
|
|
## 致谢
|
|
该插件是从[WP-Douban](https://fatesinger.com/101005)插件进行重构的。对贡献者表示感谢。
|
|
|
|
## 使用方式
|
|
* 在应用市场下载并启用。
|
|
* 启用插件之后会在 Console 的左侧添加一个`豆瓣`的菜单项,点击即可进入`豆瓣`管理页面。
|
|
|
|
## 📃文档
|
|
https://docs.kunkunyu.com/docs/plugin-douban
|
|
|
|
## 开发环境
|
|
|
|
```bash
|
|
git clone git@github.com:chengzhongxue/plugin-douban.git
|
|
|
|
# 或者当你 fork 之后
|
|
|
|
git clone git@github.com:{your_github_id}/plugin-douban.git
|
|
```
|
|
|
|
```bash
|
|
cd path/to/plugin-douban
|
|
```
|
|
|
|
```bash
|
|
# macOS / Linux
|
|
./gradlew pnpmInstall
|
|
|
|
# Windows
|
|
./gradlew.bat pnpmInstall
|
|
```
|
|
|
|
```bash
|
|
# macOS / Linux
|
|
./gradlew haloServer
|
|
|
|
# Windows
|
|
./gradlew.bat haloServer
|
|
```
|
|
|
|
```bash
|
|
# macOS / Linux
|
|
./gradlew build
|
|
|
|
# Windows
|
|
./gradlew.bat build
|
|
```
|
|
|
|
修改 Halo 配置文件:
|
|
|
|
```yaml
|
|
halo:
|
|
plugin:
|
|
runtime-mode: development
|
|
classes-directories:
|
|
- "build/classes"
|
|
- "build/resources"
|
|
lib-directories:
|
|
- "libs"
|
|
fixedPluginPath:
|
|
- "/path/to/plugin-douban"
|
|
```
|