Enable Prism syntax hightlighting for Markdown, adjust configuration for Astro
This commit is contained in:
parent
3c5539161f
commit
fae034b813
1 changed files with 15 additions and 5 deletions
|
@ -8,17 +8,27 @@ import { SiteSettings } from './config.json'
|
|||
import mdx from '@astrojs/mdx'
|
||||
import pagefind from "astro-pagefind"
|
||||
|
||||
import compressor from 'astro-compressor';
|
||||
|
||||
import pageInsight from 'astro-page-insight';
|
||||
|
||||
// Astro Configuration
|
||||
export default defineConfig({
|
||||
// Top Level
|
||||
compressHTML: true,
|
||||
// Information
|
||||
site: SiteSettings.SiteProtocol + '://' + SiteSettings.SiteDomain,
|
||||
base: SiteSettings.SiteBase,
|
||||
// Integrations
|
||||
integrations: [
|
||||
mdx(),
|
||||
pagefind(),
|
||||
vue()
|
||||
],
|
||||
integrations: [mdx(), pagefind(), vue(), compressor(), pageInsight()],
|
||||
markdown: {
|
||||
syntaxHighlight: 'prism'
|
||||
},
|
||||
// Build
|
||||
build: {
|
||||
concurrency: 2
|
||||
},
|
||||
cacheDir: './dist-cache/',
|
||||
// Server Output
|
||||
output: "static",
|
||||
prefetch: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue