-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
159 lines (159 loc) · 4.95 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
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
module.exports = {
title: 'بلاگ سکوی ابری فندق',
tagline: 'اولین سکوی ابری عمومی ایران',
url: 'https://blog.fandogh.cloud',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/fandogh.png',
organizationName: 'Fandogh PaaS', // Usually your GitHub org/user name.
projectName: 'fandogh-blog', // Usually your repo name.
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
fromExtensions: ['html', 'htm'],
redirects: [
{
from: ['/articles/hard-decision', '/articles/hard-decision.html'],
to: '/blog/2020/11/02/hard-decision'
},
{
from: ['/articles/how-write-docker-file', '/articles/how-write-docker-file.html'],
to: '/blog/2018/05/20/how-write-docker-file'
},
{
from: ['/articles/fandogh-introduction.html', '/articles/fandogh-introduction'],
to: '/blog/2018/06/23/fandogh-introduction',
},
{
from: ['/articles/how-to-use-custom-domain.html', '/articles/how-to-use-custom-domain'],
to: '/blog/2018/07/23/how-to-use-custom-domain',
},
{
from: ['/articles/django-projects.html', '/articles/django-projects'],
to: '/blog/2018/07/24/django-projects',
},
{
from: ['/articles/namespace-storage.html', '/articles/namespace-storage'],
to: '/blog/2018/08/04/namespace-storage',
},
{
from: ['/articles/zero-downtime.html', '/articles/zero-downtime'],
to: '/blog/2018/08/08/zero-downtime',
},
{
from: ['/articles/workshop.html', '/articles/workshop'],
to: '/blog/2018/10/28/workshop',
},
{
from: ['/articles/mattermost-deployment-post.html', '/articles/mattermost-deployment-post'],
to: '/blog/2018/12/22/mattermost-deployment-post',
},
{
from: ['/articles/how-to-gitlab-ci.html', '/articles/how-to-gitlab-ci'],
to: '/blog/2019/02/08/how-to-gitlab-ci',
},
{
from: ['/articles/how-to-deploy-wordpress.html', '/articles/how-to-deploy-wordpress'],
to: '/blog/2018/06/03/how-to-deploy-wordpress',
},
{
from: ['/articles/cloud-infra-simple.html', '/articles/cloud-infra-simple'],
to: '/blog/2019/10/09/cloud-infra-simple',
},
{
from: ['/docs', '/docs/neext'],
to: '/blog',
}
],
},
],
],
themeConfig: {
hideableSidebar: true,
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
image: 'img/fandogh.png',
metadatas: [{name: 'twitter:card', content: 'summary'},
{name: 'description', content: 'سکوی ابری فندق اولین سکوی ابری عمومی ایران'},
{name: 'og:image', content: 'https://doc-demo-sorena.fandogh.cloud/img/fandogh.png'}],
ogImage: 'img/fandogh.png',
twitterImage: 'img/fandogh.png',
colorMode:{
defaultMode: 'dark',
switchConfig: {
darkIcon: '🌙',
lightIcon: '🌕',
}
},
navbar: {
hideOnScroll: true,
title: 'سکوی ابری فندق',
logo: {
alt: 'Fandogh PaaS',
src: 'img/fandogh.svg',
},
items: [
{
href: 'https://github.com/fandoghpaas/fandogh-blog-v2',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
logo: {
alt: 'Fandogh PaaS Logo',
src: 'img/fandogh.png',
href: 'https://www.fandogh.cloud',
},
style: 'dark',
links: [
{
title: 'بیشتر',
items: [
{
label: 'GitHub',
href: 'https://github.com/fandoghpaas/fandogh-blog-v2',
},
{
label: 'email',
href: 'mailto:[email protected]'
},
{
label: 'twitter',
href: 'https://twitter.com/fandoghpaas'
},
{
label: 'feed',
href: 'https://blog.fandogh.cloud/blog/rss.xml'
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Fandogh PaaS, Inc.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
blog: {
showReadingTime: true,
feedOptions: {
title: 'Fandogh PaaS Blog',
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} Fandogh PaaS, Inc.`,
},
editUrl:
'https://github.com/fandoghpaas/fandogh-blog-v2/edit/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};