-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
128 lines (118 loc) · 4.11 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
128 lines (118 loc) · 4.11 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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'ONQL',
tagline: 'Object Notation Query Language — describe your data, skip the API.',
favicon: 'img/favicon.png',
// Set the production url of your site here
url: 'https://onql.org',
// Set the /<baseUrl>/ pathname under which your site is served
baseUrl: '/',
// GitHub pages deployment config
organizationName: 'ONQL', // Usually your GitHub org/user name.
projectName: 'server', // Usually your repo name.
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
// .md files (including fetched driver READMEs) are parsed as CommonMark,
// .mdx files keep full MDX features. Keeps upstream READMEs safe from MDX
// tripping on stray `<` or `{` characters.
markdown: {
format: 'detect',
},
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js',
// Serve docs at the site root — there is no separate homepage.
routeBasePath: '/',
// Edit-on-GitHub link — points contributors to the right file.
editUrl: 'https://github.com/ONQL/server/edit/main/docs/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/onql-social-card.png',
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
navbar: {
title: 'ONQL',
logo: {
alt: 'ONQL Logo',
src: 'img/logo.svg',
},
items: [
{ to: '/intro', label: 'Docs', position: 'left' },
{ to: '/tour/basics', label: 'Tour', position: 'left' },
{ to: '/language/syntax', label: 'Language', position: 'left' },
{ to: '/cookbook/dashboards', label: 'Cookbook', position: 'left' },
{ to: '/reference/cheatsheet', label: 'Reference', position: 'left' },
{
href: 'https://github.com/ONQL',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{ label: 'Introduction', to: '/intro' },
{ label: 'Getting Started', to: '/getting-started/installation' },
{ label: 'Tour', to: '/tour/basics' },
{ label: 'Reference', to: '/reference/cheatsheet' },
],
},
{
title: 'Community',
items: [
{ label: 'GitHub Discussions', href: 'https://github.com/ONQL/server/discussions' },
{ label: 'Issues', href: 'https://github.com/ONQL/server/issues' },
],
},
{
title: 'Project',
items: [
{ label: 'GitHub Org', href: 'https://github.com/ONQL' },
{ label: 'Server', href: 'https://github.com/ONQL/server' },
{ label: 'Shell', href: 'https://github.com/ONQL/shell' },
{ label: 'License', href: 'https://github.com/ONQL/server/blob/main/LICENSE' },
{ label: 'Contributing', href: 'https://github.com/ONQL/server/blob/main/docs/CONTRIBUTING.md' },
],
},
],
copyright: `ONQL — Object Notation Query Language. Open source. Built with ❤︎ on Go & BadgerDB.`,
},
prism: {
theme: prismThemes.vsDark,
darkTheme: prismThemes.vsDark,
additionalLanguages: ['bash', 'json', 'go'],
},
}),
};
export default config;