-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
163 lines (157 loc) · 4.36 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
163 lines (157 loc) · 4.36 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Slim SEO Documentation',
tagline: 'Optimize your website for the best ranking on Google',
url: 'https://docs.wpslimseo.com',
baseUrl: '/',
trailingSlash: true,
onBrokenLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'elightup', // Usually your GitHub org/user name.
projectName: 'slim-seo-docs', // Usually your repo name.
titleDelimiter: '-',
plugins: [
'./lightbox',
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve( './sidebars.js' ),
editUrl: 'https://github.com/elightup/slim-seo-docs/tree/master/',
},
theme: {
customCss: require.resolve( './src/css/custom.css' ),
},
},
],
],
themes: [
[
require.resolve( "@easyops-cn/docusaurus-search-local" ),
{
hashed: true,
indexBlog: false,
indexPages: false,
docsRouteBasePath: "/",
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
( {
image: 'https://imgur.elightup.com/eYbsRxD.jpg',
docs: {
sidebar: {
autoCollapseCategories: true,
}
},
colorMode: {
respectPrefersColorScheme: true,
},
// announcementBar: {
// content: '🔥 Introducing Slim SEO Pro - One single plugin with all premium features. <a href="https://wpslimseo.com/products/slim-seo-pro/">Get it now</a>.',
// backgroundColor: '#fed7aa',
// textColor: '#7c2d12',
// isCloseable: false,
// },
navbar: {
logo: {
alt: 'Slim SEO Logo',
src: 'img/logo.svg',
srcDark: 'img/logo-white.svg',
href: 'https://wpslimseo.com'
},
items: [
{
type: 'doc',
docId: 'slim-seo/installation',
position: 'left',
label: 'Slim SEO Free',
},
{
type: 'doc',
docId: 'slim-seo-pro/installation',
position: 'left',
label: 'Slim SEO Pro',
},
{
href: 'https://www.facebook.com/groups/slimseo',
label: 'Community',
position: 'right',
},
],
},
footer: {
logo: {
src: 'img/logo.svg',
srcDark: 'img/logo-white.svg',
},
style: 'light',
links: [
{
title: 'Slim SEO',
items: [
{
label: 'About',
href: 'https://wpslimseo.com/about/',
},
{
label: 'Contact',
href: 'https://wpslimseo.com/contact/',
},
{
label: 'Affiliate',
href: 'https://wpslimseo.com/affiliate/',
},
{
label: 'My Account',
href: 'https://wpslimseo.com/my-account/',
},
],
},
{
title: 'Products',
items: [
{
label: 'Slim SEO (free)',
href: 'https://wordpress.org/plugins/slim-seo/',
},
{
label: 'Slim SEO Pro',
href: 'https://wpslimseo.com/products/slim-seo-pro/',
},
{
label: 'Browser extensions',
href: 'https://elu.to/ec',
},
],
},
{
title: 'Connect With Us',
items: [
{
label: 'Facebook Group',
href: 'https://www.facebook.com/groups/slimseo',
},
{
label: 'Twitter (X)',
href: 'https://x.com/wpslimseo',
},
],
},
],
copyright: `Copyright © ${ new Date().getFullYear() } <a href="https://wpslimseo.com">Slim SEO</a>, a brand of <a href="https://elightup.com">eLightUp</a>.`,
},
prism: {
theme: require( 'prism-react-renderer' ).themes.oneDark,
additionalLanguages: [ 'php' ],
defaultLanguage: 'php',
},
} ),
};
module.exports = config;