aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintdoc.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-03-09 10:27:28 -0700
committerGitHub <noreply@github.com>2025-03-09 10:27:28 -0700
commit34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12 (patch)
tree70d05aff44f288fe46121c83431137b58cd7d9b5 /scripts/lintdoc.lua
parent903242f160faff5f7e3b9ae1a5273ac75a55ed6b (diff)
downloadrneovim-34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12.tar.gz
rneovim-34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12.tar.bz2
rneovim-34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12.zip
fix(build): vimdoc tags are not validated #32801
Problem: "make lintdoc" is not validating vimdoc (:help) tags. Solution: - Call `lang_tree:parse()` to init the parser. - Load netrw 🤢 explicitly, since it was moved to `pack/dist/opt/`. - Fix invalid help tags.
Diffstat (limited to 'scripts/lintdoc.lua')
-rwxr-xr-xscripts/lintdoc.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/lintdoc.lua b/scripts/lintdoc.lua
index 78cf9fed72..d246c51176 100755
--- a/scripts/lintdoc.lua
+++ b/scripts/lintdoc.lua
@@ -10,8 +10,10 @@
print('Running lintdoc ...')
--- gen_help_html requires :helptags to be generated on $VIMRUNTIME/doc
--- :helptags checks for duplicate tags.
+-- gen_help_html.lua requires helptags to be generated in $VIMRUNTIME/doc.
+-- :helptags also checks for duplicate tags.
+-- 🤢 Load netrw so its tags are generated by :helptags.
+vim.cmd [[ packadd netrw ]]
vim.cmd [[ helptags ALL ]]
require('src.gen.gen_help_html').run_validate()