...
Code Block | ||
---|---|---|
| ||
npm run docusaurus docs:version <VERSION-NUMBER> |
Next, update the version.json
file to include the new version number.
Then, in docusaurus.config.js
, under presets > classic > docs
:
...
- Under
versions
:- Add the new version and set its label to
stable (<VERSION-NUMBER>)
and its path tostable
. - Update the previous version to remove the
stable
label and path, and add anunmaintained
banner.
- Add the new version and set its label to
For example, when updating from version 23.4.1
to 23.4.2
, update the following section in docusaurus.config.js
from the following:
...