Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
95 lines (94 loc) · 2.39 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
95 lines (94 loc) · 2.39 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Replicache Docs',
tagline: 'Realtime Sync for any Backend Stack',
url: 'https://doc.replicache.dev/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/replicache.png',
organizationName: 'Rocicorp', // Usually your GitHub org/user name.
projectName: 'replicache', // Usually your repo name.
plugins: [
[
'docusaurus-plugin-typedoc',
// Plugin / TypeDoc options
{
entryPoints: ['../src/mod.ts'],
tsconfig: '../tsconfig.json',
exclude: ['node_modules', 'src/*.test.ts'],
excludePrivate: true,
excludeProtected: true,
excludeExternals: true,
name: 'Replicache',
readme: 'none',
},
],
],
themeConfig: {
plugins: ['@docusaurus/plugin-google-analytics'],
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: true,
},
googleAnalytics: {
trackingID: 'UA-166756598-1',
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
navbar: {
title: 'Replicache Documentation',
logo: {
alt: 'Shiny Replicache Logo',
src: 'img/replicache.svg',
},
items: [
{
href: 'https://github.com/rocicorp/replicache',
label: 'GitHub',
position: 'right',
},
],
},
image: 'img/replicache.png',
footer: {
style: 'dark',
links: [
{
title: 'Connect',
items: [
{
label: 'Email',
href: 'mailto:hello@replicache.dev',
},
{
label: 'Discord',
href: 'https://discord.replicache.dev/',
},
{
label: 'Twitter',
href: 'https://twitter.com/replicache',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Rocicorp, LLC.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/rocicorp/replicache/tree/main/doc',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};