-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
91 lines (90 loc) · 2.65 KB
/
Copy pathastro.config.ts
File metadata and controls
91 lines (90 loc) · 2.65 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { defineConfig, fontProviders } from 'astro/config'
import sitemap from '@astrojs/sitemap'
import mdx from '@astrojs/mdx'
import tailwindcss from '@tailwindcss/vite'
import robotsTxt from 'astro-robots-txt'
import mermaid from 'astro-mermaid'
import icon from 'astro-icon'
import markdoc from '@astrojs/markdoc'
import { satteri } from '@astrojs/markdown-satteri'
import { satteriReadingTime } from './satteri-plugins/satteri-reading-time.mjs'
import { satteriDiagram } from './satteri-plugins/satteri-diagram.mjs'
import { satteriEmoji } from './satteri-plugins/satteri-emoji.mjs'
// https://astro.build/config
export default defineConfig({
output: 'static',
fonts: [
{
provider: fontProviders.google(),
name: 'Noto Sans',
cssVariable: '--font-noto-sans',
weights: ['100 900'],
display: 'swap',
subsets: ['latin', 'latin-ext'],
fallbacks: ['ui-sans-serif', 'system-ui', 'sans-serif']
},
{
provider: fontProviders.google(),
name: 'Noto Serif',
cssVariable: '--font-noto-serif',
weights: ['100 900'],
display: 'swap',
subsets: ['latin', 'latin-ext'],
fallbacks: ['ui-serif', 'Georgia', 'serif']
},
{
provider: fontProviders.google(),
name: 'Noto Sans Mono',
cssVariable: '--font-noto-sans-mono',
weights: ['100 900'],
display: 'swap',
subsets: ['latin', 'latin-ext'],
fallbacks: ['ui-monospace', 'SFMono-Regular', 'monospace']
}
],
vite: {
plugins: [tailwindcss()],
optimizeDeps: {
include: ['astro-leaflet > leaflet']
}
},
site: 'https://hellotham.com',
image: {
layout: 'constrained'
},
integrations: [
icon(),
// Placeholder starter docs are excluded until real documentation lands
sitemap({ filter: (page) => !page.includes('/doc/') && !page.endsWith('/thanks/') }),
robotsTxt({
sitemap: [
'https://hellotham.com/sitemap-index.xml',
'https://rosely.hellotham.com/sitemap-index.xml',
'https://hellotham.com/hellonotes/sitemap.xml',
'https://hellotham.com/finvestlens/sitemap-index.xml',
'https://hellotham.com/hello-astro/sitemap-index.xml',
'https://hellotham.com/spotlite/sitemap-index.xml'
]
}),
markdoc(),
mdx(),
mermaid()
],
markdown: {
processor: satteri({
features: {
math: true
},
mdastPlugins: [satteriReadingTime(), satteriDiagram(), satteriEmoji()]
}),
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark'
},
// Enable word wrap to prevent horizontal scrolling
wrap: true
}
},
scopedStyleStrategy: 'where'
})