-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
79 lines (78 loc) · 3.04 KB
/
Copy pathastro.config.mjs
File metadata and controls
79 lines (78 loc) · 3.04 KB
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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
// https://astro.build/config
export default defineConfig({
site: 'https://codehints.io',
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark',
},
langs: ['haskell', 'typescript', 'java', 'python', 'rust', 'dart', 'go', 'rescript'],
},
},
integrations: [
starlight({
title: 'CodeHints',
description: 'Code concepts through cheat sheets',
favicon: '/favicon.png',
logo: {
src: './src/assets/logo.png',
},
plugins: [
starlightBlog({
title: 'CodeHints Blog',
authors: {
louis: {
name: 'Louis Petrik',
},
},
}),
],
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/LouisPetrik/codehints' },
],
editLink: {
baseUrl: 'https://github.com/LouisPetrik/codehints/edit/main/',
},
customCss: ['./src/styles/custom.css'],
sidebar: [
{ label: 'Home', link: '/' },
{ label: 'Angular', autogenerate: { directory: 'angular' } },
{ label: 'AssemblyScript', autogenerate: { directory: 'assemblyscript' } },
{ label: 'C++', autogenerate: { directory: 'cpp' } },
{ label: 'CSS', autogenerate: { directory: 'CSS' } },
{ label: 'Dart', autogenerate: { directory: 'dart' } },
{ label: 'Docker', autogenerate: { directory: 'docker' } },
{ label: 'Go', autogenerate: { directory: 'go' } },
{ label: 'Haskell', autogenerate: { directory: 'haskell' } },
{ label: 'Java', autogenerate: { directory: 'java' } },
{ label: 'JavaScript', autogenerate: { directory: 'javascript' } },
{ label: 'LaTeX', autogenerate: { directory: 'latex' } },
{ label: 'Machine Learning', autogenerate: { directory: 'machine-learning' } },
{ label: 'Markdown', autogenerate: { directory: 'markdown' } },
{ label: 'PureScript', autogenerate: { directory: 'purescript' } },
{ label: 'Python', autogenerate: { directory: 'python' } },
{ label: 'Qwik', autogenerate: { directory: 'qwik' } },
{ label: 'React', autogenerate: { directory: 'react' } },
{ label: 'ReScript', autogenerate: { directory: 'rescript' } },
{ label: 'Rust', autogenerate: { directory: 'rust' } },
{ label: 'Sinuous', autogenerate: { directory: 'sinuous' } },
{ label: 'Svelte', autogenerate: { directory: 'svelte' } },
{ label: 'TypeScript', autogenerate: { directory: 'typescript' } },
{ label: 'Vim', autogenerate: { directory: 'vim' } },
{ label: 'WebAssembly', autogenerate: { directory: 'webassembly' } },
],
components: {
Head: './src/components/Head.astro',
},
}),
],
});