mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 16:29:47 +02:00
chore: prepare v2.0.0-rc.1 release (#7778)
This commit is contained in:
parent
443914a579
commit
d255389e48
134 changed files with 1147 additions and 672 deletions
|
@ -21,14 +21,14 @@ const ArchivedVersionsDropdownItems = Object.entries(VersionsArchived).splice(
|
|||
5,
|
||||
);
|
||||
|
||||
// This probably only makes sense for the beta phase, temporary
|
||||
function getNextBetaVersionName() {
|
||||
const expectedPrefix = '2.0.0-beta.';
|
||||
// This probably only makes sense for the alpha/beta/rc phase, temporary
|
||||
function getNextVersionName() {
|
||||
const expectedPrefix = '2.0.0-rc.';
|
||||
|
||||
const lastReleasedVersion = versions[0];
|
||||
if (!lastReleasedVersion || !lastReleasedVersion.includes(expectedPrefix)) {
|
||||
throw new Error(
|
||||
'this code is only meant to be used during the 2.0 beta phase.',
|
||||
'this code is only meant to be used during the 2.0 alpha/beta/rc phase.',
|
||||
);
|
||||
}
|
||||
const version = parseInt(lastReleasedVersion.replace(expectedPrefix, ''), 10);
|
||||
|
@ -310,7 +310,7 @@ const config = {
|
|||
})(),
|
||||
versions: {
|
||||
current: {
|
||||
label: `${getNextBetaVersionName()} 🚧`,
|
||||
label: `${getNextVersionName()} 🚧`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue