mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
docs(lua): change *lua-foo* -> *vim.foo*
This commit is contained in:
@@ -208,7 +208,7 @@ CONFIG = {
|
||||
'helptag_fmt': lambda name: (
|
||||
'*lua-vim*' if name.lower() == '_editor' else
|
||||
'*lua-vimscript*' if name.lower() == '_options' else
|
||||
f'*lua-{name.lower()}*'),
|
||||
f'*vim.{name.lower()}*'),
|
||||
'fn_helptag_fmt': lambda fstem, name: (
|
||||
f'*vim.opt:{name.split(":")[-1]}()*' if ':' in name and name.startswith('Option') else
|
||||
# Exclude fstem for methods
|
||||
@@ -1160,6 +1160,10 @@ def main(doxygen_config, args):
|
||||
if doc:
|
||||
doc_list.append(doc)
|
||||
|
||||
# Can't use '.' in @defgroup, so convert to '--'
|
||||
# "vim.json" => "vim-dot-json"
|
||||
groupname = groupname.replace('-dot-', '.')
|
||||
|
||||
section_docs[groupname] = "\n".join(doc_list)
|
||||
|
||||
# Generate docs for all functions in the current module.
|
||||
|
Reference in New Issue
Block a user