forked from tangled.org/core
Monorepo for Tangled — https://tangled.org
at master 1.1 kB view raw
1{ 2 pandoc, 3 tailwindcss, 4 runCommandLocal, 5 inter-fonts-src, 6 ibm-plex-mono-src, 7 lucide-src, 8 src, 9}: 10runCommandLocal "docs" {} '' 11 mkdir -p working 12 13 # copy templates, themes, styles, filters to working directory 14 cp ${src}/docs/*.html working/ 15 cp ${src}/docs/*.theme working/ 16 cp ${src}/docs/*.css working/ 17 18 # icons 19 cp -rf ${lucide-src}/*.svg working/ 20 21 # content 22 ${pandoc}/bin/pandoc ${src}/docs/DOCS.md \ 23 -o $out/ \ 24 -t chunkedhtml \ 25 --variable toc \ 26 --toc-depth=2 \ 27 --css=stylesheet.css \ 28 --chunk-template="%i.html" \ 29 --highlight-style=working/highlight.theme \ 30 --template=working/template.html 31 32 # fonts 33 mkdir -p $out/static/fonts 34 cp -f ${inter-fonts-src}/web/InterVariable*.woff2 $out/static/fonts/ 35 cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 $out/static/fonts/ 36 cp -f ${inter-fonts-src}/InterVariable*.ttf $out/static/fonts/ 37 cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 $out/static/fonts/ 38 39 # styles 40 cd ${src} && ${tailwindcss}/bin/tailwindcss -i input.css -o $out/stylesheet.css 41''