This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathastro.config.mjs
More file actions
54 lines (52 loc) · 1.32 KB
/
Copy pathastro.config.mjs
File metadata and controls
54 lines (52 loc) · 1.32 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
import { defineConfig } from 'astro/config';
import starlight from "@astrojs/starlight";
// https://astro.build/config
export default defineConfig({
site: 'https://accessible-astro-docs.netlify.app/',
integrations: [starlight({
title: {
en: 'Accessible Astro Docs'
},
logo: { src: './src/assets/img/logo.svg', alt: 'Accessible Astro Docs', replacesTitle: false },
favicon: 'favicon.svg',
editLink: { baseUrl: 'https://github.com/markteekman/accessible-astro-docs/edit/main/' },
sidebar: [
{ label: 'Components', autogenerate: { directory: 'components' } },
{ label: 'Contribute', link: '/contribute' }
],
social: {
github: 'https://github.com/markteekman/accessible-astro-docs',
},
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en'
}
},
head: [
// favicon fallback for Safari
{
tag: 'link',
attrs: {
rel: 'icon',
href: '/favicon.png',
sizes: '48x48'
}
},
{
tag: 'script',
attrs: {
src: '/scripts/starlight-accessibility.js',
}
},
{
tag: 'script',
attrs: {
src: 'https://tarptaeya.github.io/repo-card/repo-card.js',
defer: true
}
}
]
})]
});