mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 13:06:58 +02:00
refactor: folder structure & filename
This commit is contained in:
parent
9070fb50ab
commit
dbf78c5c14
10 changed files with 79 additions and 74 deletions
|
@ -25,12 +25,12 @@ module.exports = async function load(sourceDir) {
|
|||
? path.resolve(siteConfig.dest)
|
||||
: path.resolve(sourceDir, '.blogi/dist');
|
||||
|
||||
// resolve the path of our app theme/ layout
|
||||
const themePath =
|
||||
!siteConfig.themePath ||
|
||||
!fs.existsSync(path.resolve(sourceDir, siteConfig.themePath))
|
||||
? path.resolve(__dirname, '../theme')
|
||||
: siteConfig.themePath;
|
||||
// resolve the path of our app user interface layout
|
||||
const uiPath =
|
||||
!siteConfig.uiPath ||
|
||||
!fs.existsSync(path.resolve(sourceDir, siteConfig.uiPath))
|
||||
? path.resolve(__dirname, '../ui')
|
||||
: siteConfig.uiPath;
|
||||
|
||||
const publicPath = siteConfig.base || '/';
|
||||
|
||||
|
@ -39,7 +39,7 @@ module.exports = async function load(sourceDir) {
|
|||
blogDatas,
|
||||
sourceDir,
|
||||
outDir,
|
||||
themePath,
|
||||
uiPath,
|
||||
publicPath
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue