Skip to content

Commit 6f805e0

Browse files
authored
docs: how to build user docs locally #61
Problem: It is not crystal clear how to run user documentation HTML files locally right after checking out this repository. Solution: - Add more examples on how to run the user-docu.sh script locally. - Show error messages if a mandatory variable (`NEOVIM_DIR`) is not set. Without `$NEOVIM_DIR`, the script will fail anyway because it would behave like running `make` after cd-ing to `$HOME`.
1 parent d8ec168 commit 6f805e0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ This repo contains automation scripts and CI configuration to run the scripts.
1717
To run the scripts locally, execute `./ci/<build script>`, where `build script`
1818
is any executable shell script. Override environment variables as necessary.
1919

20+
### Example: Build user documentations:
21+
22+
NEOVIM_DIR=~/neovim-src/ ./ci/user-docu.sh
23+
2024
### Example: Generate the vim-patch report:
2125

2226
VIM_SOURCE_DIR=~/vim-src/ NEOVIM_DIR=~/neovim-src/ ./ci/vimpatch-report.sh

ci/user-docu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ source ${BUILD_DIR}/ci/common/common.sh
66

77
generate_user_docu() {
88
require_environment_variable BUILD_DIR "${BASH_SOURCE[0]}" ${LINENO}
9+
require_environment_variable NEOVIM_DIR "${BASH_SOURCE[0]}" ${LINENO}
910

1011
cd ${NEOVIM_DIR}
1112
make

0 commit comments

Comments
 (0)