mirror of
https://gitlab.com/TECHNOFAB/nixible.git
synced 2026-02-02 11:25:08 +01:00
feat: switch from flake-parts and devenv to rensa ecosystem
This commit is contained in:
parent
0a0d354962
commit
dcb87e8c3e
21 changed files with 649 additions and 652 deletions
64
nix/repo/docs.nix
Normal file
64
nix/repo/docs.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{inputs, ...}: let
|
||||
inherit (inputs) pkgs doclib nblib;
|
||||
|
||||
optionsDoc = doclib.mkOptionDocs {
|
||||
module = nblib.module;
|
||||
roots = [
|
||||
{
|
||||
url = "https://gitlab.com/TECHNOFAB/nixible/-/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 = "black";
|
||||
accent = "blue";
|
||||
};
|
||||
umami = {
|
||||
enable = true;
|
||||
src = "https://analytics.tf/umami";
|
||||
siteId = "d8354dfa-2ad2-4089-90d2-899b981aef22";
|
||||
domains = ["nixible.projects.tf"];
|
||||
};
|
||||
};
|
||||
macros = {
|
||||
enable = true;
|
||||
includeDir = toString optionsDocs;
|
||||
};
|
||||
config = {
|
||||
site_name = "Nixible";
|
||||
site_url = "https://nixible.projects.tf";
|
||||
repo_name = "TECHNOFAB/nixible";
|
||||
repo_url = "https://gitlab.com/TECHNOFAB/nixible";
|
||||
extra_css = ["style.css"];
|
||||
theme = {
|
||||
logo = "images/logo.svg";
|
||||
icon.repo = "simple/gitlab";
|
||||
favicon = "images/logo.svg";
|
||||
};
|
||||
nav = [
|
||||
{"Introduction" = "index.md";}
|
||||
{"Usage" = "usage.md";}
|
||||
{"Examples" = "examples.md";}
|
||||
{"Reference" = "reference.md";}
|
||||
{"Options" = "options.md";}
|
||||
];
|
||||
markdown_extensions = [
|
||||
"pymdownx.superfences"
|
||||
"admonition"
|
||||
];
|
||||
};
|
||||
};
|
||||
}).packages
|
||||
// {inherit optionsDocs;}
|
||||
Loading…
Add table
Add a link
Reference in a new issue