mirror of
https://github.com/luxfi/docs.git
synced 2026-09-24 00:25:32 +00:00
29 lines
688 B
TypeScript
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 ?? [])],
|
|
},
|
|
};
|
|
},
|
|
});
|