Open Glavin001 opened 6 years ago
The tabs would go into the next row if it takes up too much space:
We would also need to style it, modify the source to accept source code instead of the file.
I don't think tabs would work for us, there are some code blocks with many many languages. I like the select box we have no. Maybe use something like Select2 which supports searching? https://select2.org/searching
Should really build this into a proper plugin for Docusaurus instead of our hack.
Looks like Docusaurus has more official support builtin: https://docusaurus.io/docs/en/doc-markdown#language-specific-code-tabs However, it uses tabs which is not idea.
From https://github.com/facebook/Docusaurus/issues/103#issuecomment-398251442
Check out https://github.com/govau/platforms-alpha/blob/master/lib/shared/fileTabs.js
Thoughts on any improvements which can be made to our existing multi-select code blocks? I don't think tabs will work, as @stevenzeck pointed out we have too many options to select, however, this plugin structure looks very promising and potentially more flexible and robust.