mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 14:38:50 +02:00
feat: add loadEnv to check if translation / versioning is enabled
This commit is contained in:
parent
828d99dc8e
commit
1ff6733464
15 changed files with 608 additions and 20 deletions
|
@ -1,6 +1,7 @@
|
|||
const path = require('path');
|
||||
const loadConfig = require('./config');
|
||||
const loadDocs = require('./docs');
|
||||
const loadEnv = require('./env');
|
||||
const loadPages = require('./pages');
|
||||
const loadTheme = require('./theme');
|
||||
const {generate} = require('./utils');
|
||||
|
@ -10,6 +11,9 @@ module.exports = async function load(siteDir) {
|
|||
// siteConfig
|
||||
const siteConfig = loadConfig(siteDir);
|
||||
|
||||
// env
|
||||
const env = loadEnv({siteDir, siteConfig});
|
||||
|
||||
// docs
|
||||
const docsDir = path.resolve(
|
||||
siteDir,
|
||||
|
@ -43,6 +47,7 @@ module.exports = async function load(siteDir) {
|
|||
siteDir,
|
||||
docsDir,
|
||||
docsData,
|
||||
env,
|
||||
pagesDir,
|
||||
pagesData,
|
||||
outDir,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue