feat: Make prettier

This commit is contained in:
2023-07-17 17:01:11 +02:00
parent eac0b06afc
commit 2d0c954a82
13 changed files with 168 additions and 138 deletions

View File

@@ -2,23 +2,29 @@
lib, stdenv
, python3
, shared-assets
}:
stdenv.mkDerivation {
, tailwindWithTypography
}: let
pythonEnv = python3.withPackages (ps: with ps; [
markdown pygments
]);
in stdenv.mkDerivation {
pname = "website";
version = "202205120-01";
version = "20230716";
src = ../.;
buildInputs = [ shared-assets python3 ];
buildPhase = ''
${python3}/bin/python ${shared-assets}/bin/makesite.py \
${pythonEnv}/bin/python ${shared-assets}/bin/makesite.py \
-v page_assets=https://cdn.polynom.me \
--assets ./assets \
--copy-assets \
--include robots.txt \
-p params.json
# Build Tailwind CSS data
${tailwindWithTypography}/bin/tailwindcss --input ./input.css --output _site/assets/css/index.css
'';
installPhase = ''