mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
docs/man: include all sections from lib-doc
This commit is contained in:
parent
0c7e2aa96b
commit
83d3535097
2 changed files with 17 additions and 5 deletions
|
@ -84,6 +84,16 @@ runCommand "nixvim-lib-docs"
|
|||
inherit lib;
|
||||
pageSpecs = elaboratedPageSpecs;
|
||||
};
|
||||
|
||||
passthru.pages = builtins.listToAttrs (
|
||||
builtins.map (
|
||||
{ name, outFile, ... }:
|
||||
{
|
||||
inherit name;
|
||||
value = outFile;
|
||||
}
|
||||
) pagesToRender
|
||||
);
|
||||
}
|
||||
''
|
||||
function docgen {
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
pandoc,
|
||||
}:
|
||||
let
|
||||
markdownSections =
|
||||
lib.mapAttrsToList (name: file: "${lib-docs}/${file}") lib-docs.pages
|
||||
++ [
|
||||
../user-guide/faq.md
|
||||
../user-guide/config-examples.md
|
||||
];
|
||||
manHeader =
|
||||
runCommand "nixvim-general-doc-manpage"
|
||||
{
|
||||
|
@ -23,11 +29,7 @@ let
|
|||
(
|
||||
cat ${./nixvim-header-start.5}
|
||||
|
||||
${lib.concatMapStringsSep "\n" (file: "mkMDSection ${file}") [
|
||||
"${lib-docs}/lib/index.md"
|
||||
../user-guide/faq.md
|
||||
../user-guide/config-examples.md
|
||||
]}
|
||||
${lib.concatMapStringsSep "\n" (file: "mkMDSection ${file}") markdownSections}
|
||||
|
||||
cat ${./nixvim-header-end.5}
|
||||
) >$out/nixvim-header.5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue