mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 10:10:06 +01:00
80 lines
2.3 KiB
Nix
80 lines
2.3 KiB
Nix
{inputs, ...}: let
|
|
inherit (inputs) pkgs cilib doclib;
|
|
|
|
optionsDoc = doclib.mkOptionDocs {
|
|
module = cilib.modules.nixCiSubmodule;
|
|
roots = [
|
|
{
|
|
url = "https://gitlab.com/TECHNOFAB/nix-gitlab-ci/-/blob/main/lib";
|
|
path = "${inputs.self}/lib";
|
|
}
|
|
];
|
|
};
|
|
optionsDocs = pkgs.runCommand "options-docs" {} ''
|
|
mkdir -p $out
|
|
ln -s ${optionsDoc} $out/options.md
|
|
'';
|
|
in
|
|
(doclib.mkDocs {
|
|
docs."default" = {
|
|
base = "${inputs.self}";
|
|
path = "${inputs.self}/docs";
|
|
material = {
|
|
enable = true;
|
|
colors = {
|
|
primary = "deep orange";
|
|
accent = "orange";
|
|
};
|
|
umami = {
|
|
enable = true;
|
|
src = "https://analytics.tf/umami";
|
|
siteId = "28f7c904-db22-4c2b-9ee4-ed42e14b6db9";
|
|
domains = ["nix-gitlab-ci.projects.tf"];
|
|
};
|
|
};
|
|
macros = {
|
|
enable = true;
|
|
includeDir = toString optionsDocs;
|
|
};
|
|
config = {
|
|
site_name = "Nix-GitLab-CI";
|
|
site_url = "https://nix-gitlab-ci.projects.tf";
|
|
repo_name = "TECHNOFAB/nix-gitlab-ci";
|
|
repo_url = "https://gitlab.com/TECHNOFAB/nix-gitlab-ci";
|
|
extra_css = ["style.css"];
|
|
theme = {
|
|
logo = "images/logo.svg";
|
|
icon.repo = "simple/gitlab";
|
|
favicon = "images/logo.svg";
|
|
};
|
|
nav = [
|
|
{"Introduction" = "index.md";}
|
|
{"Setup" = "setup.md";}
|
|
{"Usage" = "usage.md";}
|
|
{"CI/CD Component" = "cicd_component.md";}
|
|
{"Environment Variables" = "environment_variables.md";}
|
|
{"Caching" = "caching.md";}
|
|
{"Multiple Pipelines" = "multi_pipeline.md";}
|
|
{"Soonix Integration" = "soonix.md";}
|
|
{"Utilities" = "utilities.md";}
|
|
{"Kubernetes Runner Example" = "kubernetes_runner.md";}
|
|
{"Example Configs" = "examples.md";}
|
|
{"Options" = "options.md";}
|
|
];
|
|
markdown_extensions = [
|
|
{
|
|
"pymdownx.highlight".pygments_lang_class = true;
|
|
}
|
|
"pymdownx.inlinehilite"
|
|
"pymdownx.snippets"
|
|
"pymdownx.superfences"
|
|
"pymdownx.escapeall"
|
|
"fenced_code"
|
|
"admonition"
|
|
];
|
|
};
|
|
};
|
|
}).packages
|
|
// {
|
|
inherit optionsDocs;
|
|
}
|