Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README with improved instructions #14

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# plugin-injection

基于Halo 2.0 插件开发快速开始模板开发的代码注入管理插件
用户可以添加、编辑、删除和启用/禁用HTML代码片段,并通过特定规则匹配页面和注入位置
基于 Halo 2.0 插件开发快速开始模板开发的代码注入管理插件,可以实现对 HTML 代码片段的动态管理和注入。
用户可以灵活进行查询、创建、编辑、删除、启用和禁用操作。插件支持配置注入规则,根据页面路径和位置(头部或尾部)动态将代码注入目标页面

## 开发环境

Expand Down Expand Up @@ -33,8 +33,11 @@ cd path/to/plugin-injection
# Windows
./gradlew.bat build
```
## 使用方式

## 使用方式

1. 在 Releases 下载最新的 JAR 文件。
2. 在 Halo 后台的插件管理上传 JAR 文件进行安装。
3. ...
3. 在工具菜单中打开`代码注入管理界面`,进入代码注入管理列表。
4. 配置`代码名称`,`代码描述`,`代码片段`,`注入位置`,`页面匹配规则`以及`代码片段`信息。
5. 保存并启用或禁用注入代码。