Skip to content

Commit 48b954c

Browse files
committed
nix package + small tweaks for release
1 parent 4546105 commit 48b954c

File tree

8 files changed

+121
-19
lines changed

8 files changed

+121
-19
lines changed

default.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
yarn-berry,
77
nodejs_22,
88
cacert,
9+
quickshell-types ? null,
910
}: stdenv.mkDerivation (final: let
1011
nodeModules = stdenv.mkDerivation {
1112
pname = "${final.pname}-node_modules";
@@ -50,7 +51,7 @@
5051

5152
outputHashMode = "recursive";
5253
outputHashAlgo = "sha256";
53-
outputHash = "rKoDjvG5t+aQRrzAz0eTifPtL3zmWAu/emxXWd1ocxM=";
54+
outputHash = "tZ4xuA7uNnMIEpSUmQ5TAWPdvRGFJWIgWyBa1QFFWWU=";
5455
};
5556
in {
5657
pname = "quickshell-web";
@@ -72,9 +73,12 @@ in {
7273
EOF
7374
7475
cp -r ${nodeModules} node_modules
76+
chmod +rw -R node_modules
7577
'';
7678

7779
buildPhase = ''
80+
${if quickshell-types != null then "export SECRET_MODULES_PATH=${quickshell-types}" else ""}
81+
echo SECRET_MODULES_PATH: $SECRET_MODULES_PATH
7882
HOME=$(pwd)/garbage-tooling yarn build
7983
'';
8084

flake.lock

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

flake.nix

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
{
22
inputs = {
33
nixpkgs.url = "nixpkgs/nixos-unstable";
4+
5+
quickshell-docs = {
6+
url = "git+https://git.outfoxxed.me/quickshell/quickshell-docs";
7+
inputs.nixpkgs.follows = "nixpkgs";
8+
};
49
};
510

6-
outputs = { self, nixpkgs }: let
11+
outputs = { self, nixpkgs, quickshell-docs }: let
712
forEachSystem = fn: nixpkgs.lib.genAttrs
813
[ "x86_64-linux" "aarch64-linux" ]
914
(system: fn system nixpkgs.legacyPackages.${system});
1015
in {
1116
packages = forEachSystem (system: pkgs: rec {
12-
quickshell-web = pkgs.callPackage ./default.nix {};
17+
quickshell-web = pkgs.callPackage ./default.nix {
18+
quickshell-types = quickshell-docs.packages.${system}.quickshell-types;
19+
};
20+
1321
default = quickshell-web;
1422
});
1523
};

pagefind.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export default function pagefind(): AstroIntegration {
1313
const relativeDir = relative(cwd, targetDir);
1414
return new Promise<void>(resolve => {
1515
spawn(
16-
"yarn dlx",
17-
["-q", "pagefind", "--site", relativeDir],
16+
"yarn",
17+
["pagefind", "--site", relativeDir],
1818
{
1919
stdio: "inherit",
2020
shell: true,

public/favicon.svg

+25-1
Loading

public/quickshell.png

-12.7 KB
Binary file not shown.

src/config/io/generateTypeData.ts

+14-8
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@ import path from "node:path";
33

44
import type { RouteData, dirData } from "./types";
55

6+
function modulesPath() {
7+
const modulesPath = import.meta.env.SECRET_MODULES_PATH;
8+
9+
if (!modulesPath || modulesPath === "") {
10+
throw new Error(
11+
"Cannot generate types, missing SECRET_MODULES_PATH"
12+
);
13+
}
14+
15+
return modulesPath;
16+
}
17+
618
async function readSubdir(subdir: string): Promise<dirData[]> {
7-
const fullpath = path.join(process.cwd(), "modules", subdir);
19+
const fullpath = path.join(modulesPath(), subdir);
820
const filenames = await fs.readdir(fullpath);
921

1022
const data = await Promise.all(
@@ -31,13 +43,7 @@ async function readSubdir(subdir: string): Promise<dirData[]> {
3143
}
3244

3345
async function generateTypeData(): Promise<RouteData[]> {
34-
const mainDir = import.meta.env.SECRET_MODULES_PATH;
35-
36-
if (!mainDir || mainDir === "") {
37-
throw new Error(
38-
"Cannot generate types, missing SECRET_MODULES_PATH"
39-
);
40-
}
46+
const mainDir = modulesPath();
4147

4248
const subdirs = await fs.readdir(mainDir, {
4349
withFileTypes: true,

src/styles/main-page.css

+18-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ html.dark .main-page_hero-text {
121121
}
122122
}
123123

124-
html.dark .main-page_link-card {
124+
/*html.dark .main-page_link-card {
125125
background-color: transparent;
126126
border-color: transparent;
127127
@@ -168,6 +168,23 @@ html.dark .main-page_link-card {
168168
}
169169
}
170170
}
171+
}*/
172+
173+
html.dark .main-page_link-card {
174+
background-color: hsl(var(--green) 38 25);
175+
color: hsl(194 0 100);
176+
177+
&:hover {
178+
background-color: hsl(var(--green) 48 35);
179+
}
180+
181+
&.main-page_bluecard {
182+
background-color: hsl(var(--blue) 38 25);
183+
184+
&:hover {
185+
background-color: hsl(var(--blue) 48 35);
186+
}
187+
}
171188
}
172189

173190
.baselayout footer {

0 commit comments

Comments
 (0)