Documentation on how to include a CodeBlock in a Tab #8106
lanegoolsby
started this conversation in
Ideas
Replies: 1 comment
-
|
Documented here: https://docusaurus.io/docs/markdown-features/react#importing-code-snippets (probably not in the best location)
Yes we want to move away from loaders in favor of assets. See also |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is this a correct approach for adding a CodeBlock in a tab?
I only ask because according to the README for raw-loader the project is archived and advocates for Asset Modules instead.
I plan on submitting a PR with guidance on how to add code blocks into a Tab. What the link above is doing is exactly what we need to do and the docs are sorely lacking in this area.
Before I spend the time writing I just want to make sure I'm barking up the right tree. I'm not familiar enough with DS and its toolchain (esp. Webpack) and overall vision to know if I should target Asset Modules instead of using an obsolete library in my examples.
But having a write-up of something akin to that would be a massive help for a lot of folks.
Beta Was this translation helpful? Give feedback.
All reactions