mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-01 11:18:24 +02:00
785 B
785 B
sidebar_position | slug |
---|---|
3 | /api/themes/@docusaurus/theme-live-codeblock |
📦 theme-live-codeblock
This theme provides a @theme/CodeBlock
component that is powered by react-live. You can read more on interactive code editor documentation.
npm install --save @docusaurus/theme-live-codeblock
Configuration
module.exports = {
plugins: ['@docusaurus/theme-live-codeblock'],
themeConfig: {
liveCodeBlock: {
/**
* The position of the live playground, above or under the editor
* Possible values: "top" | "bottom"
*/
playgroundPosition: 'bottom',
},
},
};