mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-26 22:47:49 +02:00
Add comments
This commit is contained in:
parent
df0f95e36f
commit
43ef3c8142
22 changed files with 114 additions and 62 deletions
|
@ -26,7 +26,10 @@ program
|
|||
.parse(process.argv);
|
||||
|
||||
const outerFolder = path.basename(path.dirname(CWD));
|
||||
|
||||
// handles cases where feature is "translations", "versions" or neither/not present
|
||||
if (feature === "translations") {
|
||||
// copy files for translations
|
||||
const folder = path.join(__dirname, "..", "examples", "translations");
|
||||
if (fs.existsSync(CWD + "/../crowdin.yaml")) {
|
||||
console.log(
|
||||
|
@ -74,6 +77,7 @@ if (feature === "translations") {
|
|||
}
|
||||
});
|
||||
} else if (feature === "versions") {
|
||||
// copy files for versions
|
||||
const folder = path.join(__dirname, "..", "examples", "versions");
|
||||
let files = glob.sync(folder + "/**/*");
|
||||
files.forEach(file => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue