From a17dbf03e1a7675cb546661a8c27c27fd872224e Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 5 Aug 2016 19:13:57 +0800 Subject: [PATCH] site: fix sidebar --- site/bisheng.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/bisheng.config.js b/site/bisheng.config.js index ed955e6444..7a77f6ef4a 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -4,7 +4,9 @@ function pickerGenerator(module) { const tester = new RegExp(`^docs/${module}`); return (markdownData) => { const filename = markdownData.meta.filename; - if (tester.test(filename) && !/\.en-US\.md/.test(filename)) { + if (tester.test(filename) && + !/\/demo$/.test(path.dirname(filename)) && + !/\.en-US\.md/.test(filename)) { return { meta: markdownData.meta, };