Skip to content

Commit

Permalink
Remove pageTree.
Browse files Browse the repository at this point in the history
It's `false` in this repository and unfortunately, Bedrock will probably
never be a standalone tool.
  • Loading branch information
noteed committed Apr 24, 2023
1 parent 22ed86a commit d024085
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion bedrock.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

module.exports = {
pageTree: false,
js: {
minify: false
},
Expand Down
3 changes: 1 addition & 2 deletions bedrock.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

module.exports = {
noIndex: false,
pageTree: false,
styleguide: false,
js: {
minify: true
Expand All @@ -17,4 +16,4 @@ module.exports = {
purge: true,
compiler: 'scss'
},
};
};
4 changes: 2 additions & 2 deletions content/templates/_layouts/main.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
9 changes: 1 addition & 8 deletions core/discovery/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -82,4 +75,4 @@ const defaultConfig = {
},
};

module.exports = defaultConfig;
module.exports = defaultConfig;

0 comments on commit d024085

Please sign in to comment.