Aller au contenu principal
Version : 3.10.0

📦 theme-live-codeblock

This theme provides a @theme/CodeBlock component that is powered by react-live. Vous pouvez en lire plus sur la documentation de l'éditeur de code intéractif.

npm install --save @docusaurus/theme-live-codeblock

Configuration

docusaurus.config.js
export default {
plugins: ['@docusaurus/theme-live-codeblock'],
themeConfig: {
liveCodeBlock: {
/**
* The position of the live playground, above or under the editor
* Possible values: "top" | "bottom"
*/
playgroundPosition: 'bottom',
},
},
};