In the sidebar.js file we automatically sort the content of the cmd folder, but this may confuse our users as it doesn't match our current sorting.
To avoid confusion, let's change it so that we can manually order each item in the cmd folder. This will be similar to how we order the mkdocs.yml file. We can convert the commands section from the mkdocs.yml file to json and replace the auto-generate section in sidebar.js with the new commands section.
For more information on how to implement sidebar items, you can check out https://docusaurus.io/docs/sidebar/items.
Note!
When making a PR for this issue, make sure you target the branch docs-migration.
Related to #4396
In the
sidebar.jsfile we automatically sort the content of thecmdfolder, but this may confuse our users as it doesn't match our current sorting.To avoid confusion, let's change it so that we can manually order each item in the
cmdfolder. This will be similar to how we order themkdocs.ymlfile. We can convert thecommandssection from themkdocs.ymlfile tojsonand replace theauto-generatesection insidebar.jswith the newcommandssection.For more information on how to implement sidebar items, you can check out https://docusaurus.io/docs/sidebar/items.
Note!
When making a PR for this issue, make sure you target the branch
docs-migration.Related to #4396