-
Notifications
You must be signed in to change notification settings - Fork 181
/
Copy pathdocusaurus.config.js
82 lines (78 loc) · 2.05 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
// THIS IS A TEST CONFIG FILE FOR THE SPEC TESTS
const path = require('path');
const docusaurusPlugin = path.join(__dirname, 'dist');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'My Site',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
plugins: [
[
docusaurusPlugin,
{
tsconfig: './test/stubs/tsconfig.json',
entryPoints: ['./test/stubs/src/*'],
out: './test/out/default',
readme: 'none',
cleanOutputDir: true,
disableSources: true,
hidePageHeader: true,
hideBreadcrumbs: true,
plugin: ['./frontmatter-plugin.mjs'],
logLevel: 'Warn',
},
],
[
docusaurusPlugin,
{
id: 'api-2',
tsconfig: './test/stubs/tsconfig.json',
entryPoints: ['./test/stubs/src/module-1.ts'],
out: './test/out/global-members',
readme: 'none',
sidebar: { pretty: true, deprecatedItemClassName: 'is-deprecated' },
fileExtension: '.mdx',
disableSources: true,
hidePageHeader: true,
hideBreadcrumbs: true,
logLevel: 'Warn',
},
],
[
docusaurusPlugin,
{
id: 'api-3',
tsconfig: './test/stubs/tsconfig.json',
entryPoints: ['./test/stubs/src/links.ts'],
out: './test/out/links',
readme: 'none',
sidebar: { pretty: true },
outputFileStrategy: 'modules',
disableSources: true,
hidePageHeader: true,
hideBreadcrumbs: true,
logLevel: 'Warn',
},
],
[
docusaurusPlugin,
{
id: 'api-4',
tsconfig: './test/stubs/tsconfig.json',
entryPoints: ['./test/stubs/src/module-1.ts'],
out: './test/out/typescript',
sidebar: {
typescript: true,
pretty: true,
},
readme: 'none',
cleanOutputDir: true,
disableSources: true,
hidePageHeader: true,
hideBreadcrumbs: true,
logLevel: 'Warn',
},
],
],
};
module.exports = config;