feat(extranix): Add theme option and update
All checks were successful
Build all the nodes / geo02 (push) Successful in 59s
Build all the nodes / geo01 (push) Successful in 1m0s
Build all the nodes / hypervisor02 (push) Successful in 1m0s
Build all the nodes / hypervisor01 (push) Successful in 1m0s
Build all the nodes / netaccess01 (push) Successful in 19s
Build all the nodes / netcore00 (push) Successful in 19s
Build all the nodes / netcore02 (push) Successful in 20s
Build all the nodes / netcore01 (push) Successful in 20s
Build all the nodes / ap01 (push) Successful in 1m24s
Build all the nodes / bridge01 (push) Successful in 2m5s
Build all the nodes / build01 (push) Successful in 2m5s
Build all the nodes / hypervisor03 (push) Successful in 2m5s
Build all the nodes / cof02 (push) Successful in 2m12s
Build all the nodes / storage01 (push) Successful in 58s
Build all the nodes / tower01 (push) Successful in 56s
Build all the nodes / rescue01 (push) Successful in 1m0s
Build the shell / build-shell (push) Successful in 44s
Run pre-commit on all files / pre-commit (push) Successful in 46s
Build all the nodes / compute01 (push) Successful in 3m10s
Build all the nodes / web01 (push) Successful in 2m3s
Build all the nodes / web02 (push) Successful in 1m29s
Build all the nodes / web03 (push) Successful in 1m35s
Build all the nodes / vault01 (push) Successful in 1m0s
All checks were successful
Build all the nodes / geo02 (push) Successful in 59s
Build all the nodes / geo01 (push) Successful in 1m0s
Build all the nodes / hypervisor02 (push) Successful in 1m0s
Build all the nodes / hypervisor01 (push) Successful in 1m0s
Build all the nodes / netaccess01 (push) Successful in 19s
Build all the nodes / netcore00 (push) Successful in 19s
Build all the nodes / netcore02 (push) Successful in 20s
Build all the nodes / netcore01 (push) Successful in 20s
Build all the nodes / ap01 (push) Successful in 1m24s
Build all the nodes / bridge01 (push) Successful in 2m5s
Build all the nodes / build01 (push) Successful in 2m5s
Build all the nodes / hypervisor03 (push) Successful in 2m5s
Build all the nodes / cof02 (push) Successful in 2m12s
Build all the nodes / storage01 (push) Successful in 58s
Build all the nodes / tower01 (push) Successful in 56s
Build all the nodes / rescue01 (push) Successful in 1m0s
Build the shell / build-shell (push) Successful in 44s
Run pre-commit on all files / pre-commit (push) Successful in 46s
Build all the nodes / compute01 (push) Successful in 3m10s
Build all the nodes / web01 (push) Successful in 2m3s
Build all the nodes / web02 (push) Successful in 1m29s
Build all the nodes / web03 (push) Successful in 1m35s
Build all the nodes / vault01 (push) Successful in 1m0s
This commit is contained in:
parent
01d72bfa13
commit
6d81001b85
2 changed files with 24 additions and 18 deletions
|
@ -52,13 +52,6 @@ let
|
|||
str
|
||||
;
|
||||
|
||||
inherit (pkgs)
|
||||
fetchFromGitea
|
||||
hugo
|
||||
runCommand
|
||||
symlinkJoin
|
||||
;
|
||||
|
||||
mkDocJSON =
|
||||
module:
|
||||
{
|
||||
|
@ -177,22 +170,16 @@ let
|
|||
'';
|
||||
|
||||
website =
|
||||
runCommand "search-infra"
|
||||
pkgs.runCommand "search-infra"
|
||||
{
|
||||
theme = fetchFromGitea {
|
||||
domain = "git.dgnum.eu";
|
||||
owner = "DGNum";
|
||||
repo = "options-search-theme";
|
||||
rev = "bcdc3e724ad5478ed39ce62a6e3342130a1bcabd";
|
||||
hash = "sha256-pg0NifmHdfK4OltSOQfYgTVa7juZlGF642Q4Du3uheY=";
|
||||
};
|
||||
inherit (cfg) theme;
|
||||
|
||||
nativeBuildInputs = [ hugo ];
|
||||
nativeBuildInputs = [ pkgs.hugo ];
|
||||
|
||||
config = builtins.toJSON cfg.settings;
|
||||
passAsFile = [ "config" ];
|
||||
|
||||
data = symlinkJoin {
|
||||
data = pkgs.symlinkJoin {
|
||||
name = "options-data";
|
||||
paths = mapAttrsToList mkDocJSON cfg.modules;
|
||||
};
|
||||
|
@ -216,6 +203,13 @@ in
|
|||
options.services.extranix = {
|
||||
enable = mkEnableOption "extranix documentation";
|
||||
|
||||
theme = mkOption {
|
||||
type = path;
|
||||
description = ''
|
||||
Path to a hugo theme for the search website.
|
||||
'';
|
||||
};
|
||||
|
||||
modules = mkOption {
|
||||
type = attrsOf (submodule {
|
||||
options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue