-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
58 lines (55 loc) · 1.81 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
import {defineConfig, passthroughImageService} from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from "@astrojs/tailwind";
// Markdown plugins
import links from './src/markdown/links.js';
import youtube from './src/markdown/youtube.js';
// https://astro.build/config
const site = 'https://ozzyczech.cz';
export default defineConfig({
site,
markdown: {
remarkPlugins: [links, youtube]
},
image: {
service: passthroughImageService(),
},
integrations: [
starlight({
title: 'Roman\'s notes',
tableOfContents: true,
pagination: false,
social: {
github: 'https://github.com/OzzyCzech/ozzyczech.cz',
stackOverflow: 'https://meta.stackoverflow.com/users/355316/ozzyczech'
},
head: [
{
tag: 'meta',
attrs: {property: 'og:image', content: site + 'og.png'},
}
],
customCss: [
'./src/style.css',
],
logo: {
src: './src/assets/roman-ozana.jpg',
},
editLink: {
baseUrl: 'https://github.com/OzzyCzech/ozzyczech.cz/edit/main/'
},
sidebar: [
{label: 'Home', link: '/'},
{label: 'Awesome', collapsed: true, autogenerate: {directory: 'Awesome', collapsed: false}},
{label: 'Web Development', collapsed: false, autogenerate: {directory: 'Web Development', collapsed: true}},
{label: 'DevOps', collapsed: false, autogenerate: {directory: 'DevOps', collapsed: true}},
{label: 'LifeHack', collapsed: true, autogenerate: {directory: 'LifeHack'}},
{label: 'Photography', collapsed: true, autogenerate: {directory: 'Photography'}},
{label: 'Security', collapsed: true, autogenerate: {directory: 'Security'}},
{label: 'Hardware', collapsed: true, autogenerate: {directory: 'Hardware'}},
{label: 'Povídky', collapsed: true, autogenerate: {directory: 'Povidky'}},
]
}),
tailwind({applyBaseStyles: false})
]
});