-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
77 lines (66 loc) · 2.08 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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
//GitHub Pages URL
site: 'https://sunil-pradhan.github.io',
base: '/javascript-note/',
//Enable sitemap
//site: 'https://javascript-note.com',
integrations: [
starlight({
title: 'JavaScript Note',
//Set up fonts
customCss: [
'./src/styles/custom.css',
'@fontsource/ibm-plex-sans/400.css',
'@fontsource/ibm-plex-sans/500.css',
'@fontsource/ibm-plex-sans/600.css',
'@fontsource/ibm-plex-sans/700.css',
],
//Add logo with light and dark variants
logo: {
light: './src/assets/light-logo.svg',
dark: './src/assets/dark-logo.svg',
},
//Social links
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' },
],
//Sidebar
sidebar: [
// {
// label: 'Guides',
// items: [
// // Each item here is one entry in the navigation menu.
// { label: 'Example Guide', slug: 'guides/example' },
// ],
// },
{
label: 'JavaScript Exercises',
items: [
{ label: 'Exercises Home', slug: 'js-exercises/exercises-home' },
// { label: 'String Exercises', slug: 'js-exercises/string-exercises'},
{
label: 'String',
items: [
{ label: 'String Exercises', slug: 'js-exercises/string/string-exercises' },
{ label: 'Extract First N Characters From String', slug: 'js-exercises/string/extract-first-n-characters-from-string' },
{ label: 'Check if String is Blank', slug: 'js-exercises/string/check-if-string-is-blank' },
{ label: 'Reverse String', slug: 'js-exercises/string/reverse-string' },
{ label: 'Split String into Array of Words', slug: 'js-exercises/string/string-to-word-array' },
{ label: 'Check if Input is a String', slug: 'js-exercises/string/check-if-input-is-a-string' },
],
},
],
},
// {
// label: 'Reference',
// autogenerate: { directory: 'reference' },
// },
],
}),
// mdx()
],
});