more doc-work
This commit is contained in:
12
profiles/web/docs/python-docs.nix
Normal file
12
profiles/web/docs/python-docs.nix
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user