mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
Separate examples for translation functionality
This commit is contained in:
parent
3033688d40
commit
330153fbf3
3 changed files with 56 additions and 1 deletions
|
@ -12,4 +12,10 @@
|
|||
const CWD = process.cwd();
|
||||
const fs = require("fs-extra");
|
||||
|
||||
fs.copySync(__dirname + "/../examples/", CWD, { overwrite: false });
|
||||
if (process.argv.indexOf("translations") !== -1) {
|
||||
fs.copySync(__dirname + "/../examples-translations/", CWD, {
|
||||
overwrite: false
|
||||
});
|
||||
} else {
|
||||
fs.copySync(__dirname + "/../examples/", CWD, { overwrite: false });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue