1. [Tagging a new version](https://docusaurus.io/docs/next/versioning#tagging-a-new-version)
```shell
npm run docusaurus docs:version X.X
```
When tagging a new version, the document versioning mechanism will:
Copy the full `docs/` folder contents into a new `versioned_docs/version-[versionName]/` folder.
Create a versioned sidebars file based from your current sidebar configuration (if it exists) - saved as `versioned_sidebars/version-[versionName]-sidebars.json`.