1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-08 01:51:05 +01:00

docs/lib: generalise menu impl using module system

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).
This commit is contained in:
Matt Sturgeon 2025-09-23 18:25:39 +01:00
parent 2f952af4a7
commit 4f03ca05d9
8 changed files with 228 additions and 60 deletions

View file

@ -4,19 +4,23 @@
# If there is an issue parsing the file, the resulting markdown will not contain any function docs.
{
lib.nixvim = {
_page = {
title = "lib.nixvim: Nixvim's functions";
source = ./index.md;
};
functions = {
_category.name = "Functions";
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;
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;
};
};
};
}