Skip to content

Commit 6f7d0cc

Browse files
committed
init doc
1 parent 0cd1a09 commit 6f7d0cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1818
-51
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ dist/
66
# generated types
77
.astro/
88

9+
# used in samples
10+
local.db
11+
912
# env
1013
.env

.helix/languages.toml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[language-servers.astro-ls]
2+
command = "astro-ls"
3+
args = ["--stdio"]
4+
config = { contentIntellisense = true }
5+
6+
[[language]]
7+
name = "astro"
8+
formatter = { command = "bun", args = ["prettier", "--parser", "astro"] }
9+
language-servers = ["astro-ls", "tailwindcss-ls"]
10+
11+
[[language]]
12+
name = "markdown"
13+
file-types = ["md", "mdx"]
14+
language-servers = ["astro-ls"]
15+
[[language]]
16+
name = "prisma"
17+
file-types = ["prisma"]
18+
indent = { tab-width = 2, unit = " " }

astro.config.mjs

-28
This file was deleted.

astro.config.ts

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// @ts-check
2+
import { defineConfig } from "astro/config";
3+
import starlight from "@astrojs/starlight";
4+
import starlightThemeRapidePlugin from "starlight-theme-rapide";
5+
6+
// https://astro.build/config
7+
export default defineConfig({
8+
integrations: [
9+
starlight({
10+
title: "My Docs",
11+
plugins: [starlightThemeRapidePlugin()],
12+
social: {
13+
github: "https://github.com/withastro/starlight",
14+
},
15+
sidebar: [
16+
{
17+
label: "最重要",
18+
autogenerate: { directory: "tier-1" },
19+
},
20+
{
21+
label: "Reference",
22+
autogenerate: { directory: "reference" },
23+
},
24+
],
25+
}),
26+
],
27+
experimental: {
28+
contentIntellisense: true,
29+
},
30+
});

biome.jsonc

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"ignore": []
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2
16+
},
17+
"organizeImports": {
18+
"enabled": true
19+
},
20+
"linter": {
21+
"enabled": true,
22+
"rules": {
23+
"recommended": true
24+
}
25+
},
26+
"javascript": {
27+
"formatter": {
28+
"quoteStyle": "double"
29+
}
30+
}
31+
}

bun.lock

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@astrojs/starlight": "^0.32.4",
88
"astro": "^5.5.3",
99
"sharp": "^0.32.5",
10+
"starlight-theme-rapide": "^0.4.0",
1011
},
1112
},
1213
},
@@ -803,6 +804,8 @@
803804

804805
"space-separated-tokens": ["[email protected]", "", {}, "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q=="],
805806

807+
"starlight-theme-rapide": ["[email protected]", "", { "peerDependencies": { "@astrojs/starlight": ">=0.32.0" } }, "sha512-go2JEA3p1CNo3zqhS1pDkhCXAJNG8O7sX7KdIebae+ogaAndFRKXFtXhmw+9O/CWM785Vje6mGIXlwLer0faLQ=="],
808+
806809
"stream-replace-string": ["[email protected]", "", {}, "sha512-TlnjJ1C0QrmxRNrON00JvaFFlNh5TTG00APw23j74ET7gkQpTASi6/L2fuiav8pzK715HXtUeClpBTw2NPSn6w=="],
807810

808811
"streamx": ["[email protected]", "", { "dependencies": { "fast-fifo": "^1.3.2", "text-decoder": "^1.1.0" }, "optionalDependencies": { "bare-events": "^2.2.0" } }, "sha512-sLh1evHOzBy/iWRiR6d1zRcLao4gGZr3C1kzNz4fopCOKJb6xD9ub8Mpi9Mr1R6id5o43S+d93fI48UC5uM9aw=="],

docs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/content/docs

flake.lock

+92-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,28 @@
44
inputs = {
55
nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable";
66
flake-utils.url = "github:numtide/flake-utils";
7+
prisma-utils.url = "github:VanCoding/nix-prisma-utils";
78
};
89

910
outputs = {
1011
nixpkgs,
1112
flake-utils,
13+
prisma-utils,
1214
...
1315
}:
1416
flake-utils.lib.eachDefaultSystem (system: let
1517
pkgs = nixpkgs.legacyPackages.${system};
18+
prisma = pkgs.callPackage ./samples/t1-rdb/prisma/prisma.nix {inherit prisma-utils;};
1619
in {
1720
devShells.default = pkgs.mkShell {
18-
packages = [pkgs.bun];
21+
inherit (prisma) env;
22+
packages = [
23+
pkgs.bun
24+
pkgs.nodejs
25+
pkgs.astro-language-server
26+
pkgs.typos
27+
pkgs.litecli
28+
];
1929
};
2030
});
2131
}

package.json

+19-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
{
2-
"name": "agreeable-antimatter",
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.32.4",
14-
"astro": "^5.5.3",
15-
"sharp": "^0.32.5"
16-
}
17-
}
2+
"name": "agreeable-antimatter",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"scripts": {
6+
"prepare": "bun sync",
7+
"sync": "astro sync",
8+
"dev": "astro dev",
9+
"start": "astro dev",
10+
"build": "astro build",
11+
"preview": "astro preview",
12+
"astro": "astro"
13+
},
14+
"dependencies": {
15+
"@astrojs/starlight": "^0.32.4",
16+
"astro": "^5.5.3",
17+
"sharp": "^0.32.5",
18+
"starlight-theme-rapide": "^0.4.0"
19+
}
20+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# drizzle
2+
3+
To install dependencies:
4+
5+
```bash
6+
bun install
7+
```
8+
9+
To run:
10+
11+
```bash
12+
bun run index.ts
13+
```
14+
15+
This project was created using `bun init` in bun v1.2.5. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.

0 commit comments

Comments
 (0)