docs: add docs base

This commit is contained in:
technofab 2025-08-28 10:30:23 +02:00
parent 519ed97c97
commit b0eaa25b77
No known key found for this signature in database
5 changed files with 74 additions and 5 deletions

45
cells/repo/docs.nix Normal file
View file

@ -0,0 +1,45 @@
{inputs, ...}: let
inherit (inputs) doclib;
in
(doclib.mkDocs {
docs."default" = {
base = "${inputs.self}";
path = "${inputs.self}/docs";
material = {
enable = true;
colors = {
primary = "deep purple";
accent = "purple";
};
umami = {
enable = true;
src = "https://analytics.tf/umami";
siteId = "219a2bbe-e421-420c-a25c-e168b16d8b61";
domains = ["rensa.projects.tf"];
};
};
config = {
site_name = "Rensa Core";
repo_name = "rensa-nix/core";
repo_url = "https://gitlab.com/rensa-nix/core";
theme = {
logo = "images/logo.png";
icon.repo = "simple/gitlab";
favicon = "images/favicon.png";
};
nav = [
{"Introduction" = "index.md";}
];
markdown_extensions = [
{
"pymdownx.highlight".pygments_lang_class = true;
}
"pymdownx.inlinehilite"
"pymdownx.snippets"
"pymdownx.superfences"
"pymdownx.escapeall"
"fenced_code"
];
};
};
}).packages

26
cells/repo/flake.lock generated
View file

@ -3,11 +3,11 @@
"devshell": { "devshell": {
"locked": { "locked": {
"dir": "lib", "dir": "lib",
"lastModified": 1753958239, "lastModified": 1755673398,
"narHash": "sha256-J0B5rfQAza9UKSqnKINn++AsrMWxG3/oTqVUt3QRlWk=", "narHash": "sha256-51MmR+Eo1+bKDd/Ss77wwTqi4yAR2xgmyCSEbKWSpj0=",
"owner": "rensa-nix", "owner": "rensa-nix",
"repo": "devshell", "repo": "devshell",
"rev": "fbacfc149b59acf68efa97951418a9a7a7022707", "rev": "e76bef387e8a4574f9b6d37b1a424e706491af08",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -17,9 +17,27 @@
"type": "gitlab" "type": "gitlab"
} }
}, },
"nixmkdocs": {
"locked": {
"dir": "lib",
"lastModified": 1755785622,
"narHash": "sha256-xBb9PCkszmrWSEqUiPC7oBJABm1thF572S5QHtloZ+M=",
"owner": "TECHNOFAB",
"repo": "nixmkdocs",
"rev": "61da605a9bff12f66c4b743f43aea59ca200f533",
"type": "gitlab"
},
"original": {
"dir": "lib",
"owner": "TECHNOFAB",
"repo": "nixmkdocs",
"type": "gitlab"
}
},
"root": { "root": {
"inputs": { "inputs": {
"devshell": "devshell" "devshell": "devshell",
"nixmkdocs": "nixmkdocs"
} }
} }
}, },

View file

@ -1,11 +1,13 @@
{ {
inputs = { inputs = {
devshell.url = "gitlab:rensa-nix/devshell?dir=lib"; devshell.url = "gitlab:rensa-nix/devshell?dir=lib";
nixmkdocs.url = "gitlab:TECHNOFAB/nixmkdocs?dir=lib";
}; };
outputs = i: outputs = i:
i i
// { // {
dslib = i.devshell.lib {inherit (i.parent) pkgs;}; dslib = i.devshell.lib {inherit (i.parent) pkgs;};
doclib = i.nixmkdocs.lib {inherit (i.parent) pkgs;};
}; };
} }

1
docs/index.md Normal file
View file

@ -0,0 +1 @@
# Rensa Core

View file

@ -20,6 +20,9 @@
cellBlocks = with rensa.blocks; [ cellBlocks = with rensa.blocks; [
(simple "test") (simple "test")
(simple "devShells") (simple "devShells")
(simple "docs")
]; ];
} {}; } {
packages = rensa.select inputs.self ["repo" "docs"];
};
} }