-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocusaurus.config.js
159 lines (159 loc) · 4.06 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'The Formidable Framework',
tagline: 'The full-stack one person Framework',
url: 'https://formidablejs.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'formidablejs',
projectName: 'formidablejs.org',
themeConfig: {
announcementBar: {
id: 'formidable-announcement',
content: 'Missed our "Ultimate Meta Framework" GitHub stream? Don\'t worry, you can watch the replay <a target="_blank" href="https://www.youtube.com/watch?v=YJwzu8kPcPs">here</a>.',
backgroundColor: '#000',
textColor: '#fff',
isCloseable: false
},
metadata: [
{
name: 'twitter:card',
content: 'summary_large_image'
},
{
name: 'twitter:url',
content: 'https://formidablejs.org'
},
{
name: 'twitter:title',
content: 'FormidableJS - The One Person Framework ✌️'
},
{
name: 'twitter:description',
content: 'Formidable (or formidablejs) is a modern full-stack framework for building scalable backend applications and APIs with TypeScript or Imba.'
},
{
name: 'twitter:image',
content: 'https://www.formidablejs.org/img/og-image-5.png'
},
{
name: 'twitter:site',
content: '@formidablejs'
},
{
name: 'twitter:creator',
content: '@donaldpakkies'
},
{
name: 'og:type',
content: 'website',
},
{
name: 'og:url',
content: 'https://formidablejs.org'
},
{
name: 'og:title',
content: 'FormidableJS - The One Person Framework ✌️'
},
{
name: 'og:description',
content: 'Formidable (or formidablejs) is a modern full-stack framework for building scalable backend applications and APIs with TypeScript or Imba.'
},
{
name: 'og:image',
content: 'https://www.formidablejs.org/img/og-image-5.png'
},
],
algolia: {
appId: 'BH4D9OD16A',
apiKey: 'a445a9bfec68203859d07885f532285b',
indexName: 'formidablejs',
},
colorMode: {
defaultMode: 'light',
},
navbar: {
title: 'Formidable',
logo: {
alt: 'formidable',
src: 'img/formidable.svg',
},
items: [
{
to: 'docs',
label: 'Docs',
position: 'left',
className: 'left-header-link',
},
{
to: 'blog',
label: 'Blog',
position: 'left',
className: 'left-header-link',
},
// {
// href: 'https://github.com/formidablejs/framework',
// position: 'right',
// label: "★ Star us on Github"
// },
{
href: 'https://github.com/formidablejs',
position: 'right',
className: 'header-github-link',
}
],
},
footer: {
style: 'light',
links: [
{
label: 'Docs',
to: '/docs'
},
{
label: 'Blog',
to: '/blog'
}
],
copyright: `Copyright © ${new Date().getFullYear()} Donald Pakkies | Brought to you by <a href='https://lunaql.com/' target='_blank'>LunaQL</a>. Code licensed under <a href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener">MIT</a>.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: "https://github.com/formidablejs/formidablejs.org/edit/main/",
sidebarCollapsed: false,
sidebarCollapsible: false,
// lastVersion: 'current',
// versions: {
// current: {
// label: '1.x-preview',
// path: '1.x',
// badge: true,
// },
// },
},
blog: {
blogTitle: 'The Formidable Framework blog!',
blogDescription: 'A journey into a full-stack framework powering the next generation of web applications.',
postsPerPage: 10,
blogSidebarCount: 0,
// blogSidebarTitle: 'All posts',
// blogSidebarCount: 'ALL',
showReadingTime: true, // When set to false, the "x min read" won't be shown
readingTime: ({content, frontMatter, defaultReadingTime}) =>
defaultReadingTime({content, options: {wordsPerMinute: 300}}),
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};