@devbookhq/docusaurus-code-video-plugin
Version:
Add a video to a Docusaurus code block and highlight code lines as the video plays.
17 lines (13 loc) • 364 B
text/typescript
import type { Plugin } from '@docusaurus/types'
import path from 'path'
export default function themeLiveCodeblock(): Plugin {
return {
name: 'devbook-code-video-plugin',
getThemePath() {
return path.resolve(__dirname, './theme');
},
getTypeScriptThemePath() {
return path.resolve(__dirname, '..', 'src', './theme');
},
};
}