-
Notifications
You must be signed in to change notification settings - Fork 4
/
docusaurus.config.js
170 lines (159 loc) · 5.45 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
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
165
166
167
168
169
170
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import { themes as prismThemes } from 'prism-react-renderer';
const path = require('path')
// const {useColorMode} = require('@docusaurus/theme-common');
// const {colorMode} = useColorMode()
// console.log(colorMode)
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Hyperledger Identus',
tagline: 'Hyperledger Identus Docs',
// url: 'https://docs.atalaprism.io',
url: 'https://hyperledger.github.io/',
baseUrl: '/identus-docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'Hyperledger',
projectName: 'identus-docs',
markdown: {
mermaid: true,
},
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./documentation/docs/sidebars.js'),
path: './documentation/docs'
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
})
],
/**
* @type {import('redocusaurus').PresetEntry}
*/
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'identus-cloud-agent/cloud-agent/service/api/http/cloud-agent-openapi-spec.yaml',
route: '/agent-api/',
}
]
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'tutorials',
path: 'identus-cloud-agent/docs/docusaurus',
routeBasePath: 'tutorials',
sidebarPath: require.resolve('./identus-cloud-agent/docs/docusaurus/sidebars.js'),
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'adrs',
path: 'documentation/adrs',
routeBasePath: 'adrs',
sidebarPath: require.resolve('./documentation/adrs/sidebars.js'),
},
],
require.resolve('docusaurus-lunr-search'),
[
'@docusaurus/plugin-content-docs',
{
id: 'identus-edge-agent-sdk-ts',
path: 'identus-edge-agent-sdk-ts/docs',
routeBasePath: 'identus-edge-agent-sdk-ts',
sidebarPath: require.resolve('./identus-edge-agent-sdk-ts/docs/sidebars.js'),
},
]
],
themes: ["docusaurus-theme-openapi-docs", '@docusaurus/theme-mermaid', "docusaurus-theme-redoc"],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
{
navbar: {
logo: {
alt: ' Identus logo',
src: 'img/identus-navbar-light.png',
srcDark: "img/identus-navbar-light.png",
},
items: [
{
type: 'doc',
docId: 'getting-started',
position: 'left',
label: 'Docs',
},
{
to: '/tutorials/',
label: 'Tutorials',
position: 'left',
activeBaseRegex: `/tutorials/`
},
{
to: '/adrs/',
label: 'ADRs',
position: 'left',
activeBaseRegex: `/adrs/`
},
{
to: '/agent-api/',
label: 'Agent API',
activeBaseRegex: `/agent-api/`
},
{
type: 'dropdown',
label: 'SDKs',
position: 'left',
items: [
{
label: 'Edge Agent SDK Swift',
href: 'https://hyperledger.github.io/identus-edge-agent-sdk-swift/documentation/edgeagentsdk/',
},
{
to: '/identus-edge-agent-sdk-ts/sdk',
label: 'Edge Agent SDK Typescript',
activeBaseRegex: `/identus-edge-agent-sdk-ts/sdk`
},
{
label: 'Edge Agent SDK Kotlin Multiplatform',
href: 'https://hyperledger.github.io/identus-edge-agent-sdk-kmp/',
},
],
},
{
label: 'PRISM DID Spec',
href: 'https://github.com/input-output-hk/prism-did-method-spec/blob/main/w3c-spec/PRISM-method.md',
},
],
},
footer: {
copyright: `Hyperledger Identus CC BY 4.0`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
},
};
module.exports = config;