-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
69 lines (66 loc) · 2.04 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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import fs from 'fs'
import tailwind from '@astrojs/tailwind';
// https://astro.build/config
export default defineConfig({
integrations: [starlight({
title: 'Kocha Lang',
favicon: '/icon.png',
customCss:[
'./src/assets/styles/custom.css'
],
expressiveCode: {
// themes: ['nord'],
shiki: {
langs: [
JSON.parse(fs.readFileSync('./src/assets/syntax/kocha.json', 'utf-8'))
],
},
},
social: {
github: 'https://github.com/kocha-lang/kocha',
},
sidebar: [
{
label: 'Boshlash',
items: [
{ label: 'Salom dunyo', slug: 'start/install' },
{ label: "Qulay ishlash", slug: 'start/extension' },
],
},
{
label: 'Syntax',
items: [
{ label: "O'zgaruvchilar", slug: 'syntax/variables' },
{ label: 'Shartlar', slug: 'syntax/conditions' },
{ label: 'Aylanmalar', slug: 'syntax/loops' },
{ label: 'Array va Object', slug: 'syntax/collections' },
{ label: 'Funksiyalar', slug: 'syntax/functions' },
],
},
{
label: 'Standard Lib',
items: [
{ label: 'I/O', slug: 'std/io' },
{ label: 'Math', slug: 'std/math' },
],
},
{
label: 'Misollar',
autogenerate: { directory: "examples" }
},
{
label: 'Oxiri',
items: [
{ label: 'Credits', slug: 'misc/credits' },
],
},
],
components: {
Hero: './src/components/Hero.astro',
// Footer: './src/components/Footer.astro',
}
}), tailwind()],
});