From 4a4b3ba7eac259e9fa49bf60b576ab17b558291d Mon Sep 17 00:00:00 2001
From: asdaragon <asd159874123@gmail.com>
Date: Mon, 21 Jun 2021 20:03:15 +0800
Subject: [PATCH] =?UTF-8?q?readme=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=B8=89?=
 =?UTF-8?q?=E6=96=B9=E5=BA=93=E7=9A=84=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 README.md | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/README.md b/README.md
index caa3ebd..c87faa2 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,30 @@
 
 [stay](https://gitee.com/qypw)
 
+**如何注册第三方库**
+2021021版本已经开放注册第三方库的功能,默认提供 https://github.com/qiandao-today/templates 仓库,如果需要自建第三方库,请主意一下几点:
+1. 仓库根目录必须要有 tpls_history.json 文件,需符合以下规范
+```
+{
+    "version":"版本号 yyyymmdd",
+    "har": {
+        "必填,和name保值一致,注意要在文件里保持唯一": {
+            "name": "必填", 
+            "author": "选题,作者", 
+            "url": "选填,har链接", 
+            "update": false, 
+            "comments": "选填,har文件的注释,可用来解释har所需变量的说明", 
+            "filename": "必填,content为空时通过此来读取har", 
+            "content": "选填,不填则根据 filename 的值来读取对应的har文件", 
+            "date": "必填, 日期",
+			"version":"必填, 版本号 yyyymmdd,框架通过版本号来判断是否更新模板"
+        }
+    }
+}
+```
+2. 加速默认是jsdeliver 加速,只支持github的加速
+3. 模板更新规则:上一次更新的24小时以后更新,通过name判断是否存在,如果不存在直接新增,如果存在则通过version判断,版本号大于当前缓存版本则更新
+
 ## FAQ
 
 **部分模板订阅后使用网站cookie却提示未登录?**