website/markdoc.config.mjs
kolaente 0560c9c9f0
Some checks failed
continuous-integration/drone/push Build is failing
feat: build config using astro from json
2024-09-22 16:32:28 +02:00

36 lines
684 B
JavaScript

import {defineMarkdocConfig, nodes, component} from '@astrojs/markdoc/config'
import shiki from '@astrojs/markdoc/shiki'
export default defineMarkdocConfig({
extends: [
shiki({
themes: {
light: 'github-light',
dark: 'min-dark',
},
colorReplacements: {
'min-light': {
'#c2c3c5': '#808080',
},
},
}),
],
tags: {
callout: {
render: component('./src/components/Callout.astro'),
attributes: {
type: {type: String},
},
},
configOptions: {
render: component('./src/components/partials/ConfigOptions.astro'),
}
},
nodes: {
heading: {
...nodes.heading,
render: component('./src/components/Heading.astro'),
},
},
})