37 lines
793 B
JavaScript
Executable File
37 lines
793 B
JavaScript
Executable File
import { defineConfig } from 'astro/config'
|
|
|
|
import mdx from '@astrojs/mdx'
|
|
import sitemap from '@astrojs/sitemap'
|
|
|
|
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
|
|
import expressiveCode from 'astro-expressive-code'
|
|
|
|
export default defineConfig({
|
|
site: 'https://www.nardu.in',
|
|
build: {
|
|
format: 'directory'
|
|
},
|
|
image: {
|
|
domains: ['assets.nardu.in'],
|
|
remotePatterns: [{ protocol: 'https' }]
|
|
},
|
|
integrations: [
|
|
expressiveCode({
|
|
theme: 'one-dark-pro',
|
|
plugins: [pluginLineNumbers()],
|
|
defaultProps: {
|
|
// Disable line numbers by default
|
|
showLineNumbers: false,
|
|
// But enable line numbers for certain languages
|
|
overridesByLang: {
|
|
'css,html,js,ts,vue': {
|
|
showLineNumbers: true
|
|
}
|
|
}
|
|
}
|
|
}),
|
|
mdx(),
|
|
sitemap()
|
|
]
|
|
})
|