neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 978962f9a00ce75216d2c36b79397ef3d2b54096
parent 624de849de39c7fb4f8e18a68e8c5f13ec4b1316
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon,  8 Apr 2024 17:46:41 +0800

build(release.sh): regenerate docs after changing NVIM_API_PRERELEASE (#28229)

After #25574, the value of NVIM_API_PRERELEASE can affect docs, so docs
need to be regenerated after changing NVIM_API_PRERELEASE.
Diffstat:
Mscripts/release.sh | 2++
Msrc/nvim/CMakeLists.txt | 6+++---
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/release.sh b/scripts/release.sh @@ -61,6 +61,8 @@ _do_release_commit() { $__sed -i.bk 's/(NVIM_API_PRERELEASE) true/\1 false/' CMakeLists.txt build/bin/nvim --api-info > "test/functional/fixtures/api_level_$__API_LEVEL.mpack" git add "test/functional/fixtures/api_level_${__API_LEVEL}.mpack" + build/bin/nvim -u NONE -l scripts/gen_vimdoc.lua + git add -u -- runtime/doc/ fi $__sed -i.bk 's,(<releases>),\1\ diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt @@ -920,7 +920,7 @@ file(GLOB LUA_SOURCES CONFIGURE_DEPENDS ) add_target(doc-vim - COMMAND $<TARGET_FILE:nvim_bin> -l scripts/gen_vimdoc.lua + COMMAND $<TARGET_FILE:nvim_bin> -u NONE -l scripts/gen_vimdoc.lua DEPENDS nvim ${API_SOURCES} @@ -934,7 +934,7 @@ add_target(doc-vim ) add_target(doc-eval - COMMAND $<TARGET_FILE:nvim_bin> -l ${PROJECT_SOURCE_DIR}/scripts/gen_eval_files.lua + COMMAND $<TARGET_FILE:nvim_bin> -u NONE -l ${PROJECT_SOURCE_DIR}/scripts/gen_eval_files.lua DEPENDS nvim ${FUNCS_METADATA} @@ -949,7 +949,7 @@ add_custom_target(doc) add_dependencies(doc doc-vim doc-eval) add_target(lintdoc - COMMAND $<TARGET_FILE:nvim_bin> --clean -l scripts/lintdoc.lua + COMMAND $<TARGET_FILE:nvim_bin> -u NONE -l scripts/lintdoc.lua DEPENDS ${DOCFILES} CUSTOM_COMMAND_ARGS USES_TERMINAL) add_dependencies(lintdoc nvim)