mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 02:12:36 +02:00
ESLintify Part 2 (#841)
* ESLintify Part 2 * Fix * Fix tests * Fix tests * Fix tests
This commit is contained in:
parent
4267337fb0
commit
5ac2cee658
42 changed files with 188 additions and 190 deletions
|
@ -112,9 +112,9 @@ if (fs.existsSync(CWD + '/versioned_docs/version-' + currentVersion)) {
|
|||
|
||||
// if sidebar file exists for this version, rename sidebar file and rewrite
|
||||
// doc ids in the file
|
||||
let currentSidebarFile =
|
||||
const currentSidebarFile =
|
||||
CWD + '/versioned_sidebars/version-' + currentVersion + '-sidebars.json';
|
||||
let newSidebarFile =
|
||||
const newSidebarFile =
|
||||
CWD + '/versioned_sidebars/version-' + newVersion + '-sidebars.json';
|
||||
if (fs.existsSync(currentSidebarFile)) {
|
||||
fs.renameSync(currentSidebarFile, newSidebarFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue