mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
52 lines
1.7 KiB
Nix
52 lines
1.7 KiB
Nix
|
{ pkgs, lib, ... }:
|
||
|
let
|
||
|
nmdSrc = pkgs.fetchFromGitLab {
|
||
|
name = "nmd";
|
||
|
owner = "rycee";
|
||
|
repo = "nmd";
|
||
|
rev = "527245ff605bde88c2dd2ddae21c6479bb7cf8aa";
|
||
|
sha256 = "1zi0f9y3wq4bpslx1py3sfgrgd9av41ahpandvs6rvkpisfsqqlp";
|
||
|
};
|
||
|
nmd = import nmdSrc { inherit pkgs lib; };
|
||
|
scrubbedPkgsModule = {
|
||
|
imports = [{
|
||
|
_module.args = {
|
||
|
pkgs = lib.mkForce (nmd.scrubDerivations "pkgs" pkgs);
|
||
|
pkgs_i686 = lib.mkForce { };
|
||
|
};
|
||
|
}];
|
||
|
};
|
||
|
buildModulesDocs = args:
|
||
|
nmd.buildModulesDocs ({
|
||
|
moduleRootPaths = [ ./.. ];
|
||
|
mkModuleUrl = path:
|
||
|
"https://github.com/pta2002/nixvim/blob/master/${path}#blob-path";
|
||
|
channelName = "nixvim";
|
||
|
} // args);
|
||
|
nixvimDocs = buildModulesDocs {
|
||
|
modules = [
|
||
|
(import ../nixvim.nix {})
|
||
|
scrubbedPkgsModule
|
||
|
];
|
||
|
docBook.id = "nixvim-options";
|
||
|
};
|
||
|
|
||
|
docs = nmd.buildDocBookDocs {
|
||
|
pathName = "";
|
||
|
modulesDocs = [ nixvimDocs ];
|
||
|
documentsDirectory = ./.;
|
||
|
documentType = "book";
|
||
|
chunkToc = ''
|
||
|
<toc>
|
||
|
<d:tocentry xmlns:d="http://docbook.org/ns/docbook" linkend="book-home-manager-manual"><?dbhtml filename="index.html"?>
|
||
|
<d:tocentry linkend="ch-options"><?dbhtml filename="options.html"?></d:tocentry>
|
||
|
<d:tocentry linkend="ch-nixos-options"><?dbhtml filename="nixos-options.html"?></d:tocentry>
|
||
|
<d:tocentry linkend="ch-nix-darwin-options"><?dbhtml filename="nix-darwin-options.html"?></d:tocentry>
|
||
|
<d:tocentry linkend="ch-tools"><?dbhtml filename="tools.html"?></d:tocentry>
|
||
|
<d:tocentry linkend="ch-release-notes"><?dbhtml filename="release-notes.html"?></d:tocentry>
|
||
|
</d:tocentry>
|
||
|
</toc>
|
||
|
'';
|
||
|
};
|
||
|
in docs.html
|