Files
docs/source.config.ts
T

29 lines
688 B
TypeScript

import { defineConfig, defineDocs } from '@hanzo/docs/mdx/config';
export const docs = defineDocs({
docs: {
async: true,
},
meta: {},
});
export default defineConfig({
mdxOptions: async () => {
const { rehypeCodeDefaultOptions } = await import(
'@hanzo/docs/core/mdx-plugins/rehype-code'
);
return {
rehypeCodeOptions: {
langs: ['ts', 'js', 'html', 'tsx', 'mdx', 'go', 'rust', 'bash', 'json', 'yaml', 'toml'],
inline: 'tailing-curly-colon',
themes: {
light: 'github-light',
dark: 'github-dark',
},
transformers: [...(rehypeCodeDefaultOptions.transformers ?? [])],
},
};
},
});