more doc-work

This commit is contained in:
2023-02-26 06:11:55 +01:00
parent b1d987763c
commit 91dc6fa2a5
10 changed files with 63 additions and 24 deletions

View File

@@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
let
python-versions = lib.attrNames (lib.filterAttrs (k: v: lib.isDerivation v) pkgs.pythonDocs.html);
mkDocsEntry = python-version: {
dirname = "${python-version}";
path = "${builtins.toString pkgs.pythonDocs.html.${python-version}}/share/doc/${python-version}/html";
desc = "Documentation for Python ${pkgs.${python-version}.version}";
};
in
{
services.docs-to-host.docs = builtins.map mkDocsEntry python-versions;
}