mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
feat(docs): fixes for :help HTML generator
Generate correct leading whitespace for argument, taglink, tag, etc.
This commit is contained in:
@@ -21,7 +21,7 @@ describe(':help docs', function()
|
||||
ok(rv.helpfiles > 100, '>100 :help files', rv.helpfiles)
|
||||
-- Check that parse errors did not increase wildly.
|
||||
-- TODO: Fix all parse errors in :help files.
|
||||
ok(rv.err_count < 1300, '<1300 parse errors', rv.err_count)
|
||||
ok(rv.err_count < 250, '<250 parse errors', rv.err_count)
|
||||
eq({}, rv.invalid_links, exec_lua([[return 'found invalid :help tag links:\n'..vim.inspect(...)]], rv.invalid_links))
|
||||
end)
|
||||
|
||||
@@ -43,7 +43,7 @@ describe(':help docs', function()
|
||||
tmpdir
|
||||
)
|
||||
eq(4, #rv.helpfiles)
|
||||
ok(rv.err_count < 16, '<16 parse errors', rv.err_count)
|
||||
ok(rv.err_count <= 6, '<=6 parse errors', rv.err_count)
|
||||
eq({}, rv.invalid_links, exec_lua([[return 'found invalid :help tag links:\n'..vim.inspect(...)]], rv.invalid_links))
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user