aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/help_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-10-06 09:16:00 -0400
committerGitHub <noreply@github.com>2022-10-06 06:16:00 -0700
commitf7b175e049db9262a45ee1c5eb41a38bd5b8ac38 (patch)
treefe2c125f291e061ebcbf6314f409f3f086d18044 /test/functional/lua/help_spec.lua
parent61da959bb401b83454be0748b7a8b482f1be76e5 (diff)
downloadrneovim-f7b175e049db9262a45ee1c5eb41a38bd5b8ac38.tar.gz
rneovim-f7b175e049db9262a45ee1c5eb41a38bd5b8ac38.tar.bz2
rneovim-f7b175e049db9262a45ee1c5eb41a38bd5b8ac38.zip
fix(docs-html): keycodes, taglinks, column_heading #20498
Problem: - Docs HTML: "foo ~" headings (column_heading) are not aligned with their table columns/contents because the leading whitespace is not emitted. - taglinks starting with hyphen like |-x| were not recognized. - keycodes like `<foo>` and `CTRL-x` were not recognized. - ToC is not scrollable. Solution: - Add ws() to the column_heading case. - Update help parser to latest version - supports `keycode` - fixes for taglink, argument - Update .toc CSS. https://github.com/neovim/neovim.github.io/issues/297 fix https://github.com/neovim/neovim.github.io/issues/297
Diffstat (limited to 'test/functional/lua/help_spec.lua')
-rw-r--r--test/functional/lua/help_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/help_spec.lua b/test/functional/lua/help_spec.lua
index 6743648819..251275b5cc 100644
--- a/test/functional/lua/help_spec.lua
+++ b/test/functional/lua/help_spec.lua
@@ -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 < 280, '<280 parse errors', rv.err_count)
+ ok(rv.err_count < 150, '<150 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 <= 6, '<=6 parse errors', rv.err_count)
+ ok(rv.err_count <= 1, '<=1 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)