-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathastro.config.ts
More file actions
31 lines (30 loc) · 943 Bytes
/
Copy pathastro.config.ts
File metadata and controls
31 lines (30 loc) · 943 Bytes
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
import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
import { C, localeSlugs } from './src/configuration';
import search from './src/integrations/search';
import sitemap from "@astrojs/sitemap";
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeSlug from 'rehype-slug';
import { remarkGitInfo } from './src/remark/remark-git-info';
// https://astro.build/config
export default defineConfig({
prefetch: true,
build: {
format: 'file'
},
i18n: {
defaultLocale: C.DEFAULT_LOCALE,
locales: localeSlugs
},
markdown: {
remarkPlugins: [[remarkGitInfo, { remoteUrlBase: C.SETTINGS.REMOTE.BASE_URL }]],
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, { behavior: 'wrap' }]]
},
integrations: [
// Local integrations
search(),
// Official integrations
mdx(),
sitemap({ i18n: { defaultLocale: C.DEFAULT_LOCALE, locales: C.LOCALES } })
],
});