docs: add docs base

This commit is contained in:
technofab 2025-08-28 10:30:23 +02:00
parent 519ed97c97
commit b0eaa25b77
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ
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