-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathastro.config.mjs
More file actions
103 lines (102 loc) · 2.82 KB
/
astro.config.mjs
File metadata and controls
103 lines (102 loc) · 2.82 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
92
93
94
95
96
97
98
99
100
101
102
103
// @ts-check
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwindcss from "@tailwindcss/vite";
import netlify from '@astrojs/netlify';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
site: 'https://serverlessworkflow.io/',
integrations: [
sitemap(),
starlight({
title: 'Serverless Workflow Docs',
logo: {
src: './public/icons/logo.svg'
},
favicon: '/icons/favicon-32x32.png',
customCss: [
'./src/styles/docs.css',
],
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/serverlessworkflow/specification' },
],
editLink: {
baseUrl: 'https://github.com/serverlessworkflow/serverlessworkflow.github.io/edit/main/',
},
lastUpdated: true,
sidebar: [
{ label: 'Introduction', slug : 'docs' },
{ label: 'Workflow Definition Examples', slug : 'docs/workflow-definition-examples' },
{
label: 'Core Concepts',
autogenerate: { directory: 'docs/core-concepts' },
/* Or manually -- probably preferred, easy to insert item/modify order:
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Example Guide', slug: 'docs/guides/example' },
],
*/
},
{
label: 'Control Flow',
autogenerate: { directory: 'docs/control-flow' },
},
{ label: 'Wait', slug : 'docs/wait' },
{ label: 'Set', slug : 'docs/set' },
{
label: 'Error Handling',
autogenerate: { directory: 'docs/error-handling' },
},
{
label: 'Call Tasks',
autogenerate: { directory: 'docs/call-tasks' },
},
{
label: 'Run Tasks',
autogenerate: { directory: 'docs/run-tasks' },
},
{
label: 'Event Tasks',
autogenerate: { directory: 'docs/event-tasks' },
},
{
label: 'Resources & Configuration',
autogenerate: { directory: 'docs/resources-configuration' },
},
{
label: 'Reference',
autogenerate: { directory: 'docs/reference' },
},
],
components: {
ThemeSelect: './src/overrides/ThemeSelect.astro'
},
head: [
{
tag: 'script',
attrs: {
src: '/webcomponents/version-select/version-select.js',
defer: true
}
}
]
}),
mdx(),
],
markdown: {
syntaxHighlight: 'shiki',
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark',
},
wrap: true,
},
},
adapter: netlify(),
vite: {
plugins: [tailwindcss()],
}
});