nix package + small tweaks for release
This commit is contained in:
parent
4546105f21
commit
48b954c410
8 changed files with 121 additions and 19 deletions
|
@ -3,8 +3,20 @@ import path from "node:path";
|
|||
|
||||
import type { RouteData, dirData } from "./types";
|
||||
|
||||
function modulesPath() {
|
||||
const modulesPath = import.meta.env.SECRET_MODULES_PATH;
|
||||
|
||||
if (!modulesPath || modulesPath === "") {
|
||||
throw new Error(
|
||||
"Cannot generate types, missing SECRET_MODULES_PATH"
|
||||
);
|
||||
}
|
||||
|
||||
return modulesPath;
|
||||
}
|
||||
|
||||
async function readSubdir(subdir: string): Promise<dirData[]> {
|
||||
const fullpath = path.join(process.cwd(), "modules", subdir);
|
||||
const fullpath = path.join(modulesPath(), subdir);
|
||||
const filenames = await fs.readdir(fullpath);
|
||||
|
||||
const data = await Promise.all(
|
||||
|
@ -31,13 +43,7 @@ async function readSubdir(subdir: string): Promise<dirData[]> {
|
|||
}
|
||||
|
||||
async function generateTypeData(): Promise<RouteData[]> {
|
||||
const mainDir = import.meta.env.SECRET_MODULES_PATH;
|
||||
|
||||
if (!mainDir || mainDir === "") {
|
||||
throw new Error(
|
||||
"Cannot generate types, missing SECRET_MODULES_PATH"
|
||||
);
|
||||
}
|
||||
const mainDir = modulesPath();
|
||||
|
||||
const subdirs = await fs.readdir(mainDir, {
|
||||
withFileTypes: true,
|
||||
|
|
|
@ -121,7 +121,7 @@ html.dark .main-page_hero-text {
|
|||
}
|
||||
}
|
||||
|
||||
html.dark .main-page_link-card {
|
||||
/*html.dark .main-page_link-card {
|
||||
background-color: transparent;
|
||||
border-color: transparent;
|
||||
|
||||
|
@ -168,6 +168,23 @@ html.dark .main-page_link-card {
|
|||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
html.dark .main-page_link-card {
|
||||
background-color: hsl(var(--green) 38 25);
|
||||
color: hsl(194 0 100);
|
||||
|
||||
&:hover {
|
||||
background-color: hsl(var(--green) 48 35);
|
||||
}
|
||||
|
||||
&.main-page_bluecard {
|
||||
background-color: hsl(var(--blue) 38 25);
|
||||
|
||||
&:hover {
|
||||
background-color: hsl(var(--blue) 48 35);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.baselayout footer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue