mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
Fix HTML copy file generation (#223)
This commit is contained in:
parent
522e59d739
commit
1d3f71a60a
1 changed files with 3 additions and 1 deletions
|
@ -465,7 +465,9 @@ function execute() {
|
|||
// copy html files in 'en' to base level as well
|
||||
files = glob.sync(CWD + "/build/" + siteConfig.projectName + "/en/**");
|
||||
files.forEach(file => {
|
||||
let targetFile = file.replace("en/", "");
|
||||
let targetFile = file.replace(
|
||||
CWD + "/build/" + siteConfig.projectName + "/en/",
|
||||
CWD + "/build/" + siteConfig.projectName + "/");
|
||||
if (file.match(/\.html$/)) {
|
||||
fs.copySync(file, targetFile);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue