core/cells/repo/docs.nix

55 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2025-08-28 10:30:23 +02:00
{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";
2025-09-23 10:39:20 +02:00
site_url = "https://rensa.projects.tf";
2025-08-28 10:30:23 +02:00
repo_name = "rensa-nix/core";
repo_url = "https://gitlab.com/rensa-nix/core";
2025-09-23 10:39:20 +02:00
extra_css = ["style.css"];
2025-08-28 10:30:23 +02:00
theme = {
2025-09-23 10:39:20 +02:00
logo = "images/logo.svg";
2025-08-28 10:30:23 +02:00
icon.repo = "simple/gitlab";
2025-09-23 10:39:20 +02:00
favicon = "images/logo.svg";
2025-08-28 10:30:23 +02:00
};
nav = [
{"Introduction" = "index.md";}
2025-12-20 21:27:10 +01:00
{"Concepts" = "concepts.md";}
{"Tutorial" = "tutorial.md";}
{"API Reference" = "api.md";}
{"Related Libraries" = "libraries.md";}
{"Direnv Integration" = "direnv.md";}
{"Debugging" = "debugging.md";}
2025-08-28 10:30:23 +02:00
];
markdown_extensions = [
{
"pymdownx.highlight".pygments_lang_class = true;
}
"pymdownx.inlinehilite"
"pymdownx.snippets"
"pymdownx.superfences"
"pymdownx.escapeall"
"fenced_code"
2025-12-20 21:27:10 +01:00
"admonition"
2025-08-28 10:30:23 +02:00
];
};
};
}).packages