-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config-blog-only.js
62 lines (61 loc) · 1.63 KB
/
docusaurus.config-blog-only.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
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @type {import('@docusaurus/types').Config} */
export default {
title: 'Docusaurus blog only!',
tagline: 'Build optimized websites quickly, focus on your content',
organizationName: 'facebook',
projectName: 'docusaurus',
baseUrl: '/blog-only/',
url: 'https://docusaurus.io',
// We can only warn now, since we have blog pages linking to non-blog pages...
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/docusaurus.ico',
themes: ['live-codeblock'],
plugins: ['ideal-image'],
presets: [
[
'classic',
{
docs: false,
pages: false,
blog: {
routeBasePath: '/',
path: 'blog',
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/',
postsPerPage: 3,
feedOptions: {
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`,
},
},
theme: {
customCss: './src/css/custom.css',
},
},
],
],
themeConfig: {
image: 'img/docusaurus-social-card.jpg',
algolia: {
appId: 'X1Z85QJPUV',
apiKey: 'bf7211c161e8205da2f933a02534105a',
indexName: 'docusaurus-2',
contextualSearch: true,
},
navbar: {
hideOnScroll: true,
title: 'Docusaurus',
logo: {
alt: 'Docusaurus Logo',
src: 'img/docusaurus.svg',
srcDark: 'img/docusaurus_keytar.svg',
},
},
},
};