-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathastro.config.mjs
86 lines (84 loc) · 1.95 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
import { defineConfig } from 'astro/config';
import solidJs from '@astrojs/solid-js';
import tailwind from '@astrojs/tailwind';
import peggy from 'vite-plugin-peggy-loader';
import AstroPWA from '@vite-pwa/astro';
import starlight from '@astrojs/starlight';
import alpinejs from '@astrojs/alpinejs';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Sim8085 Docs',
defaultLocale: 'en',
locales: {
en: {
label: 'English',
},
},
customCss: [
'./src/tailwind.docs.css',
],
components: {
Head: './src/components/DocumentationHead.astro',
// Footer: './src/components/DocumentationFooter.astro'
},
social: {
github: 'https://github.com/debjitbis08/sim8085',
},
disable404Route: true,
sidebar: [
{ slug: 'docs/en' },
{ slug: 'docs/en/assembly' },
{ slug: 'docs/en/unsupported' },
/*
{
label: 'Instructions',
items: [
'docs/en/instructions/aci',
'docs/en/instructions/adc',
]
},
*/
{
label: 'References',
items: [
'docs/en/reference/ascii',
'docs/en/reference/instruction-summary'
]
},
],
}),
solidJs({
devtools: true,
}),
tailwind({
applyBaseStyles: false,
}),
alpinejs(),
AstroPWA({
registerType: 'autoUpdate',
manifest: {
name: 'Sim8085',
short_name: 'Sim8085',
theme_color: '#ffffff',
},
includeAssets: ['favicon.svg', 'favicon-dark.svg', 'favicon.ico', 'favicon-with-background.svg'],
pwaAssets: {
config: true,
},
workbox: {
globIgnores: [
'tips/**', // Exclude all files in the `tips` folder
],
}
}),
],
output: 'static',
vite: {
plugins: [peggy()],
ssr: {
noExternal: ['nanoid']
}
},
});