-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrspress.config.ts
More file actions
69 lines (66 loc) · 1.76 KB
/
rspress.config.ts
File metadata and controls
69 lines (66 loc) · 1.76 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
67
68
69
import { join } from "node:path";
import { defineConfig } from "@rspress/core";
import { pluginRss } from "@rspress/plugin-rss";
import { pluginSitemap } from "@rspress/plugin-sitemap";
import { pluginOpenGraph } from "rsbuild-plugin-open-graph";
import { pluginFontFigtree } from "rspress-plugin-font-figtree";
import { pluginOpenApi } from "./plugins/openApiPlugin";
const PUBLISH_URL = process.env.PUBLISH_URL || "https://evidos.github.io";
const ogImageUrl = new URL(PUBLISH_URL);
ogImageUrl.pathname = "/og_image.png";
export default defineConfig({
llms: true,
builderConfig: {
plugins: [
pluginOpenGraph({
title: "Signhost Developer Hub",
type: "website",
url: PUBLISH_URL,
description: "Entrust Signhost Developer Hub",
locale: "en",
image: ogImageUrl.href,
}),
],
},
root: join(__dirname, "docs"),
title: "Signhost Developer Hub",
description: "Entrust Signhost Developer Hub",
icon: "/favicon.png",
logo: "/signhost.svg",
globalStyles: join(__dirname, "theme", "index.css"),
route: {
cleanUrls: true,
},
plugins: [
pluginOpenApi({ clean: true }),
pluginFontFigtree(),
pluginSitemap({ siteUrl: PUBLISH_URL }),
pluginRss({
siteUrl: PUBLISH_URL,
feed: [
{
id: "blog-rss",
test: "/blog/posts",
language: "en",
output: {
type: "atom",
filename: "blog-rss.xml",
},
},
],
}),
],
themeConfig: {
darkMode: false,
footer: {
message: `© ${new Date().getFullYear()} Entrust Corporation. All Rights Reserved.`,
},
socialLinks: [
{
icon: "github",
mode: "link",
content: "https://github.com/evidos",
},
],
},
});