This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

nix: fix docs builds

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
date (Jul 30, 2026, 10:02 AM +0100) commit bd73e35a parent 487eaea5 change-id ulootyvw
+59 -48
+1
.tangled/workflows/deploy-docs.yml
··· 4 4 paths: 5 5 - docs/** 6 6 - input.css 7 + - nix/pkgs/docs.nix 7 8 8 9 engine: microvm 9 10 image: nixos
+1 -1
flake.nix
··· 160 160 appview = self.callPackage ./nix/pkgs/appview.nix {}; 161 161 blog = self.callPackage ./nix/pkgs/blog.nix {}; 162 162 docs = self.callPackage ./nix/pkgs/docs.nix { 163 - inherit inter-fonts-src ibm-plex-mono-src lucide-src; 163 + inherit inter-fonts-src ibm-plex-mono-src lucide-src tailwindcss-animated-src; 164 164 inherit (pkgs) pagefind; 165 165 }; 166 166 spindle = self.callPackage ./nix/pkgs/spindle.nix {};
+57 -47
nix/pkgs/docs.nix
··· 2 2 pandoc, 3 3 pagefind, 4 4 tailwindcss, 5 + tailwindcss-animated-src, 6 + linkFarm, 5 7 runCommandLocal, 6 8 inter-fonts-src, 7 9 ibm-plex-mono-src, 8 10 lucide-src, 9 11 dolly, 10 12 src, 11 - }: 12 - runCommandLocal "docs" {} '' 13 - mkdir -p working 13 + }: let 14 + tailwindcss-plugins = linkFarm "tailwindcss-plugins" [ 15 + { 16 + name = "tailwindcss-animated"; 17 + path = tailwindcss-animated-src; 18 + } 19 + ]; 20 + in 21 + runCommandLocal "docs" {} '' 22 + mkdir -p working 14 23 15 - # copy templates, themes, styles, filters to working directory 16 - cp ${src}/docs/*.html working/ 17 - cp ${src}/docs/*.theme working/ 18 - cp ${src}/docs/*.css working/ 24 + # copy templates, themes, styles, filters to working directory 25 + cp ${src}/docs/*.html working/ 26 + cp ${src}/docs/*.theme working/ 27 + cp ${src}/docs/*.css working/ 19 28 20 - # icons 21 - cp -rf ${lucide-src}/*.svg working/ 29 + # icons 30 + cp -rf ${lucide-src}/*.svg working/ 22 31 23 - # logo 24 - ${dolly}/bin/dolly -output working/dolly.svg -color currentColor 32 + # logo 33 + ${dolly}/bin/dolly -output working/dolly.svg -color currentColor 25 34 26 - # content - chunked 27 - ${pandoc}/bin/pandoc ${src}/docs/DOCS.md \ 28 - -o $out/ \ 29 - -t chunkedhtml \ 30 - --variable toc \ 31 - --variable-json single-page=false \ 32 - --toc-depth=2 \ 33 - --css=stylesheet.css \ 34 - --chunk-template="%i.html" \ 35 - --highlight-style=working/highlight.theme \ 36 - --template=working/template.html 35 + # content - chunked 36 + ${pandoc}/bin/pandoc ${src}/docs/DOCS.md \ 37 + -o $out/ \ 38 + -t chunkedhtml \ 39 + --variable toc \ 40 + --variable-json single-page=false \ 41 + --toc-depth=2 \ 42 + --css=stylesheet.css \ 43 + --chunk-template="%i.html" \ 44 + --highlight-style=working/highlight.theme \ 45 + --template=working/template.html 37 46 38 - # content - single page 39 - ${pandoc}/bin/pandoc ${src}/docs/DOCS.md \ 40 - -o $out/single-page.html \ 41 - --toc \ 42 - --variable toc \ 43 - --variable single-page \ 44 - --toc-depth=2 \ 45 - --css=stylesheet.css \ 46 - --highlight-style=working/highlight.theme \ 47 - --template=working/template.html 47 + # content - single page 48 + ${pandoc}/bin/pandoc ${src}/docs/DOCS.md \ 49 + -o $out/single-page.html \ 50 + --toc \ 51 + --variable toc \ 52 + --variable single-page \ 53 + --toc-depth=2 \ 54 + --css=stylesheet.css \ 55 + --highlight-style=working/highlight.theme \ 56 + --template=working/template.html 48 57 49 - # fonts 50 - mkdir -p $out/static/fonts 51 - cp -f ${inter-fonts-src}/web/InterVariable*.woff2 $out/static/fonts/ 52 - cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 $out/static/fonts/ 53 - cp -f ${inter-fonts-src}/InterVariable*.ttf $out/static/fonts/ 54 - cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 $out/static/fonts/ 58 + # fonts 59 + mkdir -p $out/static/fonts 60 + cp -f ${inter-fonts-src}/web/InterVariable*.woff2 $out/static/fonts/ 61 + cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 $out/static/fonts/ 62 + cp -f ${inter-fonts-src}/InterVariable*.ttf $out/static/fonts/ 63 + cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 $out/static/fonts/ 55 64 56 - # favicons 57 - ${dolly}/bin/dolly -output $out/static/logos/dolly.png -size 180 58 - ${dolly}/bin/dolly -output $out/static/logos/dolly.ico -size 48 59 - ${dolly}/bin/dolly -output $out/static/logos/dolly.svg -color currentColor -favicon 65 + # favicons 66 + ${dolly}/bin/dolly -output $out/static/logos/dolly.png -size 180 67 + ${dolly}/bin/dolly -output $out/static/logos/dolly.ico -size 48 68 + ${dolly}/bin/dolly -output $out/static/logos/dolly.svg -color currentColor -favicon 60 69 61 - # styles 62 - cd ${src} && ${tailwindcss}/bin/tailwindcss -i input.css -o $out/stylesheet.css 70 + # styles 71 + export NODE_PATH=${tailwindcss-plugins} 72 + cd ${src} && ${tailwindcss}/bin/tailwindcss -i input.css -o $out/stylesheet.css 63 73 64 - # search index 65 - ${pagefind}/bin/pagefind --site $out --output-path $out/pagefind 66 - '' 74 + # search index 75 + ${pagefind}/bin/pagefind --site $out --output-path $out/pagefind 76 + ''