docs: filter source by markdown

This commit is contained in:
raf 2024-04-18 21:07:19 +03:00
commit 2d08f3ad39
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
3 changed files with 26 additions and 16 deletions

View file

@ -1,16 +1,19 @@
{
stdenv,
lib,
documentation-highlighter,
revision,
outputPath ? "share/doc/neovim-flake",
options,
stdenvNoCC,
# build inputs
nixos-render-docs,
documentation-highlighter,
# nrd configuration
manpageUrls,
revision,
options,
outputPath ? "share/doc/neovim-flake",
}:
stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
name = "neovim-flake-manual";
src = builtins.path {
path = ./manual;
path = lib.sourceFilesBySuffices ./manual [".md"];
name = "neovim-flake-manual";
};
@ -43,7 +46,7 @@ stdenv.mkDerivation {
# generate manual from
nixos-render-docs manual html \
--manpage-urls ./manpage-urls.json \
--manpage-urls ${manpageUrls} \
--revision ${lib.trivial.revisionWithDefault revision} \
--stylesheet style.css \
--script highlightjs/highlight.pack.js \