From f4671f7bcb5d70fa1969b32f7b2386bc20dc3ea9 Mon Sep 17 00:00:00 2001 From: Prodesire Date: Thu, 10 May 2018 22:51:45 +0800 Subject: [PATCH] add search --- docs/index.html | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index a855b14..58fbf8d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,9 +16,35 @@ repo: 'https://github.com/flaggo/pydu', loadSidebar: true, loadNavbar: true, - subMaxLevel: 2 + subMaxLevel: 2, + search: { + placeholder: { + '/zh-cn/': '搜索', + '/': 'Type to search', + }, + noData: { + '/zh-cn/': '找不到结果', + '/': 'No Results', + } + }, + plugins: [ + function (hook) { + var footer = [ + '
', + '' + ].join(''); + hook.afterEach(function (html) { + return html + footer + }) + } + ] } + +