-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.js
128 lines (126 loc) · 3.39 KB
/
docusaurus.config.js
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
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const algoliaConfig = require('./algolia-config');
const config = {
title: 'Automock',
tagline: 'Standalone Library for Automated Mocking of Class Dependencies',
url: 'https://automock.dev',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'Automock',
projectName: 'automock.dev',
headTags: [
{
tagName: 'link',
attributes: {
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
},
},
{
tagName: 'link',
attributes: {
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&family=Roboto:wght@400;500;700&family=Urbanist:wght@500&display=swap',
},
},
],
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
routeBasePath: 'docs',
sidebarPath: require.resolve('./docs-sidebars.js'),
remarkPlugins: [
[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }],
],
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
blog: false,
gtag: {
trackingID: 'G-K2J8XLLS52',
anonymizeIP: true,
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'api-reference',
path: 'api-reference',
routeBasePath: 'api-reference',
sidebarPath: require.resolve('./api-sidebars.js'),
remarkPlugins: [
[require('@docusaurus/remark-plugin-npm2yarn'), {sync: true}],
],
},
],
],
themeConfig: {
announcementBar: {
id: 'suites',
content: `
Announcement: Automock has transformed into <a href="https://suites.dev">Suites!</a> 🎉
<br>
<a href="https://suites.dev/docs/overview/migrating-from-automock">Find out more about the changeover</a> and the new features.
`,
backgroundColor: '#FFC2D4',
textColor: '#091E42',
isCloseable: false,
},
metadata: [
{ name: 'keywords', content: 'auto mocking, dependency injection, inversion of control, jest, sinon, nestjs, inversifyjs' },
{ name: 'description', content: 'Standalone Library for Automated Mocking of Class Dependencies.' },
],
colorMode: {
disableSwitch: true,
defaultMode: 'dark',
},
algolia: algoliaConfig,
navbar: {
title: 'Automock',
logo: {
alt: 'Automock Logo',
src: 'img/logo.png',
},
items: [
{
to: '/docs',
position: 'left',
label: 'Docs',
},
{
to: '/api-reference',
label: 'API Reference',
position: 'left',
},
{
href: 'https://github.com/automock/automock',
position: 'right',
className: 'header-github-link',
},
],
},
footer: {
style: 'dark',
copyright: `Released under the MIT License <br /> Copyright © 2020-2023 <strong>Omer Morad</strong> <br /> Hosted by Netlify`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
};
module.exports = config;