-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
87 lines (86 loc) · 2.16 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
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import remarkHeadingId from "remark-heading-id";
import tailwind from "@astrojs/tailwind";
import liveCode from "astro-live-code";
import rehypeAstroRelativeMarkdownLinks from "astro-rehype-relative-markdown-links";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
markdown: {
// @ts-expect-error ??????
remarkPlugins: [remarkHeadingId],
rehypePlugins: [
[
rehypeAstroRelativeMarkdownLinks,
{
contentPath: "src/content/docs",
},
],
],
},
site: "https://docs.solvro.pl",
integrations: [
liveCode({
defaultProps: {
"client:load": true,
},
}),
starlight({
defaultLocale: "pl",
locales: {
root: {
label: "Polski",
lang: "pl",
},
},
favicon: "favicon.ico",
title: "Solvro",
customCss: ["./src/tailwind.css"],
tableOfContents: true,
logo: {
light: "./src/assets/logo_dark.png",
dark: "./src/assets/logo_white.png",
replacesTitle: true,
},
lastUpdated: true,
head: [
{
tag: "script",
attrs: {
src: "https://analytics.solvro.pl/script.js",
"data-website-id": "8d083e9b-5ad6-4abb-b9b2-4c855adb18b0",
defer: true,
"data-domains": "docs.solvro.pl",
},
},
],
components: {
Head: "./src/overrides/Head.astro",
},
social: {
facebook: "https://www.facebook.com/knsolvro",
github: "https://github.com/solvro/web-solvro-docs",
linkedin: "https://www.linkedin.com/company/knsolvro",
},
editLink: {
baseUrl: "https://github.com/Solvro/web-solvro-docs/edit/main/",
},
sidebar: [
{
label: "Handbooki",
autogenerate: { directory: "guides" },
},
{
label: "Projekty",
autogenerate: { directory: "projects" },
},
],
}),
tailwind({
applyBaseStyles: false,
}),
react(),
],
});