mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 12:37:01 +02:00
* add changelog * add alpha 73 * run prettier on versions file (+ ignore it as we don't care much and it's annoying when releasing) * v2.0.0-alpha.73
799 B
799 B
id | title | slug |
---|---|---|
theme-live-codeblock | 📦 theme-live-codeblock | /api/themes/@docusaurus/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',
},
},
};