-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrspress.config.ts
More file actions
66 lines (65 loc) · 1.98 KB
/
rspress.config.ts
File metadata and controls
66 lines (65 loc) · 1.98 KB
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
import * as path from 'node:path';
import { defineConfig } from 'rspress/config';
import { pluginYaml } from "@rsbuild/plugin-yaml";
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
import { pluginSass } from '@rsbuild/plugin-sass';
import pluginSitemap from 'rspress-plugin-sitemap';
import { pluginLlms } from '@rspress/plugin-llms';
const PUBLISH_URL = 'https://aiscript.dev';
export default defineConfig({
root: path.join(__dirname, 'docs'),
title: 'AIScript',
icon: '/toucan.png',
logo: {
light: '/aiscript-logo.svg',
dark: '/aiscript-logo-white.svg',
},
search: {
codeBlocks: true,
},
route: {
cleanUrls: true,
},
mediumZoom: true,
plugins: [
pluginSitemap({
domain: PUBLISH_URL,
}),
pluginLlms(),
],
builderConfig: {
plugins: [
pluginOpenGraph({
title: 'AIScript',
type: 'website',
url: PUBLISH_URL,
image: 'https://aiscript.dev/aiscript-social-image.png',
description: 'AIScript is a unique combination of interpreter programming language and web framework, both written in Rust, designed to help developers build AI applications effortlessly.',
}),
pluginSass(),
pluginYaml(),
],
},
globalStyles: path.join(__dirname, 'theme/index.css'),
themeConfig: {
enableScrollToTop: true,
footer: {
message: '<p>AIScript Community © 2025.</p>',
},
lastUpdated: true,
prevPageText: 'Prev Page',
nextPageText: 'Next Page',
socialLinks: [
{
icon: 'github',
mode: 'link',
content: 'https://github.com/aiscriptdev/aiscript',
},
{
icon: 'discord',
mode: 'link',
content: 'https://discord.gg/bXRqsweNPb',
},
],
},
});