Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
115 lines (110 loc) · 3.07 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
115 lines (110 loc) · 3.07 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const repository = 'https://github.com/brave/bravebot';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Brave Bot',
tagline: 'A general-purpose agent with structural resistance to indirect prompt injection',
url: process.env.DOCS_URL || 'https://brave.github.io',
baseUrl: process.env.DOCS_BASE_URL || '/bravebot/',
onBrokenLinks: 'throw',
onBrokenAnchors: 'throw',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'throw',
},
},
favicon: 'img/favicon.png',
organizationName: 'brave',
projectName: 'bravebot',
customFields: {repository},
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: `${repository}/edit/main/docs/website/`,
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Dark is the default whatever the system prefers, and the navbar toggle remembers a choice.
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: false,
},
navbar: {
title: 'Brave Bot',
logo: {
alt: 'Brave Logo',
src: 'img/brave128.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'left',
label: 'Docs',
},
{
to: '/quickstart',
label: 'Quickstart',
position: 'left',
},
{
to: '/reference/cli',
label: 'CLI reference',
position: 'left',
},
{
href: repository,
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{label: 'Overview', to: '/overview'},
{label: 'Quickstart', to: '/quickstart'},
{label: 'CLI reference', to: '/reference/cli'},
],
},
{
title: 'Project',
items: [
{label: 'GitHub', href: repository},
{label: 'Issues', href: `${repository}/issues`},
{label: 'Specs', href: `${repository}/tree/main/docs/specs`},
],
},
{
title: 'More',
items: [
{label: 'Brave', href: 'https://brave.com'},
{label: 'Brave on GitHub', href: 'https://github.com/brave'},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Brave Software, Inc.`,
},
prism: {
additionalLanguages: ['bash', 'json', 'rust', 'toml'],
},
}),
};
module.exports = config;