'Providing different variants/flavors of content

I'm using Docusaurus to write tutorials for my company's platform (https://petrbroz.github.io/forge-samples-docs/docs/intro), and I'm providing multiple language/IDE variants for each tutorial. Right now, the variants are nested under each tutorial in the sidebar, e.g.:

Tutorials
  - Simple Viewer
    - Node.js & VSCode
    - .NET 6 & VSCode
    - .NET 6 & VS2022
  - Hubs Browser
    - Node.js & VSCode
    - .NET 6 & VSCode
    - .NET 6 & VS2022

Which seems a bit messy...

Does Docusaurus provide any way to perhaps have a dropdown that the user could use to select a specific variant/flavor of whatever doc page is selected in the sidebar? And if something like this is not available, what would be the recommended way of implementing such feature?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source