-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
133 lines (131 loc) · 3.64 KB
/
docusaurus.config.js
File metadata and controls
133 lines (131 loc) · 3.64 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
129
130
131
132
133
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = {
title: 'Automock (Deprecated)',
tagline: 'Automock has been transformed into Suites',
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',
},
},
{
tagName: 'meta',
attributes: {
name: 'robots',
content: 'noindex',
},
},
{
tagName: 'link',
attributes: {
rel: 'canonical',
href: 'https://suites.dev',
},
},
{
tagName: 'meta',
attributes: {
name: 'google',
content: 'notranslate',
},
},
],
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
routeBasePath: 'docs',
sidebarPath: require.resolve('./docs-sidebars.js'),
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
blog: false,
gtag: {
trackingID: 'G-K2J8XLLS52',
anonymizeIP: true,
},
},
],
],
plugins: [],
themeConfig: {
announcementBar: {
id: 'automock_migrated',
content: '⚠️ <strong>Automock has been migrated to Suites</strong> - Visit <a target="_blank" rel="noopener noreferrer" href="https://suites.dev">suites.dev</a> for the latest documentation and updates',
backgroundColor: '#fbbf24',
textColor: '#000000',
isCloseable: false,
},
metadata: [
{ name: 'keywords', content: 'auto mocking, dependency injection, inversion of control, jest, sinon, nestjs, inversifyjs' },
{ name: 'description', content: 'Automock has been deprecated and transformed into Suites. Please visit suites.dev for the latest documentation.' },
{ property: 'og:title', content: 'Automock is now Suites' },
{ property: 'og:description', content: 'Automock has been deprecated and transformed into Suites. Please visit suites.dev for the latest documentation.' },
{ name: 'googlebot', content: 'noindex, follow' },
{ name: 'bingbot', content: 'noindex, follow' },
],
colorMode: {
disableSwitch: true,
defaultMode: 'dark',
},
algolia: null,
themes: ['@docusaurus/theme-classic'],
navbar: {
title: 'Automock (Deprecated)',
logo: {
alt: 'Automock Logo',
src: 'img/logo.png',
},
items: [
{
href: 'https://suites.dev',
position: 'left',
label: 'Go to Suites',
},
{
to: '/docs/',
position: 'left',
label: 'Archived Docs',
},
{
href: 'https://github.com/suites-dev/suites',
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;