-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
103 lines (101 loc) · 2.68 KB
/
docusaurus.config.ts
File metadata and controls
103 lines (101 loc) · 2.68 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
import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
const config: Config = {
title: 'AccordKit',
tagline: 'Open tracing & observability for AI applications.',
url: 'https://docs.accordkit.dev',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'accordkit',
projectName: 'docs',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
trailingSlash: false,
presets: [
[
'classic',
{
docs: {
routeBasePath: '/',
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/accordkit/docs/blob/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
blog: false,
theme: { customCss: './src/css/custom.css' },
},
],
],
themeConfig: {
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
navbar: {
title: 'AccordKit',
items: [
{ to: '/', label: 'Docs', position: 'left' },
{ to: '/libraries/tracer', label: 'Tracer', position: 'left' },
{
to: '/libraries/openai-adapter',
label: 'OpenAI Adapter',
position: 'left',
},
{
href: 'https://github.com/accordkit',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{ label: 'Quickstart', to: '/getting-started/quickstart' },
{ label: 'Tracer Core', to: '/libraries/tracer' },
{ label: 'OpenAI Adapter', to: '/libraries/openai-adapter' },
],
},
{
title: 'Reference',
items: [
{ label: 'Event Model', to: '/libraries/event-model' },
{ label: '@accordkit/tracer', href: 'https://tracer.accordkit.dev' },
{
label: '@accordkit/provider-openai',
href: 'https://provider-openai.accordkit.dev',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Examples',
href: 'https://github.com/accordkit/examples',
},
{ label: 'GitHub', href: 'https://github.com/accordkit' },
],
},
],
copyright: `© ${new Date().getFullYear()} AccordKit.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'json'],
},
},
scripts: [
{
src: 'https://plausible.io/js/script.js',
defer: true,
'data-domain': 'accordkit.dev',
},
],
};
export default config;