mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-10 17:52:44 +08:00
docs: update contributing guides
This commit is contained in:
11
docs/docs/contribute.md
Normal file
11
docs/docs/contribute.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# 参与开发
|
||||
|
||||
## 贡献新存储端
|
||||
|
||||
1. Fork 本项目, 克隆到本地
|
||||
2. 在 `config/storage` 目录下定义存储端配置, 并添加到 `config/storage/factory.go` 中
|
||||
3. 在 `types/types.go` 中添加新的存储端类型
|
||||
4. 在 `storage` 目录下新建一个包, 编写存储端实现, 然后在 `storage/storage.go` 中导入并添加它
|
||||
5. 更新 `config.example.toml` 文件, 添加新的示例配置
|
||||
|
||||
*可能确实有点麻烦了 = =*
|
||||
@@ -31,3 +31,4 @@ nav:
|
||||
- deploy.md
|
||||
- help.md
|
||||
- faq.md
|
||||
- contribute.md
|
||||
|
||||
Reference in New Issue
Block a user