Skip to content

Docusaurs: Update sidebar.js to manually order cmd folder content #4743

@Jwaegebaert

Description

@Jwaegebaert

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions