From d024085a5a8882f7182eaa0f6bd4cf0f6a3d5188 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 25 Apr 2023 01:08:29 +0200 Subject: [PATCH] Remove pageTree. It's `false` in this repository and unfortunately, Bedrock will probably never be a standalone tool. --- bedrock.config.js | 1 - bedrock.config.prod.js | 3 +-- content/templates/_layouts/main.pug | 4 ++-- core/discovery/default-config.js | 9 +-------- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/bedrock.config.js b/bedrock.config.js index cc252e8..72373c6 100644 --- a/bedrock.config.js +++ b/bedrock.config.js @@ -5,7 +5,6 @@ */ module.exports = { - pageTree: false, js: { minify: false }, diff --git a/bedrock.config.prod.js b/bedrock.config.prod.js index bd8d2d2..f4a639f 100644 --- a/bedrock.config.prod.js +++ b/bedrock.config.prod.js @@ -7,7 +7,6 @@ module.exports = { noIndex: false, - pageTree: false, styleguide: false, js: { minify: true @@ -17,4 +16,4 @@ module.exports = { purge: true, compiler: 'scss' }, -}; \ No newline at end of file +}; diff --git a/content/templates/_layouts/main.pug b/content/templates/_layouts/main.pug index 62795cf..54cd434 100644 --- a/content/templates/_layouts/main.pug +++ b/content/templates/_layouts/main.pug @@ -48,7 +48,7 @@ html(dir="ltr" lang="en" class=htmlClass ? htmlClass : '') link(rel="stylesheet" href="/css/main.css") - if ( config.styleguide || config.pageTree) + if (config.styleguide) link(rel="stylesheet" href="/css/prototype.css") if config.styleguide @@ -72,6 +72,6 @@ html(dir="ltr" lang="en" class=htmlClass ? htmlClass : '') = "\n" - if ( config.styleguide || config.pageTree) + if (config.styleguide) script(src='/js/bundle-prototype.js') script(src='/js/bundle-client.js') diff --git a/core/discovery/default-config.js b/core/discovery/default-config.js index a583e2c..2e8bf13 100644 --- a/core/discovery/default-config.js +++ b/core/discovery/default-config.js @@ -4,13 +4,6 @@ const defaultConfig = { * Don't index (hide prototypes from search engines) */ noIndex: true, - /** - * Page tree generation: existence of this section - * determines whether the page tree gets generated - */ - pageTree: { - layoutStyle: 'sidebar' - }, /** * CSS and JS minification * Adjust these values to set up your project for production or dev @@ -82,4 +75,4 @@ const defaultConfig = { }, }; -module.exports = defaultConfig; \ No newline at end of file +module.exports = defaultConfig;