Moved website to website builder
This commit is contained in:
@@ -6,12 +6,17 @@
|
||||
nixpkgs-sonarr.url = "github:nixos/nixpkgs/328abff1f7a707dc8da8e802f724f025521793ea";
|
||||
|
||||
vpnconfinement.url = "github:Maroka-chan/VPN-Confinement";
|
||||
|
||||
website-builder.url = "github:rasmus-kirk/website-builder";
|
||||
website-builder.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
nixpkgs-sonarr,
|
||||
vpnconfinement,
|
||||
website-builder,
|
||||
self,
|
||||
...
|
||||
} @ inputs: let
|
||||
# Systems supported
|
||||
@@ -45,8 +50,41 @@
|
||||
};
|
||||
});
|
||||
|
||||
packages = forAllSystems ({pkgs}: {
|
||||
default = pkgs.callPackage ./mkDocs.nix {inherit inputs;};
|
||||
packages = forAllSystems ({pkgs}: let
|
||||
website = website-builder.lib {
|
||||
pkgs = pkgs;
|
||||
src = "${self}";
|
||||
headerTitle = "Nixarr";
|
||||
standalonePages = [{
|
||||
title = "Nixarr - Media Server Nixos Module";
|
||||
inputFile = ./README.md;
|
||||
outputFile = "index.html";
|
||||
}];
|
||||
includedDirs = [ "docs" ];
|
||||
articleDirs = [ "docs/wiki" ];
|
||||
navbar = [
|
||||
{ title = "Home"; location = "/"; }
|
||||
{ title = "Options"; location = "/nixos-options"; }
|
||||
{ title = "Wiki"; location = "/wiki"; }
|
||||
{ title = "Github"; location = "https://github.com/rasmus-kirk/nixarr"; }
|
||||
];
|
||||
favicons = {
|
||||
# For all browsers
|
||||
"16x16" = "/docs/img/favicons/16x16.png";
|
||||
"32x32" = "/docs/img/favicons/32x32.png";
|
||||
# For Google and Android
|
||||
"48x48" = "/docs/img/favicons/48x48.png";
|
||||
"192x192" = "/docs/img/favicons/192x192.png";
|
||||
# For iPad
|
||||
"167x167" = "/docs/img/favicons/167x167.png";
|
||||
# For iPhone
|
||||
"180x180" = "/docs/img/favicons/180x180.png";
|
||||
};
|
||||
nixosModules = ./nixarr;
|
||||
};
|
||||
in {
|
||||
default = website.package;
|
||||
debug = website.loop;
|
||||
});
|
||||
|
||||
formatter = forAllSystems ({pkgs}: pkgs.alejandra);
|
||||
|
||||
Reference in New Issue
Block a user