-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
125 lines (123 loc) · 3.23 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import starlightLinksValidatorPlugin from "starlight-links-validator";
import partytown from "@astrojs/partytown";
// https://astro.build/config
export default defineConfig({
site: "https://swiftide.rs",
image: {
service: {
entrypoint: "astro/assets/services/sharp",
config: {
limitInputPixels: false,
},
},
},
prefetch: {
prefetchAll: true,
},
integrations: [
starlight({
title: "swiftide",
// <script defer data-domain="swiftide.rs" src="https://plausible.io/js/script.js"></script>
head: [
{
tag: "script",
attrs: {
defer: true,
type: "text/partytown",
"data-domain": "swiftide.rs",
src: "https://plausible.io/js/script.js",
},
},
],
description:
"Blazing fast data pipelines for Retrieval Augmented Generation written in Rust. Swiftide is a Rust native library to build and experiment modular LLM pipelines, allowing you to ship your AI application right to production.",
editLink: {
baseUrl: "https://github.com/bosun-ai/swiftide-website/edit/master",
},
tableOfContents: {
minHeadingLevel: 2,
},
customCss: [
// Fontsource files for to regular and semi-bold font weights.
"@fontsource/fira-code/400.css",
"@fontsource/fira-code/600.css",
"./src/styles/custom.css",
"./src/tailwind.css",
],
favicon: "favicon32.png",
plugins: [starlightLinksValidatorPlugin()],
logo: {
src: "./src/assets/logo.png",
},
social: {
github: "https://github.com/bosun-ai/swiftide",
linkedin: "https://www.linkedin.com/company/bosun-ai/",
discord: "https://discord.gg/3jjXYen9UY",
},
sidebar: [
{
label: "What is swiftide?",
link: "/what-is-swiftide/",
},
{
label: "Getting Started",
autogenerate: {
directory: "getting-started",
},
},
{
label: "Core Concepts",
autogenerate: {
directory: "core-concepts",
},
},
{
label: "Indexing Your Data",
autogenerate: {
directory: "indexing",
},
},
{
label: "Querying With Your Data",
autogenerate: {
directory: "querying",
},
},
{
label: "In depth",
autogenerate: {
directory: "in-depth",
},
},
{
label: "Tutorials",
autogenerate: {
directory: "tutorials",
},
},
{
label: "Reference",
link: "https://docs.rs/swiftide/latest/swiftide/",
badge: {
variant: "note",
text: "docs.rs",
},
attrs: {
target: "_blank",
},
},
{
label: "Troubleshooting",
link: "/troubleshooting/",
},
],
}),
tailwind({
applyBaseStyles: false,
}),
partytown(),
],
});