feat(web/website): init
This adds a new Website/Docs for Snix, using Thulite / Doks, which is mostly hugo and a bit of npm. Change-Id: Iea10d4068fa783ec0ddd6bcaba5c8d92b1a1168f
This commit is contained in:
parent
2705517e6d
commit
91d8b86b39
55 changed files with 6205 additions and 0 deletions
21
web/default.nix
Normal file
21
web/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, depot, ... }:
|
||||
|
||||
{
|
||||
shell = pkgs.mkShell {
|
||||
name = "tvix-website";
|
||||
packages = [
|
||||
pkgs.nodejs
|
||||
pkgs.hugo
|
||||
];
|
||||
};
|
||||
|
||||
website = depot.third_party.npmlock2nix.v2.build {
|
||||
pname = "snix-website";
|
||||
version = "0.0.0";
|
||||
|
||||
src = depot.third_party.gitignoreSource ./.;
|
||||
|
||||
installPhase = "cp -r public/. $out";
|
||||
buildCommands = [ "PATH=\"$PATH:${pkgs.hugo}/bin\" npm run build" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue