forked from rohit-gohri/redocusaurus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
103 lines (101 loc) · 2.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
/**
* @type {Partial<import('@docusaurus/types').DocusaurusConfig>}
*/
const config = {
presets: [
[
'@docusaurus/preset-classic',
{
debug: Boolean(process.env.DEBUG || process.env.CI),
},
],
[
'redocusaurus',
{
debug: Boolean(process.env.DEBUG || process.env.CI),
specs: [
{
specUrl: 'https://redocly.github.io/redoc/openapi.yaml',
routePath: '/using-spec-url/',
},
{
specUrl: `${process.env.DEPLOY_BASE_URL || '/'}openapi-page.yaml`,
routePath: '/using-relative-url/',
},
{
spec: 'openapi.yaml',
routePath: '/using-spec-yaml/',
},
],
theme: {
primaryColor: '#1890ff',
redocOptions: { hideDownloadButton: false },
},
},
],
],
/** ************ Rest of your Docusaurus Config *********** */
title: 'Redocusaurus',
tagline: 'Integrate Redoc easily into your Docusaurus Site',
customFields: {
meta: {
description: 'Integrate Redoc easily into your Docusaurus Site',
},
},
url: process.env.DEPLOY_PRIME_URL || 'http://localhost:5000', // Your website URL
baseUrl: process.env.DEPLOY_BASE_URL || '/', // Base URL for your project */
favicon: 'img/favicon.ico',
themeConfig: {
navbar: {
title: 'Redocusaurus',
items: [
{
label: 'Docs',
position: 'left',
to: '/',
},
],
},
footer: {
logo: {
alt: 'Redocusaurus Logo',
src: 'img/logoDark.png',
},
style: 'dark',
links: [
{
title: 'Modules',
items: [
{
label: 'Redocusaurus',
href: 'https://www.npmjs.com/package/redocusaurus/',
},
{
label: 'Docusaurus Theme',
href: 'https://www.npmjs.com/package/docusaurus-theme-redoc/',
},
{
label: 'Docusaurus Plugin',
href: 'https://www.npmjs.com/package/docusaurus-plugin-redoc/',
},
],
},
{
title: 'More',
items: [
{
label: 'Github',
href: 'https://github.com/rohit-gohri/redocusaurus/',
},
{
label: 'Blog',
href: 'https://rohit.page',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Rohit Gohri. Built with <a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">Docusaurus</a>.`,
},
},
};
module.exports = config;