This repository has no description
1{
2 buildNpmPackage,
3 inter-fonts-src,
4 ibm-plex-mono-src,
5 src,
6}:
7buildNpmPackage {
8 pname = "tangled-docs";
9 version = "0.0.1";
10
11 # the docs site compiles the appview's input.css (via its own
12 # tailwind config), so the build needs the repo root too
13 inherit src;
14 sourceRoot = "${src.name}/docs";
15
16 npmDepsHash = "sha256-6VcF5idQNeSHQuA3qezzQVoCBN93DqAR9YFjkhhZGkg=";
17
18 env.ASTRO_TELEMETRY_DISABLED = "1";
19
20 preBuild = ''
21 # self-hosted fonts, same as the appview (see input.css @font-face)
22 mkdir -p public/static/fonts
23 cp -f ${inter-fonts-src}/web/InterVariable*.woff2 public/static/fonts/
24 cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 public/static/fonts/
25 cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 public/static/fonts/
26 '';
27
28 installPhase = ''
29 runHook preInstall
30 cp -r dist $out
31 runHook postInstall
32 '';
33}