Skip to content

Commit ed2a362

Browse files
committed
Initial commit
1 parent 6403e0a commit ed2a362

24 files changed

+5545
-0
lines changed

astro.config.mjs

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import { defineConfig } from 'astro/config';
2+
import starlight from '@astrojs/starlight';
3+
4+
// https://astro.build/config
5+
export default defineConfig({
6+
integrations: [
7+
starlight({
8+
title: 'CounterStrikeSharp',
9+
logo: { src: './src/assets/logo.svg' },
10+
favicon: './src/assets/logo.svg',
11+
customCss: [
12+
'@fontsource/ibm-plex-sans/400.css',
13+
'@fontsource/ibm-plex-sans/500.css',
14+
'@fontsource/ibm-plex-sans/700.css',
15+
'@fontsource/jetbrains-mono/400.css',
16+
'@fontsource/jetbrains-mono/600.css',
17+
'./src/styles/custom.css',
18+
],
19+
head: [
20+
{
21+
tag: 'script',
22+
attrs: {
23+
src: 'https://gc.zgo.at/count.js',
24+
'data-goatcounter': 'https://cssharp.goatcounter.com/count',
25+
async: true,
26+
},
27+
},
28+
],
29+
social: {
30+
github: 'https://github.com/roflmuffin/CounterStrikeSharp',
31+
discord: 'https://discord.gg/eAZU3guKWU'
32+
},
33+
sidebar: [
34+
{
35+
label: 'Guides',
36+
autogenerate: { directory: 'guides' },
37+
},
38+
{
39+
label: 'Features',
40+
autogenerate: { directory: 'features' },
41+
},
42+
{
43+
label: 'Admin Framework',
44+
autogenerate: { directory: 'admin-framework' },
45+
},
46+
{
47+
label: 'Reference',
48+
autogenerate: { directory: 'reference' },
49+
},
50+
],
51+
editLink: {
52+
baseUrl:
53+
'https://github.com/roflmuffin/CounterStrikeSharp/edit/main/docs/',
54+
},
55+
}),
56+
],
57+
base: '/',
58+
site: 'https://docs.cssharp.dev',
59+
markdown: {
60+
shikiConfig: {
61+
wrap: false,
62+
},
63+
},
64+
});

package.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro build",
9+
"preview": "astro preview",
10+
"astro": "astro"
11+
},
12+
"dependencies": {
13+
"@astrojs/starlight": "^0.21.4",
14+
"@fontsource/ibm-plex-sans": "^5.0.15",
15+
"@fontsource/jetbrains-mono": "^5.0.15",
16+
"astro": "^4.5.17",
17+
"sharp": "^0.32.5"
18+
},
19+
"devDependencies": {
20+
"prettier": "^3.0.3"
21+
}
22+
}

0 commit comments

Comments
 (0)