-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
159 lines (149 loc) · 4.08 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
159 lines (149 loc) · 4.08 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
const config: Config = {
title: "PIC",
tagline: "Provenance Identity Continuity",
favicon: "img/favicon.ico",
future: {
v4: true,
},
url: "https://www.pic-protocol.org",
baseUrl: "/",
organizationName: "pic-protocol",
projectName: "pic-protocol",
onBrokenLinks: "throw",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css",
type: "text/css",
crossorigin: "anonymous",
},
],
presets: [
[
"classic",
{
docs: false,
blog: false,
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: "img/social-card.jpg",
colorMode: { disableSwitch: false, respectPrefersColorScheme: true },
navbar: {
title: "PIC",
logo: {
alt: "PIC Logo",
src: "img/logo.svg",
},
items: [
{ position: "left", label: "Why PIC", to: "/why-pic" },
{ position: "left", label: "Ask Your LLM", to: "/ask-your-llm" },
{ position: "left", label: "Formal Model", to: "/formal-model" },
{ position: "left", label: "Specification", to: "/specification" },
{ position: "left", label: "PIC-X", to: "/pic-x" },
{
position: "left",
label: "Demo",
href: "/pic-in-action.html",
target: "_blank",
rel: "noopener noreferrer",
},
{
position: "right",
href: "https://github.com/pic-protocol/pic-spec",
target: "_blank",
rel: "noopener noreferrer",
className: "header-star-link",
"aria-label": "Star pic-spec on GitHub",
},
{
position: "right",
href: "https://github.com/pic-protocol",
target: "_blank",
rel: "noopener noreferrer",
className: "header-github-link",
"aria-label": "PIC on GitHub",
},
{
position: "right",
href: "https://join.slack.com/t/picprotocol/shared_invite/zt-3wpt1lro7-poD6BSrcoVbVnyzqX1oxYQ",
target: "_blank",
rel: "noopener noreferrer",
className: "header-slack-link",
"aria-label": "Join the PIC Slack community",
},
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
plugins: [
[
"@docusaurus/plugin-content-docs",
{
id: "ask-your-llm",
path: "docs/ask-your-llm",
routeBasePath: "ask-your-llm",
sidebarPath: "./sidebars-ask-your-llm.ts",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
],
[
"@docusaurus/plugin-content-docs",
{
id: "why-pic",
path: "docs/why-pic",
routeBasePath: "why-pic",
sidebarPath: "./sidebars-why-pic.ts",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
],
[
"@docusaurus/plugin-content-docs",
{
id: "formal-model",
path: "docs/formal-model",
routeBasePath: "formal-model",
sidebarPath: "./sidebars-formal-model.ts",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
],
[
"@docusaurus/plugin-content-docs",
{
id: "specification",
path: "docs/specification",
routeBasePath: "specification",
sidebarPath: "./sidebars-specification.ts",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
],
"./src/plugins/tailwind-config.js",
],
scripts: [
{
src: "https://plausible.io/js/pa-i7fASAHMgS-8ZoTMzxiGY.js",
async: true,
},
],
clientModules: ["./src/clientModules/plausible.js"],
};
export default config;