Skip to content

Commit 1730419

Browse files
committed
serve: JEKYLL_BUILD_LINKS at least on startup
Signed-off-by: Hofi <hofione@gmail.com>
1 parent ad1fd20 commit 1730419

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_tools/serve

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ start_process() {
4141
# Either use navgen or build once with JEKYLL_BUILD_LINKS manually in a separate run
4242
# as the output of it must already be presented to be able to serve a valid content
4343
#
44+
if [ "${JEKYLL_BUILD_LINKS}" == "yes" ]; then
45+
echo -e "Generating navigation data..."
46+
./_tools/navgen ./doc ./_data/navigation.yml
47+
fi
4448
JEKYLL_BUILD_LINKS='no' bundle exec jekyll serve ${ALL_PARAMS} &
4549
PROC_PID=$!
4650

0 commit comments

Comments
 (0)