Skip to content

Commit 81ffb76

Browse files
authored
Merge pull request #18 from glandjs/develop
feat: add @glandjs/emitter documention
2 parents 635420d + cf982a3 commit 81ffb76

File tree

2 files changed

+549
-105
lines changed

2 files changed

+549
-105
lines changed

astro.config.mjs

Lines changed: 116 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,197 +1,208 @@
1-
import { defineConfig } from "astro/config";
2-
import starlight from "@astrojs/starlight";
3-
import tailwind from "@astrojs/tailwind";
1+
import { defineConfig } from 'astro/config'
2+
import starlight from '@astrojs/starlight'
3+
import tailwind from '@astrojs/tailwind'
44

55
export default defineConfig({
6-
site: "https://glandjs.github.io",
7-
base: "/",
6+
site: 'https://glandjs.github.io',
7+
base: '/',
88
integrations: [
99
tailwind({
10-
applyBaseStyles: false
10+
applyBaseStyles: false,
1111
}),
1212
starlight({
13-
title: "Gland",
13+
title: 'Gland',
1414
logo: {
15-
src: "./src/assets/logo.svg",
16-
alt: "Gland Documentation"
15+
src: './src/assets/logo.svg',
16+
alt: 'Gland Documentation',
1717
},
1818
social: {
19-
github: "https://github.com/glandjs/docs",
20-
discord: "https://discord.gg/glandjs",
21-
npm: "https://www.npmjs.com/package/@glandjs/core"
19+
github: 'https://github.com/glandjs/docs',
20+
discord: 'https://discord.gg/glandjs',
21+
npm: 'https://www.npmjs.com/package/@glandjs/core',
2222
},
2323
expressiveCode: {
24-
themes: ["github-dark-default"],
24+
themes: ['github-dark-default'],
2525
styleOverrides: {
26-
borderRadius: "0.5rem"
27-
}
26+
borderRadius: '0.5rem',
27+
},
2828
},
29-
customCss: ["@styles/tailwind.css"],
29+
customCss: ['@styles/tailwind.css'],
3030
components: {
31-
Header: "@components/Header.astro",
32-
ContentPanel: "@components/ContentPanel.astro",
33-
PageTitle: "@components/PageTitle.astro"
31+
Header: '@components/Header.astro',
32+
ContentPanel: '@components/ContentPanel.astro',
33+
PageTitle: '@components/PageTitle.astro',
3434
},
3535
head: [
3636
{
37-
tag: "link",
37+
tag: 'link',
3838
attrs: {
39-
rel: "preconnect",
40-
href: "https://fonts.googleapis.com"
41-
}
39+
rel: 'preconnect',
40+
href: 'https://fonts.googleapis.com',
41+
},
4242
},
4343
{
44-
tag: "link",
44+
tag: 'link',
4545
attrs: {
46-
rel: "preconnect",
47-
href: "https://fonts.gstatic.com",
48-
crossorigin: "anonymous"
49-
}
46+
rel: 'preconnect',
47+
href: 'https://fonts.gstatic.com',
48+
crossorigin: 'anonymous',
49+
},
5050
},
5151
{
52-
tag: "link",
52+
tag: 'link',
5353
attrs: {
54-
rel: "stylesheet",
55-
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
56-
}
54+
rel: 'stylesheet',
55+
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap',
56+
},
5757
},
5858
{
59-
tag: "link",
59+
tag: 'link',
6060
attrs: {
61-
rel: "stylesheet",
62-
href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap"
63-
}
64-
}
61+
rel: 'stylesheet',
62+
href: 'https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap',
63+
},
64+
},
6565
],
6666
sidebar: [
6767
{
68-
label: "Introduction",
68+
label: 'Packages',
69+
collapsed: false,
70+
items: [
71+
{
72+
label: 'Emitter',
73+
link: '/packages/emitter',
74+
badge: 'New',
75+
},
76+
],
77+
},
78+
{
79+
label: 'Introduction',
6980
collapsed: false,
7081
items: [
7182
{
72-
label: "Getting Started",
73-
link: "/getting-started",
74-
badge: "New"
83+
label: 'Getting Started',
84+
link: '/getting-started',
85+
badge: 'New',
7586
},
7687
{
77-
label: "Installation",
78-
link: "/installation"
88+
label: 'Installation',
89+
link: '/installation',
7990
},
8091
{
81-
label: "Quickstart",
82-
link: "/quickstart"
83-
}
84-
]
92+
label: 'Quickstart',
93+
link: '/quickstart',
94+
},
95+
],
8596
},
8697
{
87-
label: "Core Concepts",
98+
label: 'Core Concepts',
8899
collapsed: false,
89100
items: [
90101
{
91-
label: "Event-Driven Architecture",
92-
link: "/concepts/event-driven"
102+
label: 'Event-Driven Architecture',
103+
link: '/concepts/event-driven',
93104
},
94105
{
95-
label: "Channels",
96-
link: "/concepts/channels"
106+
label: 'Channels',
107+
link: '/concepts/channels',
97108
},
98109
{
99-
label: "Controllers",
100-
link: "/concepts/controllers"
110+
label: 'Controllers',
111+
link: '/concepts/controllers',
101112
},
102113
{
103-
label: "Modules",
104-
link: "/concepts/modules"
105-
}
106-
]
114+
label: 'Modules',
115+
link: '/concepts/modules',
116+
},
117+
],
107118
},
108119
{
109-
label: "Guides",
120+
label: 'Guides',
110121
collapsed: true,
111122
items: [
112123
{
113-
label: "Basic Usage",
114-
link: "/guides/basic-usage"
124+
label: 'Basic Usage',
125+
link: '/guides/basic-usage',
115126
},
116127
{
117-
label: "Dependency Injection",
118-
link: "/guides/dependency-injection"
128+
label: 'Dependency Injection',
129+
link: '/guides/dependency-injection',
119130
},
120131
{
121-
label: "Advanced Features",
122-
link: "/guides/advanced-features"
132+
label: 'Advanced Features',
133+
link: '/guides/advanced-features',
123134
},
124135
{
125-
label: "Best Practices",
126-
link: "/guides/best-practices"
127-
}
128-
]
136+
label: 'Best Practices',
137+
link: '/guides/best-practices',
138+
},
139+
],
129140
},
130141
{
131-
label: "HTTP Integration",
142+
label: 'HTTP Integration',
132143
collapsed: true,
133144
items: [
134145
{
135-
label: "Express Integration",
136-
link: "/http/express"
146+
label: 'Express Integration',
147+
link: '/http/express',
137148
},
138149
{
139-
label: "Fastify Integration",
140-
link: "/http/fastify"
150+
label: 'Fastify Integration',
151+
link: '/http/fastify',
141152
},
142153
{
143-
label: "Custom Integrations",
144-
link: "/http/custom"
145-
}
146-
]
154+
label: 'Custom Integrations',
155+
link: '/http/custom',
156+
},
157+
],
147158
},
148159
{
149-
label: "API Reference",
160+
label: 'API Reference',
150161
collapsed: true,
151162
items: [
152163
{
153-
label: "Core API",
154-
link: "/api/core"
164+
label: 'Core API',
165+
link: '/api/core',
155166
},
156167
{
157-
label: "Utilities",
158-
link: "/api/utilities"
168+
label: 'Utilities',
169+
link: '/api/utilities',
159170
},
160171
{
161-
label: "Configuration",
162-
link: "/api/configuration"
172+
label: 'Configuration',
173+
link: '/api/configuration',
163174
},
164175
{
165-
label: "Decorators",
166-
link: "/api/decorators"
167-
}
168-
]
176+
label: 'Decorators',
177+
link: '/api/decorators',
178+
},
179+
],
169180
},
170181
{
171-
label: "Resources",
182+
label: 'Resources',
172183
collapsed: true,
173184
items: [
174185
{
175-
label: "FAQ",
176-
link: "/resources/faq"
186+
label: 'FAQ',
187+
link: '/resources/faq',
177188
},
178189
{
179-
label: "Examples",
180-
link: "/resources/examples"
190+
label: 'Examples',
191+
link: '/resources/examples',
181192
},
182193
{
183-
label: "Community",
184-
link: "/resources/community"
194+
label: 'Community',
195+
link: '/resources/community',
185196
},
186197
{
187-
label: "Contributing",
188-
link: "/resources/contributing"
189-
}
190-
]
191-
}
198+
label: 'Contributing',
199+
link: '/resources/contributing',
200+
},
201+
],
202+
},
192203
],
193204
lastUpdated: true,
194-
pagination: true
195-
})
196-
]
197-
});
205+
pagination: true,
206+
}),
207+
],
208+
})

0 commit comments

Comments
 (0)