website/markdoc.config.mjs
kolaente 2b00f7454b
Some checks failed
continuous-integration/drone/push Build is failing
docs: explain date math when used with filters
2024-10-30 14:28:31 +01:00

39 lines
785 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},
},
},
dateMathExamples: {
render: component('./src/components/partials/DateMathExamples.astro'),
},
configOptions: {
render: component('./src/components/partials/ConfigOptions.astro'),
}
},
nodes: {
heading: {
...nodes.heading,
render: component('./src/components/Heading.astro'),
},
},
})