Skip to content

Commit

Permalink
feat: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cjshearer committed Jun 29, 2024
1 parent 810ea87 commit 65fd4a8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@layer base {
body {
@apply prose prose-sm prose-neutral prose-resume font-[Roboto_Flex] dark:prose-invert;
/* @apply prose prose-sm prose-neutral prose-resume font-[Roboto_Flex] dark:prose-invert; */
@apply dark:bg-neutral-800;
}

Expand Down
4 changes: 4 additions & 0 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ enable = true
source = "assets/notwatching/hugo_stats.json"
target = "main.css"

[[build.cacheBusters]]
source = "tailwind.config.mjs"
target = "main.css"

[markup.goldmark.renderer]
unsafe = true

Expand Down
35 changes: 34 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,40 @@
vendorHash = "sha256-iNI/5uAYMG+bfndpD17dp1v3rGbFdHnG9oQv/grb/XY=";
});
};
tailwindcss = pkgs.tailwindcss;
tailwindcss = pkgs.stdenv.mkDerivation (finalAttrs: {
pname = "tailwindcss";
version = "4.0.0-alpha.16";
src = pkgs.fetchFromGitHub {
owner = "tailwindlabs";
repo = "tailwindcss";
rev = "c711903af5a42bb1dee5062937857995792cd202";
hash = "sha256-+Ut5AUImjpZstS5anK/ObP6AlnPjfD9/WSYeSfSf4i4=";
};

pnpmDeps = pkgs.pnpm.fetchDeps {
inherit (finalAttrs) pname src;
hash = "sha256-bonSClGUtICBuvv4gV0yl5jDUcWqNYARHIZkZfsHeZk=";
};

nativeBuildInputs = [
pkgs.cargo
pkgs.cacert
pkgs.nodejs_20
pkgs.pnpm
pkgs.tree
pkgs.cargo
pkgs.turbo
pkgs.napi-rs-cli
];

buildPhase = ''
cd crates/node
napi build --platform --release --no-const-enum
# pnpm run build --filter ./crates/node
ls -la
tree
'';
});
nativeBuildInputs = [ go hugo tailwindcss ];
in
{
Expand Down

0 comments on commit 65fd4a8

Please sign in to comment.