This repository was archived by the owner on Jan 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
135 lines (134 loc) · 3.45 KB
/
docusaurus.config.js
File metadata and controls
135 lines (134 loc) · 3.45 KB
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
const darkCodeTheme = require("prism-react-renderer/themes/dracula")
const lightCodeTheme = require("prism-react-renderer/themes/github")
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "MobilePay Developer",
tagline: "MobilePay Developer",
url: "https://developer.mobilepay.dk",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "MobilePayDev",
projectName: "MobilePayDev.github.io",
trailingSlash: false,
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
explicitSearchResultPath: true,
highlightSearchTermsOnTargetPage: true,
},
],
],
themeConfig: {
navbar: {
title: "Developer",
logo: {
alt: "MobilePay",
src: "img/logo-blue.svg",
srcDark: "img/logo-white.svg",
href: "/",
},
items: [
{
label: 'App Payments Facade',
position: 'left',
to: '/docs/app-payments/',
},
{
label: 'Subscriptions Facade',
position: 'left',
to: '/docs/subscriptions',
},
{
label: 'API references',
position: 'left',
items: [
{
label: 'App payments Facade',
to: '/api/app-payments',
},
{
label: 'Subscriptions Facade',
to: '/api/subscriptions',
},
],
},
{
href: "https://developer.vippsmobilepay.com/",
label: "Vipps MobilePay Documentation",
position: "right",
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} MobilePay. Built with Docusaurus.`,
},
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["java", "kotlin", "swift", "scala"],
},
},
presets: [
[
"@docusaurus/preset-classic",
{
googleAnalytics: {
trackingID: "UA-206187508-1",
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
docs: {
routeBasePath: 'docs',
path: 'docs',
sidebarPath: require.resolve("./sidebars.js")
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
[
"redocusaurus",
{
// Plugin Options for loading OpenAPI files
specs: [
{
id: 'payments-api-yaml', // KEEP FOR FACADE
spec: "openapi/app_payments_api.yaml",
route: "/api/app-payments",
},
{
id: 'webhooks-api-yaml', // KEEP FOR FACADE
spec: "openapi/webhooks.yaml",
route: "/api/wehooks",
},
{
id: 'subscriptions-api-yaml', // KEEP FOR FACADE
spec: "openapi/subscriptions.yaml",
route: "/api/subscriptions",
},
],
// Theme Options for modifying how redoc renders them
theme: {
// Change with your site colors
primaryColor: "#7b93ff",
options: {
disableSearch: true,
hideDownloadButton: true,
requiredPropsFirst: true
},
},
},
],
],
}