Improve Multi-Select Code Blocks
Glavin001 opened this issue · comments
From facebook/docusaurus#103 (comment)
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.
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.