You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current docs site is a multi-site that uses two plugins to render the default docs and the API.
The default docs version drop-down only applies to the default plugin. The API plugin api is not included when a user selects a version.
To address this, we need to create global version selector. There is an example here of how someone achieved this.
To generate the version content for the api plugin, use the command:
npx docusaurus docs:version:id 4.0.x
This will generate the following content:
api_versions.json - versions file for the API.
api_versioned_docs/ - folder containing all versioned docs.
api_versionioned_sidebars/ - folder containing the API sidebar.
This would also require the docusaurs_config.js file to get updated:
@nagesh161007 I might have found a nice lil challenge for you. Take a peek at the README's versioning first
The current docs site is a multi-site that uses two plugins to render the default docs and the API.
The default docs version drop-down only applies to the default plugin. The API plugin
api
is not included when a user selects a version.To address this, we need to create global version selector. There is an example here of how someone achieved this.
To generate the version content for the
api
plugin, use the command:This will generate the following content:
api_versions.json
- versions file for the API.api_versioned_docs/
- folder containing all versioned docs.api_versionioned_sidebars/
- folder containing the API sidebar.This would also require the
docusaurs_config.js
file to get updated:The text was updated successfully, but these errors were encountered: