-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathrspress.config.ts
67 lines (66 loc) · 1.73 KB
/
rspress.config.ts
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
import * as path from 'path';
import { defineConfig } from 'rspress/config';
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
import vercelAnalytics from 'rspress-plugin-vercel-analytics';
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
export default defineConfig({
root: 'docs',
base: '/react-native-testing-library/',
title: 'React Native Testing Library',
description: 'Helps you to write better tests with less effort.',
icon: '/img/owl.png',
logo: '/img/owl.png',
logoText: 'React Native Testing Library',
outDir: 'build',
markdown: {
checkDeadLinks: true,
codeHighlighter: 'prism',
},
multiVersion: {
default: '13.x',
versions: ['12.x', '13.x'],
},
route: {
cleanUrls: true,
},
search: {
versioned: true,
},
themeConfig: {
enableContentAnimation: true,
enableScrollToTop: true,
outlineTitle: 'Contents',
footer: {
message: 'Copyright © 2024 Callstack Open Source',
},
socialLinks: [
{
icon: 'github',
mode: 'link',
content: 'https://github.com/callstack/react-native-testing-library',
},
],
},
globalStyles: path.join(__dirname, 'docs/styles/index.css'),
builderConfig: {
plugins: [
pluginOpenGraph({
title: 'React Native Testing Library',
type: 'website',
url: 'https://callstack.github.io/react-native-testing-library/',
description: 'Helps you to write better tests with less effort.',
}),
],
tools: {
rspack(config, { addRules }) {
addRules([
{
resourceQuery: /raw/,
type: 'asset/source',
},
]);
},
},
},
plugins: [pluginFontOpenSans(), vercelAnalytics()],
});