-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
95 lines (94 loc) · 2.76 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import solidJs from "@astrojs/solid-js";
import robotsTxt from "astro-robots-txt";
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
site: "https://go.learnit.us.kg",
integrations: [
starlight({
title: 'learn-it',
social: {
github: 'https://github.com/gvcgo/learn_it',
},
sidebar: [
{
label: '基础学习',
items: [
// Each item here is one entry in the navigation menu.
{ label: '计算机基础', slug: 'books/books' },
{ label: 'MySQL原理', slug: 'books/mysql' },
{ label: 'Redis原理', slug: 'books/redis' },
{ label: 'git学习', slug: 'books/git' },
{ label: 'Kafka/RocketMQ原理', slug: 'books/kafka' },
{ label: 'Elasticsearch原理', slug: 'books/elasticsearch' },
{ label: '后端架构', slug: 'books/architecture' },
],
},
{
label: '各类工具',
items: [
// Each item here is one entry in the navigation menu.
{ label: '编程相关', slug: 'tools/programming' },
{ label: 'AI工具', slug: 'tools/ai' },
{ label: '其他工具', slug: 'tools/tools' },
],
},
{
label: '社区网站',
items: [
// Each item here is one entry in the navigation menu.
{ label: '程序员常去的社区和网站', slug: 'community/community' },
],
},
{
label: '编程语言',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'go相关', slug: 'languages/go' },
{ label: 'python相关', slug: 'languages/python' },
{ label: 'java相关', slug: 'languages/java' },
{ label: 'typescript相关', slug: 'languages/typescript' },
{ label: '其他', slug: 'languages/languages' },
],
},
{
label: 'DevOps',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'docker', slug: 'devops/docker' },
{ label: 'k8s', slug: 'devops/k8s' },
],
},
{
label: 'AI学习',
items: [
// Each item here is one entry in the navigation menu.
{ label: '大模型学习', slug: 'ai/ai' },
],
},
{
label: '前端学习',
items: [
// Each item here is one entry in the navigation menu.
{ label: '学习资料', slug: 'frontend/frontend' },
],
},
{
label: '设计师相关',
items: [
// Each item here is one entry in the navigation menu.
{ label: '设计师导航', slug: 'designer/designer' },
],
},
],
defaultLocale: 'root',
locales:{
root: { label: '简体中文', lang: 'zh-CN' },
},
customCss: ['./src/assets/landing.css'],
}),
solidJs(), robotsTxt(), sitemap(),
],
});