> For the complete documentation index, see [llms.txt](https://chimisgo.gitbook.io/booksource/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chimisgo.gitbook.io/booksource/publish.md).

# 5. 发布

新建Github项目，创建**sources**文件夹，将书源json文件放置在该目录下，在该项目**Settings**菜单**Webhooks**中选择**Add Webhook**，填写**Payload URL**并选择**Content type**为**application/json**：

```http
http://api.booksource.store/repo/webhook
```

{% hint style="danger" %}
&#x20;如果仓库中存在错误的、违法的、质量差的书源，该仓库将会被服务器拉黑

**书源名称命名禁止使用前缀**，例如：XXX-起点中文网

**书源文件内容更新时，version字段必须要递增更改**
{% endhint %}

参考地址：<https://github.com/chimisgo/BookSourceRepository>

#### 公开索引

在项目根目录下新建repository.json将书源URL添加到数组中，直连访问该json数据即可。

```http
[
    "m.qidian.com",
    "m.zongheng.com"
]
```

参考直连：<https://raw.githubusercontent.com/chimisgo/BookSourceRepository/master/repository.json>

{% hint style="danger" %}
书源文件的名字与书源中url字段必须一致
{% endhint %}

#### 群组

{% hint style="info" %}
书源制作组群号：882429601
{% endhint %}
