@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
27 lines • 1.06 kB
JavaScript
import sourceJs from '@wooorm/starry-night/source.js';
import sourceTs from '@wooorm/starry-night/source.ts';
import sourceTsx from '@wooorm/starry-night/source.tsx';
import sourceJson from '@wooorm/starry-night/source.json';
import textMd from '@wooorm/starry-night/text.md';
import sourceMdx from '@wooorm/starry-night/source.mdx';
import textHtmlBasic from '@wooorm/starry-night/text.html.basic';
import sourceCss from '@wooorm/starry-night/source.css';
import sourceShell from '@wooorm/starry-night/source.shell';
import sourceYaml from '@wooorm/starry-night/source.yaml';
export var grammars = [sourceJs, sourceTs, sourceTsx, sourceJson, textMd, sourceMdx,
// needs sourceTsx
textHtmlBasic, sourceCss, sourceShell, sourceYaml];
export var extensionMap = {
'.js': 'source.js',
'.ts': 'source.ts',
'.jsx': 'source.tsx',
// TODO: is there a JSX grammar?
'.tsx': 'source.tsx',
'.json': 'source.json',
'.md': 'text.md',
'.mdx': 'source.mdx',
'.html': 'text.html.basic',
'.css': 'source.css',
'.sh': 'source.shell',
'.yaml': 'source.yaml'
};