From 1a7b3a471c5ce965af7b3ed8f0140ad61892e1ea Mon Sep 17 00:00:00 2001 From: Neucrack Date: Mon, 19 Sep 2022 17:44:14 +0800 Subject: [PATCH] fix template error and add thumbs up plugin --- config/config_zh.json | 12 +++- .../Lichee/zh/Zero-Doc/_templates/footer.html | 69 ------------------- .../maixduino/zh/_layouts/website/header.html | 47 ------------- .../maixduino/zh/_layouts/website/page.html | 54 --------------- site_config.json | 8 +++ 5 files changed, 19 insertions(+), 171 deletions(-) delete mode 100644 docs/soft/Lichee/zh/Zero-Doc/_templates/footer.html delete mode 100644 docs/soft/maixduino/zh/_layouts/website/header.html delete mode 100644 docs/soft/maixduino/zh/_layouts/website/page.html diff --git a/config/config_zh.json b/config/config_zh.json index 26e6a01e..61924e26 100755 --- a/config/config_zh.json +++ b/config/config_zh.json @@ -249,8 +249,18 @@ "other_docs_result_hint": "来自其它文档的结果", "curr_doc_result_hint": "当前文档搜索结果" } + }, + "teedoc-plugin-thumbs-up": { + "config": { + "label_up": "有帮助", + "label_down": "没帮助", + "msg_already_voted": "您已经投过票了", + "msg_thanks": "感谢您的反馈", + "msg_down_prompt": "感谢反馈,请告诉我们可以改进什么地方?(最少 10 个字)", + "msg_down_prompt_error": "消息最少需要 10 个字, 最多 256 个字", + "msg_error": "请求服务器出现错误!" + } } - }, "show_source": "编辑本页" } diff --git a/docs/soft/Lichee/zh/Zero-Doc/_templates/footer.html b/docs/soft/Lichee/zh/Zero-Doc/_templates/footer.html deleted file mode 100644 index d9be3522..00000000 --- a/docs/soft/Lichee/zh/Zero-Doc/_templates/footer.html +++ /dev/null @@ -1,69 +0,0 @@ -{% extends "!footer.html" %} {% block extrafooter %} - - - - - - - - - - -
- - -
- - -{{ super() }} {% endblock %} \ No newline at end of file diff --git a/docs/soft/maixduino/zh/_layouts/website/header.html b/docs/soft/maixduino/zh/_layouts/website/header.html deleted file mode 100644 index 72dd54fc..00000000 --- a/docs/soft/maixduino/zh/_layouts/website/header.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends template.self %} -{% block book_header %} - - -{% endblock %} \ No newline at end of file diff --git a/docs/soft/maixduino/zh/_layouts/website/page.html b/docs/soft/maixduino/zh/_layouts/website/page.html deleted file mode 100644 index b08b8de7..00000000 --- a/docs/soft/maixduino/zh/_layouts/website/page.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends template.self %} -{% block book_sidebar %} - - {{ super() }} -{% endblock %} -{% block javascript %} - {{ super() }} - -{% endblock %} \ No newline at end of file diff --git a/site_config.json b/site_config.json index 69330abc..fa37bc4e 100755 --- a/site_config.json +++ b/site_config.json @@ -185,6 +185,14 @@ "second_color": "#e25d55" } } + }, + "teedoc-plugin-thumbs-up": { + "from": "pypi", + "config": { + "url": "http://49.234.194.98:5728", + "show_up_count": true, + "show_down_count": false + } } }, "rebuild_changes_delay": 1,