'how to automatically add .md files to sidebar.js file using tags or something similar

I'm a new user of GitHub and Docusaurus.

Our current system is to have specific articles listed as .md files and then manually paste the .md file slug to our sidebar.js file so we have a visible section on the left-hand side.

My question is = is there a way to automatically categorize an .md file to the sidebar.js type or category? (e.g. using tags or anything else?)

Many thanks and please do let me know if I should explain further!



Sources

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

Source: Stack Overflow

Solution Source