본문으둜 κ±΄λ„ˆλ›°κΈ°
버전: Canary 🚧

πŸ“¦ theme-live-codeblock

react-live 기반 @theme/CodeBlock μ»΄ν¬λ„ŒνŠΈλ₯Ό μ§€μ›ν•˜λŠ” ν…Œλ§ˆμž…λ‹ˆλ‹€. μžμ„Έν•œ λ‚΄μš©μ€ μΈν„°λž™ν‹°λΈŒ μ½”λ“œ 에디터 λ¬Έμ„œμ—μ„œ μ°Έκ³ ν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€.

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

섀정​

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',
},
},
};