forked from mscerts/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
113 lines (110 loc) · 3.55 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog'
const site = 'https://certs.msfthub.wiki/';
export default defineConfig({
redirects: {
'/office': '/wiki',
'/guide': '/guide/introduction',
'/m365': '/wiki',
'/microsoft365': '/wiki',
'/azure': '/wiki',
'/power': '/wiki',
'/powerplatform': '/wiki',
'/security': '/wiki',
'/dynamics': '/wiki',
'/dynamics365': '/wiki',
},
integrations: [
starlight({
plugins: [
starlightBlog({
authors: {
nighthouse: {
name: 'nighthouse',
title: 'Content & Site Editor',
picture: 'https://avatars.githubusercontent.com/u/121154936?v=4',
url: 'https://github.com/n1ghthouse',
},
teriaavibes: {
name: 'teriaavibes',
title: 'Content Editor',
picture: 'https://avatars.githubusercontent.com/u/68708075?v=4',
url: 'https://github.com/teriaavibes',
},
},
}),
],
title: 'Microsoft Certification Hub',
head: [
{
tag: 'meta',
attrs: { property: 'og:image', content: site 'og.jpg' },
},
{
tag: 'meta',
attrs: { property: 'twitter:image', content: site 'og.jpg' },
},
{
tag: 'meta',
attrs: { property: 'og:url', content: 'https://certs.msfthub.wiki/' },
},
],
editLink: {
baseUrl: 'https://github.com/mscerts/hub/edit/main/',
},
logo: {
light: '/src/assets/msftcertblack.svg',
dark: '/src/assets/msftcertwhite.svg',
replacesTitle: true,
},
customCss: process.env.NO_GRADIENTS ? [ './src/custom.css'] : ['./src/landing.css', './src/custom.css'],
social: {
github: 'https://github.com/mscerts/hub',
discord: 'https://discord.gg/microsoft-certification-study-group-676990910176821270',
},
sidebar: [
{
label: 'Updates Blog',
link: '/blog',
},
{
label: 'Guide',
items: [
{ label: 'Introduction', link: '/guide/introduction/' },
{ label: 'Overview', link: '/guide/overview/' },
{ label: 'Your Certification Profile', link: '/guide/certificationprofile/' },
{ label: 'Scheduling an Exam', link: '/guide/schedulingexam/' },
{ label: 'Certification Dashboard', link: '/guide/certificationdashboard/' },
{ label: 'Taking The Exam', link: '/guide/takingtheexams/' },
{ label: 'Official Study Materials', link: '/guide/officialstudymaterials/' },
{ label: 'Opportunities for Students', link: '/guide/studentopportunities/' },
{ label: 'Certification Renewal', link: '/guide/certificationrenewal/' },
{ label: 'Microsoft Partner Employees', link: '/guide/partneremployees/' },
],
},
{
label: 'Voucher Offers',
autogenerate: { directory: 'vouchers' },
},
{
label: 'Wiki Collection',
link: '/wiki',
},
{
label: 'Exams',
collapsed: false,
items: [
{ label: 'Azure', collapsed:true, autogenerate: { directory: 'azure', collaped:true },},
{ label: 'Office', collapsed:true, autogenerate: { directory: 'office', collaped:true },},
{ label: 'Microsoft 365', collapsed:true, autogenerate: { directory: 'microsoft365', collaped:true },},
{ label: 'Dynamics 365', collapsed:true, autogenerate: { directory: 'dynamics', collaped:true },},
{ label: 'Power Platform', collapsed:true, autogenerate: { directory: 'power', collaped:true },},
{ label: 'Security & Identity', collapsed:true, autogenerate: { directory: 'security', collaped:true },},
],
},
],
lastUpdated: true,
}),
],
});