Skip to content

Commit

Permalink
feat: formatted and fix some issues on nixos
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Nov 2, 2024
1 parent 51b8106 commit 6754011
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 23 deletions.
2 changes: 1 addition & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default defineConfig({
directory: "wiki/developers",
collapsed: true,
},
}
},
],
editLink: {
baseUrl: "https://github.com/teaclientmc/website",
Expand Down
8 changes: 2 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
devShells.default = pkgs.mkShell {
packages = with pkgs; [
bun
dprint
];
nativeBuildInputs = with pkgs; [
playwright
Expand All @@ -27,12 +28,7 @@
PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}";
PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true;
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1;


shellHook = ''
bun install
'';
};
};
};
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"astro-meta-tags": "^0.2.2",
"astro-page-insight": "^0.8.7",
"astro-seo": "^0.8.4",
"dprint": "^0.47.5",
"octokit": "^4.0.2",
"sharp": "^0.33.5",
"tailwind-merge": "^2.5.4",
Expand All @@ -38,8 +37,12 @@
"@astrojs/check": "^0.5.10",
"@types/bun": "^1.1.12",
"astro": "^4.16.7",
"dprint": "^0.47.5",
"playwright": "^1.48.2",
"typescript": "^5.6.3"
},
"overrides": {
"astro-expressive-code": "^0.38.0"
},
"packageManager": "[email protected]"
}
6 changes: 3 additions & 3 deletions src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineCollection, reference, z } from "astro:content";
import { docsSchema } from '@astrojs/starlight/schema';
import { docsSchema } from "@astrojs/starlight/schema";

const news = defineCollection({
type: "content",
Expand Down Expand Up @@ -30,7 +30,7 @@ const authors = defineCollection({
});

const docs = defineCollection({
schema: docsSchema()
})
schema: docsSchema(),
});

export const collections = { news, authors, docs };
15 changes: 7 additions & 8 deletions src/styles/starlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
@tailwind components;
@tailwind utilities;

.header {
backdrop-filter: blur(6px) saturate(10%);
}

.header {
backdrop-filter: blur(6px) saturate(10%);
}

.header > div {
@apply bg-[#00000015] bg-no-repeat;
}
.header > div {
@apply bg-[#00000015] bg-no-repeat;
}

body {
@apply bg-[url("/background/1.webp")] bg-no-repeat bg-cover;
@apply bg-[url("/background/1.webp")] bg-no-repeat bg-cover;
}
21 changes: 17 additions & 4 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
import starlightPlugin from '@astrojs/starlight-tailwind';
import starlightPlugin from "@astrojs/starlight-tailwind";


const accent = { 200: '#c8c8c8', 600: '#4e4e4e', 900: '#323232', 950: '#242424' };
const gray = { 100: '#f6f6f6', 200: '#eeeeee', 300: '#c2c2c2', 400: '#8b8b8b', 500: '#585858', 700: '#383838', 800: 'rgba(0, 0, 0, 0.212)', 900: '#181818' };
const accent = {
200: "#c8c8c8",
600: "#4e4e4e",
900: "#323232",
950: "#242424",
};
const gray = {
100: "#f6f6f6",
200: "#eeeeee",
300: "#c2c2c2",
400: "#8b8b8b",
500: "#585858",
700: "#383838",
800: "rgba(0, 0, 0, 0.212)",
900: "#181818",
};

export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
Expand Down

0 comments on commit 6754011

Please sign in to comment.