Aller au contenu principal
Version: 3.0.0-rc.1

📦 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

docusaurus.config.js
export default {
plugins: ['@docusaurus/theme-live-codeblock'],
themeConfig: {
liveCodeBlock: {
/**
* La position du terrain de jeu en direct, au-dessus ou au-dessous de l'éditeur
* Valeurs possibles : "top" | "bottom"
*/
playgroundPosition: 'bottom',
},
},
};