Skip to content

Commit 783d8ab

Browse files
committed
docs: update all docs
1 parent 7239736 commit 783d8ab

25 files changed

Lines changed: 5175 additions & 6974 deletions

docs/astro.config.mjs

Lines changed: 95 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,102 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
4+
import starlightThemeBlack from 'starlight-theme-black';
5+
import tailwindcss from '@tailwindcss/vite';
6+
7+
48

59
// https://astro.build/config
610
export default defineConfig({
7-
integrations: [
8-
starlight({
9-
title: 'Moire Docs',
10-
logo: {
11-
src: './src/assets/moire-logo.svg',
12-
replacesTitle: false,
13-
},
14-
social: [
15-
{ icon: 'github', label: 'GitHub', href: 'https://github.com/moirelog/moire' },
16-
],
17-
defaultLocale: 'root',
18-
locales: {
19-
root: {
20-
label: '简体中文',
21-
lang: 'zh-CN',
22-
},
23-
en: {
24-
label: 'English',
25-
},
26-
},
27-
sidebar: [
28-
{
29-
label: '开始',
30-
items: [
31-
{ label: '简介', slug: 'introduction' },
32-
],
33-
},
34-
{
35-
label: '安装与部署',
36-
items: [
37-
{ label: '准备工作', slug: 'getting-started/prerequisites' },
38-
{ label: '部署网站', slug: 'getting-started/installation' },
39-
{ label: '验证状态', slug: 'getting-started/verification' },
40-
],
41-
},
42-
{
43-
label: '配置快捷指令',
44-
items: [
45-
{ label: '下载快捷指令', slug: 'shortcuts/downloads' },
46-
{ label: '填写配置', slug: 'shortcuts/configuration' },
47-
{ label: '建立同步文件夹', slug: 'shortcuts/sync-folder' },
48-
{ label: '自动化', slug: 'shortcuts/automation' },
49-
],
50-
},
51-
{
52-
label: '使用指南',
53-
items: [
54-
{ label: '站点配置', slug: 'customization/site-config' },
55-
{ label: '主题风格', slug: 'customization/themes' },
56-
{ label: 'Markdown 支持', slug: 'usage/markdown' },
57-
{ label: '图片上传机制', slug: 'usage/images' },
58-
],
59-
},
60-
{
61-
label: '进阶与优化',
62-
items: [
63-
{ label: 'API 加速', slug: 'advanced/api-proxy' },
64-
{ label: '自定义域名', slug: 'advanced/custom-domain' },
65-
],
66-
},
67-
{
68-
label: '帮助',
69-
items: [
70-
{ label: '故障排除', slug: 'troubleshooting' },
71-
{ label: '版本日志', slug: 'changelog' },
72-
],
73-
},
74-
],
75-
customCss: [
76-
'./src/styles/custom.css',
77-
],
78-
components: {
79-
Head: './src/components/Head.astro',
80-
},
81-
}),
82-
],
11+
vite: {
12+
plugins: [tailwindcss()],
13+
},
14+
integrations: [
15+
16+
starlight({
17+
title: 'Moire Docs',
18+
logo: {
19+
src: './src/assets/moire.svg',
20+
replacesTitle: false,
21+
},
22+
plugins: [
23+
starlightThemeBlack({
24+
navLinks: [{
25+
label: 'Docs',
26+
link: '/introduction',
27+
}],
28+
footerText:
29+
'Moire is a project syncing Apple Notes to GitHub Pages, designed and made by [Yanxin](https://github.com/anig1scur).'
30+
})
31+
],
32+
social: [
33+
{ icon: 'github', label: 'GitHub', href: 'https://github.com/moirelog/moire' },
34+
],
35+
defaultLocale: 'root',
36+
locales: {
37+
root: {
38+
label: '简体中文',
39+
lang: 'zh-CN',
40+
},
41+
en: {
42+
label: 'English',
43+
},
44+
},
45+
sidebar: [
46+
{
47+
label: '开始',
48+
items: [
49+
{ label: '简介', slug: 'introduction' },
50+
],
51+
},
52+
{
53+
label: '安装与部署',
54+
items: [
55+
{ label: '准备工作', slug: 'getting-started/prerequisites' },
56+
{ label: '部署网站', slug: 'getting-started/installation' },
57+
{ label: '验证状态', slug: 'getting-started/verification' },
58+
],
59+
},
60+
{
61+
label: '配置快捷指令',
62+
items: [
63+
{ label: '下载快捷指令', slug: 'shortcuts/downloads' },
64+
{ label: '填写配置', slug: 'shortcuts/configuration' },
65+
{ label: '建立同步文件夹', slug: 'shortcuts/sync-folder' },
66+
{ label: '自动化', slug: 'shortcuts/automation' },
67+
],
68+
},
69+
{
70+
label: '使用指南',
71+
items: [
72+
{ label: '站点配置', slug: 'customization/site-config' },
73+
{ label: '主题风格', slug: 'customization/themes' },
74+
{ label: 'Markdown 支持', slug: 'usage/markdown' },
75+
{ label: '图片上传机制', slug: 'usage/images' },
76+
],
77+
},
78+
{
79+
label: '进阶与优化',
80+
items: [
81+
{ label: 'API 加速', slug: 'advanced/api-proxy' },
82+
{ label: '自定义域名', slug: 'advanced/custom-domain' },
83+
],
84+
},
85+
{
86+
label: '帮助',
87+
items: [
88+
{ label: '故障排除', slug: 'troubleshooting' },
89+
{ label: '版本日志', slug: 'changelog' },
90+
],
91+
},
92+
],
93+
94+
components: {
95+
Head: './src/components/Head.astro',
96+
},
97+
customCss: [
98+
'./src/styles/custom.css',
99+
],
100+
}),
101+
],
83102
});

0 commit comments

Comments
 (0)