-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdocs.js
69 lines (68 loc) · 1.61 KB
/
docs.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
const docs = [
[
'@docusaurus/plugin-content-docs',
{
id: 'platform',
path: 'platform',
routeBasePath: 'platform',
sidebarPath: require.resolve('./sidebarPlatform.js'),
lastVersion: 'current',
editUrl: 'https://github.com/tolgee/documentation/tree/main',
includeCurrentVersion: true,
versions: {
current: {
banner: 'none',
label: '3.x.x',
},
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'js-sdk',
path: 'js-sdk',
routeBasePath: 'js-sdk',
sidebarPath: require.resolve('./sidebarJsSdk.js'),
lastVersion: 'current',
includeCurrentVersion: true,
editUrl: 'https://github.com/tolgee/documentation/tree/main',
versions: {
current: {
banner: 'none',
label: '6.x.x',
},
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'tolgee-cli',
path: 'tolgee-cli',
routeBasePath: 'tolgee-cli',
sidebarPath: require.resolve('./sidebarTolgeeCli.js'),
editUrl: 'https://github.com/tolgee/documentation/tree/main',
lastVersion: 'current',
versions: {
current: {
banner: 'none',
label: '2.x.x',
},
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'rest-api',
path: 'api',
breadcrumbs: true,
routeBasePath: 'api',
include: ['**/*.md', '**/*.mdx'],
sidebarPath: require.resolve('./apiSpecGeneration/sidebarApi.js'),
docItemComponent: '@theme/ApiItem',
},
],
];
module.exports = { docs };