feat(v2): pluginify pages (#1278)

* feat(v2): convert pages into a plugin

* fix: update tests
This commit is contained in:
Yangshun Tay 2019-03-13 13:08:12 -07:00 committed by GitHub
parent 2da59ed4af
commit 398d7c7ae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 287 additions and 257 deletions

View file

@ -40,7 +40,6 @@ module.exports = function createBaseConfig(props, isServer) {
outDir,
themePath,
docsDir,
pagesDir,
siteDir,
sourceToMetadata,
versionedDir,
@ -69,7 +68,6 @@ module.exports = function createBaseConfig(props, isServer) {
.set('@versioned_docs', versionedDir)
.set('@translated_docs', translatedDir)
.set('@docs', docsDir)
.set('@pages', pagesDir)
.set('@build', outDir)
.set('@generated', generatedFilesDir)
.set('@core', path.resolve(__dirname, '../core'))
@ -106,7 +104,7 @@ module.exports = function createBaseConfig(props, isServer) {
.end();
applyBabel(jsRule);
/*
/*
Equivalent to:
// ...
{