/
the_myth
/
neovim
Обзор
Документация
Войти
/
the_myth
/
neovim
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/lintdoc.lua
22 строки
669 B
Justin M. Keyes
fix(build): vimdoc tags are not validated #32801
09 мар 2025, 20:27
Не верифицирован
09 мар 2025, 20:27
34a2bfd
Код
Авторство
О чём код?
#!/usr/bin/env -S nvim -l -- Validate vimdoc files on $VIMRUNTIME/doc, and test generating HTML docs. -- Checks for duplicate/missing tags, parse errors, and invalid links/urls/spellings. -- See also `make lintdoc`. -- -- Usage: -- $ nvim -l scripts/lintdoc.lua -- $ make lintdoc print('Running lintdoc ...') -- 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() require('src.gen.gen_help_html').test_gen() print('lintdoc PASSED.')