mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
fix: missing cli commands (#1478)
* fix: missing cli commands * centralize
This commit is contained in:
parent
be149e182f
commit
6b75bb3270
2 changed files with 6 additions and 10 deletions
|
@ -38,8 +38,6 @@ const SupportedHeaderFields = new Set([
|
|||
'custom_edit_url',
|
||||
]);
|
||||
|
||||
program.option('--skip-next-release').parse(process.argv);
|
||||
|
||||
let allSidebars;
|
||||
if (fs.existsSync(`${CWD}/sidebars.json`)) {
|
||||
allSidebars = require(`${CWD}/sidebars.json`);
|
||||
|
@ -58,11 +56,7 @@ function getDocsPath() {
|
|||
}
|
||||
|
||||
function shouldGenerateNextReleaseDocs() {
|
||||
return !(
|
||||
env.versioning.enabled &&
|
||||
program.name() === 'docusaurus-build' &&
|
||||
program.skipNextRelease
|
||||
);
|
||||
return !(env.versioning.enabled && program.skipNextRelease);
|
||||
}
|
||||
|
||||
// returns map from id to object containing sidebar ordering info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue