From 3b01af99c1cf4b1d6b69e29e3964243827f83f63 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Sat, 22 Mar 2025 22:55:20 +0200 Subject: [PATCH] chore: add @dochide annotation - it's easier to distinguish @private and something i dont want to see in docs --- scripts/docgen.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 381d3c4..1c66b90 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -30,4 +30,8 @@ hooks.write_pre = function(lines) return lines end +hooks.sections["@dochide"] = function(s) + s.parent:clear_lines() +end + MiniDoc.generate(files, "doc/gopher.nvim.txt", { hooks = hooks })