Skip to content

Commit cd2018b

Browse files
authored
Merge pull request #16 from raiderrobert/feat/docs
Add Starlight documentation site
2 parents 8e82e6b + f7ab830 commit cd2018b

9 files changed

Lines changed: 4643 additions & 0 deletions

File tree

docs/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
.astro/

docs/astro.config.mjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import starlight from '@astrojs/starlight';
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
integrations: [
8+
starlight({
9+
title: 'diecut',
10+
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/raiderrobert/diecut' }],
11+
sidebar: [
12+
{
13+
label: 'Getting Started',
14+
items: [
15+
{ label: 'Installation', slug: 'getting-started' },
16+
],
17+
},
18+
{
19+
label: 'Reference',
20+
items: [
21+
{ label: 'Commands', slug: 'reference/commands' },
22+
],
23+
},
24+
],
25+
}),
26+
],
27+
});

docs/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "docs",
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.37.6",
14+
"astro": "^5.6.1",
15+
"sharp": "^0.34.2"
16+
}
17+
}

0 commit comments

Comments
 (0)