Skip to content

Commit

Permalink
only ignore w/ autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
burnettk committed Jan 3, 2025
1 parent 453f31f commit 4528462
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ fi
rm -rf _build/html

sphinx_command="sphinx-autobuild"

# must ignore generated dir with sphinx-autobuild or it becomes recursive
additional_args="--ignore '**/_tags/*'"

if [[ "$run_ci" == "true" ]]; then
sphinx_command="sphinx-build"
additional_args=""
fi

#>> sphinx-build --help 2>&1 | grep -E '^ +\-[aWn]\>'
# -a write all files (default: only write new and changed
# -j N build in parallel with N processes where possible
# -n nit-picky mode, warn about all missing references
# -W turn warnings into errors
"$sphinx_command" . _build/html -W -a -n -j auto --ignore '**/_tags/*'
"$sphinx_command" . _build/html -W -a -n -j auto $additional_args

0 comments on commit 4528462

Please sign in to comment.