Skip to content

Commit

Permalink
Add a ldoc config file
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed May 16, 2024
1 parent 53f8fa1 commit 5e7a7de
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
16 changes: 16 additions & 0 deletions config.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Config file for ldoc, see
-- https://stevedonovan.github.io/ldoc/manual/doc.md.html
-- vim: filetype=lua

project = "nvimpager"
file = {
"lua",
"test",
exclude = {
"test/diff_test.lua",
"test/meta_test.lua",
"test/no_map_test.lua",
}}
all = true
readme = "README.md"
format = "markdown"
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@
};
} // (eachDefaultSystem (system:
let
callPackage = (import nixpkgs { inherit system; }).callPackage nvimpager;
pkgs = import nixpkgs { inherit system; };
callPackage = pkgs.callPackage nvimpager;
neovim-nightly = neovim.packages.${system}.default;
default = callPackage {};
nightly = callPackage { neovim = neovim-nightly; };
in {
apps.default = flake-utils.lib.mkApp { drv = default; };
packages = { inherit default nightly; };
packages.ldoc = pkgs.runCommandLocal "nvimpager-api-docs" {}
"cd ${self} && ${pkgs.luaPackages.ldoc}/bin/ldoc . --dir $out";
})));
}

0 comments on commit 5e7a7de

Please sign in to comment.