mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user