neovim/scripts
Jongwook Choi 4e9298ecdf refactor(gen_vimdoc): generate function doc from metadata, not from xml
Problem:

For function definitions to be included in the vimdoc (formatted) and
to be exported as mpack data (unformatted), we had two internal
representations of the same function/API metadata in duplicate;
one is FunctionDoc (which was previously a dict), and the other is
doxygen XML DOM from which vimdoc (functions sections) was generated.

Solution:

We should have a single path and unified data representation
(i.e. FunctionDoc) that contains all the metadata and information about
function APIs, from which both of mpack export and vimdoc are generated.
I.e., vimdocs are no longer generated directly from doxygen XML nodes,
but generated via:

  (XML DOM Nodes) ------------> FunctionDoc ------> mpack (unformatted)
                   Recursive     Internal     |
                   Formatting    Metadata     +---> vimdoc (formatted)

This refactoring eliminates the hacky and ugly use of `fmt_vimhelp` in
`fmt_node_as_vimhelp()` and all other helper functions! This way,
`fmt_node_as_vimhelp()` can simplified as it no longer needs to handle
generating of function docs, which needs to be done only in the topmost
level of recursion.
2024-01-02 11:32:32 -05:00
..
bump_deps.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
check_urls.vim vim-patch: move test_urls.vim out of runtime/ 2018-11-12 12:36:40 -05:00
cliff.toml chore: forward-port changes from v0.8.2 release 2022-12-29 17:36:28 +01:00
download-unicode-files.sh build(lintsh): double quote to prevent word splitting (#21571) 2022-12-28 22:50:24 +01:00
gen_eval_files.lua feat: generate types and docs for v variables 2023-12-21 14:19:10 +00:00
gen_filetype.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
gen_help_html.lua docs: convert BACKERS.md to backers.txt 2023-12-28 22:41:01 +01:00
gen_lsp.lua fix(gen_lsp.lua): improve type name, and fix wrong type inheritance 2023-12-27 10:48:06 +01:00
gen_vimdoc.py refactor(gen_vimdoc): generate function doc from metadata, not from xml 2024-01-02 11:32:32 -05:00
genappimage.sh ci: make all linux releases work with same glibc version 2023-04-22 22:58:14 +02:00
git-log-pretty-since.sh build(lint): add more shell scripts to lintsh 2022-11-01 18:37:21 +01:00
legacy2luatest.pl legacy2luatest: Use before_each instead of setup. 2016-02-01 09:09:08 +01:00
lintcommit.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
lua2dox.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
movedocs.pl Move documentation from function declarations to definitions 2014-06-02 11:04:04 -03:00
release.sh build(lint): add more shell scripts to lintsh 2022-11-01 18:37:21 +01:00
shadacat.py Merge #11319 'inccommand: fix issues with modifiers and prompting' 2019-11-05 17:34:21 -08:00
update_terminfo.sh refactor: replace manual header guards with #pragma once 2023-11-12 22:01:28 +01:00
vim-patch.sh docs: move vim-patch wiki page to runtime documentation 2023-12-13 18:31:05 +01:00
vimpatch.lua build: enable lintlua for scripts/ dir #26391 2023-12-04 12:38:31 -08:00
windows.ti fix(terminfo): disable smglr for vtpcon and conemu (#18855) 2022-06-05 14:39:56 +02:00