Docs: use offline fonts

This commit is contained in:
Johannes Kirschbauer
2024-05-28 16:58:59 +02:00
parent a21e246e97
commit 99fe8ef55f
5 changed files with 32 additions and 5 deletions

View File

@@ -5,6 +5,8 @@
clan-cli-docs,
asciinema-player-js,
asciinema-player-css,
roboto,
fira-code,
...
}:
pkgs.mkShell {
@@ -18,7 +20,12 @@ pkgs.mkShell {
echo "Generated API documentation in './site/reference/' "
mkdir -p ./site/static/asciinema-player
ln -snf ${asciinema-player-js} ./site/static/asciinema-player/asciinema-player.min.js
ln -snf ${asciinema-player-css} ./site/static/asciinema-player/asciinema-player.css
# Link to fonts
ln -snf ${roboto}/share/fonts/truetype/Roboto-Regular.ttf ./site/static/
ln -snf ${fira-code}/share/fonts/truetype/FiraCode-VF.ttf ./site/static/
'';
}