-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.mjs
37 lines (35 loc) · 1014 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from 'astro/config';
import { defineCollection } from 'astro/content/runtime';
import { z } from 'astro/zod';
import markdownIntegration from '@astropub/md';
import { bundledLanguages } from 'shiki';
import aikenLang from './src/grammars/aiken.tmLanguage.json' assert { type: 'json' };
import { remarkReadingTime } from './src/plugins/remark-reading-time.mjs';
// https://astro.build/config
export default defineConfig({
site: 'https://pragma.builders',
integrations: [markdownIntegration()],
markdown: {
remarkPlugins: [remarkReadingTime],
shikiConfig: {
theme: 'night-owl',
langs: [
...Object.keys(bundledLanguages),
{
id: 'aiken',
scopeName: 'source.aiken',
...aikenLang,
},
],
},
},
});
// https://docs.astro.build/en/guides/content-collections
export const collections = {
questions: defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
}),
}),
};