File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
44# SPDX-License-Identifier: Apache-2.0
55
66set -ex
@@ -25,8 +25,24 @@ if [[ -z "${SPHINX_CUDA_PATHFINDER_VER}" ]]; then
2525 | awk -F' +' ' {print $1}' )
2626fi
2727
28+ if [[ " ${LATEST_ONLY} " == " 1" && -z " ${BUILD_PREVIEW:- } " && -z " ${BUILD_LATEST:- } " ]]; then
29+ export BUILD_LATEST=1
30+ fi
31+
2832# build the docs (in parallel)
29- SPHINXOPTS=" -W --keep-going -j 4 -d build/.doctrees" make html
33+ if [[ -z " ${SPHINXOPTS:- } " ]]; then
34+ HTML_SPHINXOPTS=" -W --keep-going -j 4 -d build/.doctrees"
35+ else
36+ HTML_SPHINXOPTS=" ${SPHINXOPTS} "
37+ fi
38+ SPHINXOPTS=" ${HTML_SPHINXOPTS} " make html
39+
40+ if [[ " ${DOCS_LINKCHECK:- 0} " == " 1" ]]; then
41+ if [[ -z " ${LINKCHECK_SPHINXOPTS:- } " ]]; then
42+ LINKCHECK_SPHINXOPTS=" -W --keep-going -j 4 -d build/.linkcheck-doctrees"
43+ fi
44+ SPHINXOPTS=" ${LINKCHECK_SPHINXOPTS} " make linkcheck BUILDDIR=" build/linkcheck/${SPHINX_CUDA_PATHFINDER_VER} "
45+ fi
3046
3147# for debugging/developing (conf.py), please comment out the above line and
3248# use the line below instead, as we must build in serial to avoid getting
You can’t perform that action at this time.
0 commit comments