robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Yochem van Rosmalenci: check URL reachability #35593a468bc573d

master
690 B22 linesraw
1#!/usr/bin/env -S nvim -l
2
3-- Validate vimdoc files on $VIMRUNTIME/doc, and test generating HTML docs.
4-- Checks for duplicate/missing tags, parse errors, and invalid links/urls/spellings.
5-- See also `make lintdoc`.
6--
7-- Usage:
8--   $ nvim -l scripts/lintdoc.lua
9--   $ make lintdoc
10
11print('Running lintdoc ...')
12
13-- gen_help_html.lua requires helptags to be generated in $VIMRUNTIME/doc.
14-- :helptags also checks for duplicate tags.
15-- 🤢 Load netrw so its tags are generated by :helptags.
16vim.cmd [[ packadd netrw ]]
17vim.cmd [[ helptags ALL ]]
18
19require('src.gen.gen_help_html').run_validate(nil, _G.arg[1] ~= nil)
20require('src.gen.gen_help_html').test_gen()
21
22print('lintdoc PASSED.')