forked from AlexanderWebb88/wandisco-documentation-ldm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
140 lines (138 loc) · 4.66 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
const versions = require('./versions.json');
const currentVersion = '1.8.3';
module.exports = {
title: 'LiveData Migrator',
tagline: 'WANdisco LiveData Migrator Documentation',
url: 'https://wandisco.github.io/wandisco-documentation-ldm/',
//url: 'http://localhost/',
baseUrl: '/wandisco-documentation-ldm/',
//baseUrl: '/',
favicon: 'img/favicon.png',
organizationName: 'wandisco', // Usually your GitHub org/user name.
projectName: 'wandisco-documentation-ldm', // Usually your repo name.
themeConfig: {
prism: {
theme: require('prism-react-renderer/themes/github'),
},
navbar: {
title: 'WANdisco LiveData Migrator',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
to: 'docs/about',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{
type: 'docsVersionDropdown',
position: 'right',
dropdownActiveClassDisabled: true,
//dropdownItemsAfter: [
//{
// to: '/versions',
// label: 'All versions',
//},
//],
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} WANdisco Inc.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
/**
* Path to data on filesystem relative to site dir.
*/
path: 'docs',
/**
* Path to sidebar configuration for showing a list of markdown pages.
* Warning: will change
*/
sidebarPath: require.resolve('./sidebars.js'),
/**
* URL for editing a doc in the website repo.
* Example: 'https://github.com/facebook/docusaurus/edit/master/website/'
*/
//editUrl: 'https://github.com/WANdisco/wandisco-documentation-ldm/tree/master/docs',
/**
* Whether to display the author who last updated the doc.
*/
showLastUpdateAuthor: false,
/**
* Whether to display the last date the doc was updated.
*/
showLastUpdateTime: false,
/**
* Remark and Rehype plugins passed to MDX
*/
remarkPlugins: [
/* require('remark-math') */
],
/**
* By default, versioning is enabled on versioned sites.
* This is a way to explicitly disable the versioning feature.
*/
disableVersioning: false,
/**
* The last version is the one we navigate to in priority on versioned sites
* It is the one displayed by default in docs navbar items
* By default, the last version is the first one to appear in versions.json
* By default, the last version is at the "root" (docs have path=/docs/myDoc)
* Note: it is possible to configure the path and label of the last version
* Tip: using lastVersion: 'current' make sense in many cases
*/
lastVersion: 'current',
onlyIncludeVersions: ['current', ...versions.slice(0, 4)],
/**
* The docusaurus versioning defaults don't make sense for all projects
* This gives the ability customize the label and path of each version
* You may not like that default version
*/
versions: {
current: {
label: `${currentVersion} (latest)`,
},
},
// It is recommended to set document id as docs home page (`docs/` path).
//homePageId: 'about',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
/**
* URL route for the docs section of your site.
* *DO NOT* include a trailing slash.
*/
//routeBasePath: 'docs',
include: ['**/*.md', '**/*.mdx'], // Extensions to include.
/**
* Theme components used by the docs pages
*/
docLayoutComponent: '@theme/DocPage',
docItemComponent: '@theme/DocItem',
rehypePlugins: [],
/**
* Custom Remark and Rehype plugins passed to MDX before
* the default Docusaurus Remark and Rehype plugins.
*/
beforeDefaultRemarkPlugins: [],
beforeDefaultRehypePlugins: [],
/**
* Sometimes you only want to include a subset of all available versions.
* Tip: limit to 2 or 3 versions to improve startup and build time in dev and deploy previews
*/
onlyIncludeVersions: undefined, // ex: ["current", "1.0.0", "2.0.0"]
},
],
],
};