2023-02-01 19:11:37 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
2023-02-06 18:58:09 +00:00
|
|
|
lib ? import ../lib/stdlib-extended.nix pkgs.lib,
|
2023-02-01 19:11:37 +00:00
|
|
|
nmdSrc,
|
|
|
|
}: let
|
|
|
|
nmd = import nmdSrc {inherit lib pkgs;};
|
|
|
|
scrubbedPkgsModule = {
|
|
|
|
imports = [
|
|
|
|
{
|
|
|
|
_module.args = {
|
|
|
|
pkgs = lib.mkForce (nmd.scrubDerivations "pkgs" pkgs);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nvimModuleDocs = nmd.buildModulesDocs {
|
|
|
|
modules =
|
|
|
|
import ../modules/modules.nix {
|
|
|
|
inherit pkgs lib;
|
|
|
|
check = false;
|
|
|
|
}
|
|
|
|
++ [scrubbedPkgsModule];
|
|
|
|
moduleRootPaths = [./..];
|
2023-02-06 05:18:45 +00:00
|
|
|
mkModuleUrl = path: "https://github.com/notashelf/neovim-flake/blob/main/${path}#blob-path";
|
2023-02-01 19:11:37 +00:00
|
|
|
channelName = "neovim-flake";
|
|
|
|
docBook.id = "neovim-flake-options";
|
|
|
|
};
|
|
|
|
|
|
|
|
docs = nmd.buildDocBookDocs {
|
|
|
|
pathName = "neovim-flake";
|
|
|
|
projectName = "neovim-flake";
|
|
|
|
modulesDocs = [nvimModuleDocs];
|
|
|
|
documentsDirectory = ./.;
|
|
|
|
documentType = "book";
|
|
|
|
chunkToc = ''
|
|
|
|
<toc>
|
|
|
|
<d:tocentry xmlns:d="http://docbook.org/ns/docbook" linkend="book-neovim-flake-manual">
|
|
|
|
<?dbhtml filename="index.html"?>
|
|
|
|
<d:tocentry linkend="ch-options">
|
|
|
|
<?dbhtml filename="options.html"?>
|
|
|
|
</d:tocentry>
|
|
|
|
<d:tocentry linkend="ch-release-notes">
|
|
|
|
<?dbhtml filename="release-notes.html"?>
|
|
|
|
</d:tocentry>
|
|
|
|
</d:tocentry>
|
|
|
|
</toc>
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
options.json = nvimModuleDocs.json.override {path = "share/doc/neovim-flake/options.json";};
|
|
|
|
manPages = docs.manPages;
|
|
|
|
manual = {inherit (docs) html htmlOpenTool;};
|
|
|
|
}
|