mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 22:47:52 +02:00
feat(theme-classic): extensible code block magic comment system (#7178)
This commit is contained in:
parent
785fed723f
commit
51815c12c9
14 changed files with 692 additions and 161 deletions
|
@ -8,6 +8,7 @@
|
|||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
import type {PrismTheme} from 'prism-react-renderer';
|
||||
import type {DeepPartial} from 'utility-types';
|
||||
import type {MagicCommentConfig} from './codeBlockUtils';
|
||||
|
||||
export type DocsVersionPersistence = 'localStorage' | 'none';
|
||||
|
||||
|
@ -57,6 +58,7 @@ export type PrismConfig = {
|
|||
darkTheme?: PrismTheme;
|
||||
defaultLanguage?: string;
|
||||
additionalLanguages: string[];
|
||||
magicComments: MagicCommentConfig[];
|
||||
};
|
||||
|
||||
export type FooterLinkItem = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue