-
Notifications
You must be signed in to change notification settings - Fork 3
/
astro.config.mjs
100 lines (95 loc) · 2.98 KB
/
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
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
92
93
94
95
96
97
98
99
100
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog';
import starlightImageZoom from 'starlight-image-zoom';
import AstroPWA from "@vite-pwa/astro";
import manifest from "./webmanifest.json";
import rehypeMermaid from "rehype-mermaid";
// https://astro.build/config
export default defineConfig({
vite: {
logLevel: 'info',
define: {
__DATE__: `'${new Date().toISOString()}'`,
},
},
build: {
outDir: "../dist/youtube",
chunkSizeWarningLimit: 5000,
},
site: 'https://santhosh2r2.github.io',
base: 'youtube',
integrations: [
starlight({
head: [
{
tag: "link",
attrs: {
href: "/youtube/manifest.webmanifest",
rel: "manifest"
}
},
],
title: 'Home',
logo: {
src: "./src/assets/pic.jpg",
},
components: {
SiteTitle: './src/components/overrides/SiteTitle.astro',
TableOfContents: './src/components/overrides/TableOfContents.astro',
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
// Sidebar: './src/components/overrides/Sidebar.astro',
},
social: {
youtube: "https://www.youtube.com/channel/UCR_Fuegjqal0Fvy6En2Bs3Q?sub_confirmation=1",
linkedin: "https://www.linkedin.com/in/santhosh-balaji-ramesh/",
github: 'https://github.com/santhosh2r2/youtube',
email: "mailto:[email protected]"
},
favicon: "/image/pic.jpg",
lastUpdated: true,
editLink: {
baseUrl: "https://github.com/santhosh2r2/youtube/tree/main",
},
plugins: [
starlightImageZoom(),
starlightBlog({
authors: {
sramesh: {
name: "Santhosh Balaji Ramesh",
title: "Tech aficionado",
url: "https://www.youtube.com/channel/UCR_Fuegjqal0Fvy6En2Bs3Q?sub_confirmation=1",
picture: "https://github.com/santhosh2r2.png"
}
},
}),
],
sidebar: [
{ collapsed: false, label: 'General', autogenerate: { directory: 'general', collapsed: true } },
{ collapsed: true, label: 'Tutorials', autogenerate: { directory: 'tutorial', } },
{ collapsed: true, label: 'Projects', autogenerate: { directory: 'projects', } },
],
}),
// registerType: "prompt",
// mainfest.json > id -- this field needs to be changed (or versioned)
// in order to generate the prompt
AstroPWA({
mode: "production",
registerType: "prompt",
workbox: {
navigateFallback: "/youtube",
globPatterns: ["**/*.{css,js,html,svg,png,ico,txt,jpg}"],
},
experimental: {
directoryAndTrailingSlashHandler: true,
},
manifest: manifest,
devOptions: {
enabled: true,
},
}),
],
markdown: {
rehypePlugins: [[rehypeMermaid, { strategy: "img-svg", dark: true }]],
},
});