-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
104 lines (102 loc) · 2.68 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
import starlight from "@astrojs/starlight";
import starlightUtils from "@lorenzo_lewis/starlight-utils";
import { defineConfig } from "astro/config";
import starlightBlog from "starlight-blog";
// import starlightLinksValidator from 'starlight-links-validator';
// import starlightImageZoom from 'starlight-image-zoom';
// import starWarp from '@inox-tools/star-warp';
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import linkCard from "astro-link-card";
// import webVitals from "@astrojs/web-vitals";
// import db from "@astrojs/db";
// import cloudflare from "@astrojs/cloudflare";
// https://astro.build/config
export default defineConfig({
prefetch: true,
experimental: {
contentLayer: true,
contentIntellisense: true,
},
site: "https://cursor-japan.org",
integrations: [
starlight({
favicon: "/favicon.png",
plugins: [
starlightBlog(),
starlightUtils({
navLinks: {
leading: {
useSidebarLabelled: "leadingNavLinks",
},
},
}),
// starlightLinksValidator(),
//starWarp()
],
customCss: ["./src/tailwind.css"],
title: "Cursor Japan Community",
editLink: {
baseUrl: "https://github.com/cursor-japan/cursor-japan-site/edit/main/",
},
logo: {
src: "/src/assets/cursor-japan-app-logo.svg",
},
defaultLocale: "root",
locales: {
root: {
label: "日本語",
lang: "ja",
},
},
social: {
github: "https://github.com/cursor-japan/cursor-japan-site",
"x.com": "https://x.com/cursor_japan",
// "openCollective": 'https://opencollective.com/cursor-japan'
},
components: {
Pagination: "./src/components/CustomPagination.astro",
},
sidebar: [
{
label: "leadingNavLinks",
items: [
{
label: "Docs!",
link: "/docs",
},
{
label: "References!",
link: "/references",
},
],
},
{
label: "Guides",
items: [
// Each item here is one entry in the navigation menu.
{
label: "Example Guide",
slug: "guides/example",
},
],
},
{
label: "Reference",
autogenerate: {
directory: "reference",
},
},
],
}),
react(),
linkCard(),
tailwind({
applyBaseStyles: false,
}) /*webVitals(), db()*/,
],
// output: "server",
// adapter: cloudflare({
// imageService: 'cloudflare'
// })
});