This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
182 lines (167 loc) · 5.42 KB
/
astro.config.mjs
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
171
172
173
174
175
176
177
178
179
180
181
182
import { defineConfig, passthroughImageService } from 'astro/config';
import starlight from '@astrojs/starlight';
import deno from "@deno/astro-adapter";
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi'
// https://astro.build/config
export default defineConfig({
output: "hybrid",
adapter: deno(),
integrations: [
starlight({
title: 'CREDEBL Docs',
logo: {
alt: 'CREDEBL Logo',
src: './src/assets/CREDEBL_ICON.svg',
},
defaultLocale: 'root',
locales: {
// English docs in `src/content/docs/en/`
root: {
label: 'English',
lang: 'en', // lang is required for root locales
},
// zh: {
// label: 'Dzongkha (Bhutan)',
// lang: 'dz_BT',
// },
// hi: {
// label: 'हिंदी (India)',
// lang: 'hi',
// },
},
social: {
github: 'https://github.com/credebl',
twitter: 'https://twitter.com/credebl',
discord: 'https://discord.gg/w4hnQT7NJG',
youtube: 'https://www.youtube.com/@blocksterlabs5489',
},
plugins: [
// Generate the OpenAPI documentation pages.
starlightOpenAPI([
{
base: 'credo-api',
label: 'Credo Agent',
schema: './src/assets/schemas/credoSwagger.yaml',
},
{
base: 'platform-api',
label: 'Credebl Platform API',
schema: './src/assets/schemas/platformSwagger.yaml',
},
]),
],
sidebar: [
{
collapsed: true,
label: 'Intro',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Intro to SSI', link: '/en/intro/intro-to-ssi/' },
{ label: 'What is CREDEBL?', link: '/en/intro/what-is-credebl/' },
{ label: 'Architecture', link: '/en/intro/architecture/' },
//{ label: 'Key Concepts', link: '/en/intro/key-concepts/' },
],
},
{
collapsed: true,
label: "User Guide",
items: [
{ label: "Getting started", "link": "/en/userguide/getting-started" },
{ label: "Studio UI overview", "link": "/en/userguide/ui-flow/" },
{ label: "CREDEBL APIs guide", "link": "/en/userguide/api-flow/" },
{
collapsed: true,
label: "API Reference",
items: [
...openAPISidebarGroups,
]
}
]
},
{
collapsed: true,
label: 'Developers Guide',
items: [
// Each item here is one entry in the navigation menu.
{
collapsed: true,
label: "Installation",
items: [
{
collapsed: true,
label: "Prerequisites",
items: [
{ label: "Prerequisites", "link": "/en/developersguide/setup/prerequisites/prerequisitesoftwares/" },
{ label: "Keycloak", "link": "/en/developersguide/setup/prerequisites/keycloak/" },
{ label: "NATS", "link": "/en/developersguide/setup/prerequisites/nats/" },
{ label: "REDIS", "link": "/en/developersguide/setup/prerequisites/redis/" },
{ label: "PostgreSQL", "link": "/en/developersguide/setup/prerequisites/postgres/" },
]
},
{
collapsed: true,
label: "Platform",
items: [
{
collapsed: true,
label: "Installation",
items: [
{ label: "Using NPM", "link": "/en/developersguide/setup/platform/basicsetup/npm/" },
{ label: "Using Docker", "link": "/en/developersguide/setup/platform/basicsetup/docker/" },
]
},
{ label: "Environment Variables", "link": "/en/developersguide/setup/platform/envsetup/" },
{ label: "References", "link": "/en/developersguide/setup/platform/references/" },
]
},
{
collapsed: true,
label: "Agent",
items: [
{ label: "Overview", "link": "/en/developersguide/setup/agent/overview/" },
{
collapsed: true,
label: "Installation",
items: [
{ label: "Using NPM", "link": "/en/developersguide/setup/agent/basicsetup/npm/" },
{ label: "Using Docker", "link": "/en/developersguide/setup/agent/basicsetup/docker/" },
]
},
{ label: "Environment Variables", "link": "/en/developersguide/setup/agent/envsetup/" },
{ label: "References", "link": "/en/developersguide/setup/agent/references/" },
]
},
{
collapsed: true,
label: "Studio",
items: [
{
collapsed: true,
label: "Installation",
items: [
{ label: "Using NPM", "link": "/en/developersguide/setup/studio/basicsetup/npm/" },
{ label: "Using Docker", "link": "/en/developersguide/setup/studio/basicsetup/docker/" },
]
},
{ label: "Environment Variables", "link": "/en/developersguide/setup/studio/envsetup/" },
{ label: "References", "link": "/en/developersguide/setup/studio/references/" },
]
},
]
},
{ label: "Troubleshooting", "link": "/en/developersguide/troubleshooting/" },
],
},
{ label: "Support", "link": "/en/support/" },
{ label: "FAQ", "link": "/en/faq" },
{ label: "License", "link": "/en/copyright-and-license/" },
],
}),
],
// Process images with sharp: https://docs.astro.build/en/guides/assets/#using-sharp
// image: { service: { entrypoint: 'astro/assets/services/sharp' } },
// Changing image processing to support server build
image: {
service: passthroughImageService()
}
});