Browse Source

site: fix sidebar

pull/2679/head
Benjy Cui 8 years ago
parent
commit
a17dbf03e1
  1. 4
      site/bisheng.config.js

4
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,
};

Loading…
Cancel
Save