docs: add configuration examples for the Windows platform in the plugin-related documents (#219)

Halo 插件开发 Windows 环境下插件绝对路径的补充

Ref #218 

/kind documentation


```release-note
None
```
JohnNiang-patch-1
Simple 2 years ago committed by GitHub
parent 11b2ac3b3e
commit 4b934c0ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,12 +30,21 @@ Halo 提供了一个模板仓库用于创建插件:
然后在 `src/main/resources` 下创建一个 `application-local.yaml` 文件并做如下配置: 然后在 `src/main/resources` 下创建一个 `application-local.yaml` 文件并做如下配置:
```yaml ```yaml
# macOS / Linux
halo: halo:
plugin: plugin:
runtime-mode: development runtime-mode: development
fixed-plugin-path: fixed-plugin-path:
# 配置为插件绝对路径 # 配置为插件绝对路径
- /Users/guqing/halo-plugin-hello-world - /Users/guqing/halo-plugin-hello-world
# Windows
halo:
plugin:
runtime-mode: development
fixed-plugin-path:
# 配置为插件绝对路径
- C:\Users\guqing\halo-plugin-hello-world
``` ```
使用此 local profile 启动 Halo 使用此 local profile 启动 Halo

@ -23,11 +23,20 @@ halo:
而如果你想以 `DEVELOPMENT` 运行插件或开发插件则将 `runtime-mode` 修改为 `development`,同时配置 `fixed-plugin-path` 为插件项目路径,可以配置多个。 而如果你想以 `DEVELOPMENT` 运行插件或开发插件则将 `runtime-mode` 修改为 `development`,同时配置 `fixed-plugin-path` 为插件项目路径,可以配置多个。
```yaml ```yaml
# macOS / Linux
plugin:
runtime-mode: development
fixed-plugin-path:
# 配置为插件绝对路径
- /Users/guqing/halo-plugin-hello-world
# Windows
halo: halo:
plugin: plugin:
runtime-mode: development runtime-mode: development
fixed-plugin-path: fixed-plugin-path:
- /path/to/your/plugin/plugin-starter # 配置为插件绝对路径
- C:\Users\guqing\halo-plugin-hello-world
``` ```
:::tip Note :::tip Note

@ -30,12 +30,21 @@ Halo 提供了一个模板仓库用于创建插件:
然后在 `src/main/resources` 下创建一个 `application-local.yaml` 文件并做如下配置: 然后在 `src/main/resources` 下创建一个 `application-local.yaml` 文件并做如下配置:
```yaml ```yaml
# macOS / Linux
halo: halo:
plugin: plugin:
runtime-mode: development runtime-mode: development
fixed-plugin-path: fixed-plugin-path:
# 配置为插件绝对路径 # 配置为插件绝对路径
- /Users/guqing/halo-plugin-hello-world - /Users/guqing/halo-plugin-hello-world
# Windows
halo:
plugin:
runtime-mode: development
fixed-plugin-path:
# 配置为插件绝对路径
- C:\Users\guqing\halo-plugin-hello-world
``` ```
使用此 local profile 启动 Halo 使用此 local profile 启动 Halo

@ -23,11 +23,21 @@ halo:
而如果你想以 `DEVELOPMENT` 运行插件或开发插件则将 `runtime-mode` 修改为 `development`,同时配置 `fixed-plugin-path` 为插件项目路径,可以配置多个。 而如果你想以 `DEVELOPMENT` 运行插件或开发插件则将 `runtime-mode` 修改为 `development`,同时配置 `fixed-plugin-path` 为插件项目路径,可以配置多个。
```yaml ```yaml
# macOS / Linux
plugin:
runtime-mode: development
fixed-plugin-path:
# 配置为插件绝对路径
- /Users/guqing/halo-plugin-hello-world
# Windows
halo: halo:
plugin: plugin:
runtime-mode: development runtime-mode: development
fixed-plugin-path: fixed-plugin-path:
- /path/to/your/plugin/plugin-starter # 配置为插件绝对路径
- C:\Users\guqing\halo-plugin-hello-world
``` ```
:::tip Note :::tip Note

Loading…
Cancel
Save