-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.ts
164 lines (162 loc) · 4.6 KB
/
docusaurus.config.ts
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
import type {Config} from '@docusaurus/types';
import * as path from 'path';
import {themes} from 'prism-react-renderer';
const config: Config = {
title: 'MONEI Documentation',
url: 'https://docs.monei.com',
tagline: 'Explore our guides and examples to integrate MONEI',
trailingSlash: true,
baseUrl: '/',
favicon: 'https://assets.monei.com/images/icon.png',
future: {
experimental_faster: true
},
themeConfig: {
colorMode: {
defaultMode: 'light'
},
prism: {
theme: themes.nightOwl,
additionalLanguages: ['php', 'bash']
},
algolia: {
appId: '8G87BCQYSU',
apiKey: '020dc2fc411d19f9f9dfe9d60c527139',
indexName: 'monei',
contextualSearch: true,
searchParameters: {}
},
navbar: {
title: 'MONEI',
hideOnScroll: false,
logo: {
alt: 'MONEI',
src: 'https://assets.monei.com/images/logo.svg'
},
items: [
{
to: 'getting-started/',
label: 'Documentation',
position: 'right',
activeBaseRegex: '^/(?!apis/)'
},
{
type: 'dropdown',
label: 'APIs',
position: 'right',
activeBaseRegex: '^/apis/rest/',
items: [
{
label: 'REST API',
to: 'apis/rest/'
},
{
label: 'GraphQL API',
to: 'apis/graphql/'
}
]
},
{
to: 'https://support.monei.com',
label: 'Support',
position: 'right'
},
{
to: 'https://dashboard.monei.com',
label: 'Dashboard',
position: 'right'
}
]
},
languageTabs: [
{
highlight: 'javascript',
language: 'javascript',
logoClass: 'javascript',
variants: ['node']
},
{
highlight: 'python',
language: 'python',
logoClass: 'python',
variants: ['python']
},
{
highlight: 'php',
language: 'php',
logoClass: 'php',
variants: ['php']
}
],
footer: {
style: 'dark',
copyright: `<p>Copyright © ${new Date().getFullYear()} MONEI — <a href="https://aws.amazon.com/es/blogs/startups/serverless-architecture-powers-moneis-fast-secure-and-scalable-digital-payment-solutions/" target="_blank" rel="noreferrer noopener">Winner of the AWS Startup Architecture Challenge 🏆</a></p><div class="footer-legal">MONEI DIGITAL PAYMENTS SL - ESB02660926 Palestina, 1, Entreplanta, 29007, Málaga, Spain BORME Registry Details: Registro Mercantil de MÁLAGA T 5998, L 4905, F 54, S 8,H MA158775, I/A 1 (14.01.21). MONEI is a Payments Institution regulated by Banco de España with license number: 6911, and a Swift member with BIC number: MDIPES22. MONEI is member of the European Payments Council under the SRTP group.</div>`
}
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
id: 'docs',
path: 'docs',
routeBasePath: '/',
docItemComponent: '@theme/ApiItem',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/MONEI/docs/edit/master/'
},
theme: {
customCss: require.resolve('./src/css/custom.css')
},
sitemap: {
changefreq: 'daily',
priority: 0.7
},
googleTagManager: {
containerId: 'GTM-NHS56QJ'
}
}
]
],
plugins: [
path.resolve(__dirname, './plugins/inject-scripts.js'),
path.resolve(__dirname, './plugins/fix-docusaurus-navbar.js'),
path.resolve(__dirname, './plugins/fix-auth-openapi.js'),
[
'docusaurus-plugin-openapi-docs',
{
id: 'rest',
docsPluginId: 'rest',
config: {
api: {
specPath: 'openapi.json',
outputDir: 'docs/apis/rest',
downloadUrl: 'https://js.monei.com/api/v1/openapi.json',
hideSendButton: true,
showExtensions: true,
sidebarOptions: {
groupPathsBy: 'tag',
categoryLinkSource: 'tag'
},
showSchemas: true
}
}
}
],
[
'@graphql-markdown/docusaurus',
{
schema: './schema.graphql',
rootPath: './docs/apis',
baseURL: 'graphql',
linkRoot: '/docs/apis/',
homepage: './docs/apis/graphql/index.md',
loaders: {
GraphQLFileLoader: '@graphql-tools/graphql-file-loader'
}
}
]
],
themes: ['docusaurus-theme-openapi-docs']
};
export default config;