Skip to content

Commit c3833a6

Browse files
committed
chore: outline docs website content
1 parent afad846 commit c3833a6

19 files changed

Lines changed: 177 additions & 73 deletions

File tree

pkgs/app-website/astro.config.mjs

Lines changed: 0 additions & 46 deletions
This file was deleted.

pkgs/app-website/astro.config.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import cloudflare from "@astrojs/cloudflare";
2+
import starlight from "@astrojs/starlight";
3+
import tailwindcss from "@tailwindcss/vite";
4+
import { defineConfig } from "astro/config";
5+
import genotypeGrammar from "genotype-tm-grammar" with { type: "json" };
6+
7+
export default defineConfig({
8+
integrations: [
9+
starlight({
10+
title: "Genotype",
11+
pagefind: false,
12+
social: [
13+
{
14+
icon: "github",
15+
label: "GitHub",
16+
href: "https://github.com/kossnocorp/genotype",
17+
},
18+
],
19+
sidebar: [
20+
{
21+
label: "Hello, World!",
22+
autogenerate: { directory: "getting-started" },
23+
},
24+
{
25+
label: "Language",
26+
autogenerate: { directory: "language" },
27+
},
28+
{
29+
label: "Targets",
30+
autogenerate: { directory: "targets" },
31+
},
32+
{
33+
label: "Toolchain",
34+
autogenerate: { directory: "toolchain" },
35+
},
36+
],
37+
customCss: ["./src/styles/global.css"],
38+
expressiveCode: {
39+
shiki: {
40+
langs: [genotypeGrammar],
41+
},
42+
},
43+
}),
44+
],
45+
46+
vite: {
47+
plugins: [tailwindcss() as any],
48+
},
49+
50+
adapter: cloudflare(),
51+
});

pkgs/app-website/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "genotype-website",
3-
"type": "module",
43
"version": "0.1.0",
4+
"type": "module",
55
"dependencies": {
66
"@astrojs/cloudflare": "^13.1.8",
77
"@astrojs/starlight": "^0.38.2",
@@ -13,6 +13,7 @@
1313
"wrangler": "^4.81.0"
1414
},
1515
"devDependencies": {
16-
"@types/node": "^22.15.18"
16+
"@types/node": "^22.15.18",
17+
"genotype-tm-grammar": "workspace:*"
1718
}
18-
}
19+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Develop and Build"
3+
description: "How to develop and build your first Genotype project."
4+
sidebar:
5+
order: 4
6+
---
7+
8+
TODO
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Start Here"
3+
description: "How to get started with the Genotype programming language."
4+
sidebar:
5+
order: 1
6+
---
7+
8+
TODO
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Installation"
3+
description: "How to install Genotype CLI."
4+
sidebar:
5+
order: 3
6+
---
7+
8+
TODO

pkgs/app-website/src/content/docs/guides/example.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

pkgs/app-website/src/content/docs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hero:
66
title: Genotype
77
tagline: A programming language that transpiles to idiomatic TypeScript/Rust/Python types, allowing effortless type-safe interop between languages.
88
actions:
9-
- text: Install Genotype
10-
link: https://github.com/kossnocorp/genotype?tab=readme-ov-file#installation
9+
- text: Get Started
10+
link: /getting-started
1111
icon: right-arrow
1212
---
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: "Quick Genotype Language Tour"
3+
description: "Quick tour of Genotype programming language syntax and features."
4+
sidebar:
5+
order: 1
6+
label: "Quick Tour"
7+
---
8+
9+
```type
10+
Hello: {
11+
name: string
12+
}
13+
```
14+
15+
TODO
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Genotype Modules"
3+
description: "Genotype's module system."
4+
sidebar:
5+
order: 3
6+
label: "Modules"
7+
---
8+
9+
TODO

0 commit comments

Comments
 (0)