-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
133 lines (126 loc) · 4.63 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
133 lines (126 loc) · 4.63 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
/** @type {import('@docusaurus/types').Config} */
// url: 'https://blog.loopback.io',
// baseUrl: '/',
const config = {
title: 'LoopBack',
tagline: 'LoopBack Blog',
url: 'https://loopback.io',
baseUrl: '/blog/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'loopbackio', // Usually your GitHub org/user name.
projectName: 'loopback-blog', // Usually your repo name.
deploymentBranch: 'gh-pages',
trailingSlash: false,
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: false,
blog: {
blogSidebarCount: 'ALL',
showReadingTime: true,
// Please change this to your repo.
routeBasePath: '/',
editUrl:
'https://github.com/loopbackio/loopback-blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'LoopBack',
logo: {
alt: 'LoopBack Logo',
src: 'img/logo.svg',
href: 'https://loopback.io'
},
items: [
// {
// type: 'doc',
// docId: 'intro',
// position: 'left',
// label: 'Tutorial',
// },
{to: '/', label: 'Blog', position: 'left'},
{
href: 'https://github.com/loopbackio/loopback-next',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
logo: {
alt: 'OpenJS Foundation logo',
src: 'img/openjs_foundation-logo.svg',
href: 'https://openjsf.org/'
},
style: 'dark',
links: [
{
title: 'Resources',
items: [
{
label: 'Documentation',
href: 'https://loopback.io/doc/en/lb4',
},
{
label: 'API Docs',
href: 'https://loopback.io/doc/en/lb4/apidocs.index.html'
}
],
},
{
title: 'Community',
items: [
{
label: 'Twitter',
href: 'https://twitter.com/strongloop',
},
{
label: 'Slack Workspace',
href: 'https://join.slack.com/t/loopbackio/shared_invite/zt-8lbow73r-SKAKz61Vdao~_rGf91pcsw',
},
{
label: 'LinkedIn Community',
href: 'https://www.linkedin.com/groups/5046525/',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/',
},
{
label: 'GitHub',
href: 'https://github.com/loopbackio/loopback-next',
},
],
},
],
copyright: `<p>Copyright <a href="https://openjsf.org">OpenJS Foundation</a> and LoopBack contributors. All rights reserved. The <a href="https://openjsf.org">OpenJS Foundation</a> has registered trademarks and uses trademarks. For a list of trademarks of the <a href="https://openjsf.org">OpenJS Foundation</a>, please see our <a href="https://trademark-policy.openjsf.org">Trademark Policy</a> and <a href="https://trademark-list.openjsf.org">Trademark List</a>. Trademarks and logos not indicated on the <a href="https://trademark-list.openjsf.org">list of OpenJS Foundation trademarks</a> are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.</p>
<p><a href="https://openjsf.org">The OpenJS Foundation</a> | <a href="https://terms-of-use.openjsf.org">Terms of Use</a> | <a href="https://privacy-policy.openjsf.org">Privacy Policy</a> | <a href="https://bylaws.openjsf.org">Bylaws</a> | <a href="https://code-of-conduct.openjsf.org">Code of Conduct</a> | <a href="https://trademark-policy.openjsf.org">Trademark Policy</a> | <a href="https://trademark-list.openjsf.org">Trademark List</a> | <a href="https://www.linuxfoundation.org/cookies">Cookie Policy</a></p>`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;