redux-toolkit
redux-toolkit copied to clipboard
File extension doesn't change in the docs according to the selected language
- The Quick Start docs page doesn't change the file extension from
jstotson selection.
https://user-images.githubusercontent.com/38923768/187497604-4e0e0626-cda8-45f9-9c5a-b34bcb56f60d.mov
I would like to make a PR to resolve this issue.
I'm actually not sure there's anything we can do about this, tbh. If you look at the markdown, that filename is directly written as part of the codeblock metadata.
If you can figure out a way to do it, great, but I'm honestly not sure the Docusaurus docs tool will let us change that dynamically.
I am not that familiar with Docusaurus, tbh. I was going through the typescript.md file and thought there might be a way to show these codeblocks with the correct title on the docs page.
I even tried to find some Docusaurus plugins to dynamically change the title of the codeblock, but couldn’t find any.
Anyways, if you have directions where I can look into to resolve this, would be happy too.