mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 16:47:26 +02:00
Add newlines at end of generated files (#283)
This commit is contained in:
parent
ad8921950c
commit
d97e2e9d81
6 changed files with 17 additions and 8 deletions
|
@ -80,7 +80,10 @@ if (versionIndex < 0) {
|
|||
}
|
||||
// replace old version with new version in versions.json file
|
||||
versions[versionIndex] = newVersion;
|
||||
fs.writeFileSync(CWD + '/versions.json', JSON.stringify(versions));
|
||||
fs.writeFileSync(
|
||||
CWD + '/versions.json',
|
||||
JSON.stringify(versions, null, 2) + '\n'
|
||||
);
|
||||
|
||||
// if folder of docs for this version exists, rename folder and rewrite doc
|
||||
// headers to use new version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue