mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
Move the mdbook menu rendering code into the module system and generalise it to apply to multiple "categories" (mdbook parts) and "types" of category (prefix, suffix, etc).
26 lines
752 B
Nix
26 lines
752 B
Nix
# This file contains a list of function reference docs pages that should be generated by `nixdoc`
|
|
#
|
|
# Note: `nixdoc` uses `rnix` to parse the input file, so the file must return a fairly simple attrset.
|
|
# If there is an issue parsing the file, the resulting markdown will not contain any function docs.
|
|
|
|
{
|
|
functions = {
|
|
_category.name = "Functions";
|
|
|
|
lib.nixvim = {
|
|
_page = {
|
|
title = "lib.nixvim: Nixvim's functions";
|
|
source = ./index.md;
|
|
};
|
|
|
|
utils._page = {
|
|
title = "lib.nixvim.utils: utility functions";
|
|
functions.file = ../../lib/utils.nix;
|
|
};
|
|
lua._page = {
|
|
title = "lib.nixvim.lua: lua functions";
|
|
functions.file = ../../lib/to-lua.nix;
|
|
};
|
|
};
|
|
};
|
|
}
|