@devbookhq/docusaurus-code-video-plugin
Version:
Add a video to a Docusaurus code block and highlight code lines as the video plays.
30 lines (24 loc) • 769 B
TypeScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/// <reference types="@docusaurus/theme-classic" />
/// <reference types="@docusaurus/module-type-aliases" />
declare module '@theme-init/CodeBlock' {
import type CodeBlock from '@theme/CodeBlock';
import type { Props as BaseProps } from '@theme/CodeBlock';
export interface Props extends BaseProps {
youtubeID?: string
metastring?: string
[range: string]: string
}
const CodeBlockComp: typeof CodeBlock;
export default CodeBlockComp;
}
// declaration.d.ts
declare module '*.css' {
const content: Record<string, string>;
export default content;
}