|
1 | | -import { defineConfig } from 'astro/config' |
2 | | -import mdx from '@astrojs/mdx' |
3 | | -import tailwind from '@astrojs/tailwind' |
4 | | -import sitemap from '@astrojs/sitemap' |
5 | | -import { remarkReadingTime } from './src/utils/remarkReadingTime.ts' |
6 | | -import remarkUnwrapImages from 'remark-unwrap-images' |
7 | | -import rehypeExternalLinks from 'rehype-external-links' |
8 | | -import remarkSmartypants from 'remark-smartypants' |
9 | | -import remarkMath from 'remark-math' |
10 | | -import rehypeMathjax from 'rehype-mathjax/chtml' |
11 | | -import expressiveCode from 'astro-expressive-code' |
12 | | -import { expressiveCodeOptions } from './src/site.config' |
13 | | -import { mathJaxMacros } from './src/mathjax.macros' |
14 | | -import icon from 'astro-icon' |
| 1 | +import { defineConfig } from "astro/config"; |
| 2 | +import mdx from "@astrojs/mdx"; |
| 3 | +import tailwind from "@astrojs/tailwind"; |
| 4 | +import sitemap from "@astrojs/sitemap"; |
| 5 | +import { remarkReadingTime } from "./src/utils/remarkReadingTime.ts"; |
| 6 | +import remarkUnwrapImages from "remark-unwrap-images"; |
| 7 | +import rehypeExternalLinks from "rehype-external-links"; |
| 8 | +import remarkSmartypants from "remark-smartypants"; |
| 9 | +import remarkMath from "remark-math"; |
| 10 | +import rehypeMathjax from "rehype-mathjax/chtml"; |
| 11 | +import expressiveCode from "astro-expressive-code"; |
| 12 | +import { expressiveCodeOptions } from "./src/site.config"; |
| 13 | +import { mathJaxMacros } from "./src/mathjax.macros"; |
| 14 | +import icon from "astro-icon"; |
15 | 15 |
|
16 | 16 | // https://astro.build/config |
17 | 17 | export default defineConfig({ |
18 | | - site: 'https://agustinus.kristia.de', |
19 | | - prefetch: true, |
20 | | - redirects: { |
21 | | - '/about': '/' |
22 | | - }, |
23 | | - integrations: [ |
24 | | - expressiveCode(expressiveCodeOptions), |
25 | | - tailwind({ |
26 | | - applyBaseStyles: false |
27 | | - }), |
28 | | - sitemap(), |
29 | | - mdx(), |
30 | | - icon() |
31 | | - ], |
32 | | - markdown: { |
33 | | - remarkPlugins: [ |
34 | | - [remarkSmartypants, { dashes: 'oldschool' }], |
35 | | - remarkUnwrapImages, |
36 | | - remarkReadingTime, |
37 | | - remarkMath |
38 | | - ], |
39 | | - rehypePlugins: [ |
40 | | - [ |
41 | | - rehypeExternalLinks, |
42 | | - { |
43 | | - target: '_blank', |
44 | | - rel: ['nofollow, noopener, noreferrer'] |
45 | | - } |
46 | | - ], |
47 | | - [ |
48 | | - rehypeMathjax, |
49 | | - { |
50 | | - chtml: { |
51 | | - fontURL: 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/output/chtml/fonts/woff-v2' |
52 | | - }, |
53 | | - tex: { |
54 | | - macros: mathJaxMacros |
55 | | - } |
56 | | - } |
57 | | - ] |
58 | | - ], |
59 | | - remarkRehype: { |
60 | | - footnoteLabelProperties: { |
61 | | - className: [''] |
62 | | - } |
63 | | - } |
64 | | - } |
65 | | -}) |
| 18 | + site: "https://agustinus.kristia.de", |
| 19 | + prefetch: true, |
| 20 | + redirects: { |
| 21 | + "/about": "/", |
| 22 | + }, |
| 23 | + integrations: [ |
| 24 | + expressiveCode(expressiveCodeOptions), |
| 25 | + tailwind({ |
| 26 | + applyBaseStyles: false, |
| 27 | + }), |
| 28 | + sitemap(), |
| 29 | + mdx(), |
| 30 | + icon(), |
| 31 | + ], |
| 32 | + markdown: { |
| 33 | + remarkPlugins: [ |
| 34 | + [remarkSmartypants, { dashes: "oldschool" }], |
| 35 | + remarkUnwrapImages, |
| 36 | + remarkReadingTime, |
| 37 | + remarkMath, |
| 38 | + ], |
| 39 | + rehypePlugins: [ |
| 40 | + [ |
| 41 | + rehypeExternalLinks, |
| 42 | + { |
| 43 | + target: "_blank", |
| 44 | + rel: ["nofollow, noopener, noreferrer"], |
| 45 | + }, |
| 46 | + ], |
| 47 | + [ |
| 48 | + rehypeMathjax, |
| 49 | + { |
| 50 | + chtml: { |
| 51 | + fontURL: |
| 52 | + "https://cdn.jsdelivr.net/npm/mathjax@3/es5/output/chtml/fonts/woff-v2", |
| 53 | + }, |
| 54 | + tex: { |
| 55 | + macros: mathJaxMacros, |
| 56 | + }, |
| 57 | + }, |
| 58 | + ], |
| 59 | + ], |
| 60 | + remarkRehype: { |
| 61 | + footnoteLabelProperties: { |
| 62 | + className: [""], |
| 63 | + }, |
| 64 | + }, |
| 65 | + }, |
| 66 | +}); |
0 commit comments