forked from NVIDIA/cuda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_all_docs.sh
More file actions
executable file
·40 lines (34 loc) · 921 Bytes
/
build_all_docs.sh
File metadata and controls
executable file
·40 lines (34 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
set -ex
# build cuda-python docs
rm -rf build
./build_docs.sh $@
# build cuda-bindings docs
CUDA_BINDINGS_PATH=build/html/cuda-bindings
mkdir -p $CUDA_BINDINGS_PATH
pushd .
cd ../../cuda_bindings/docs
rm -rf build
./build_docs.sh $@
cp -r build/html/* "$(dirs -l +1)"/$CUDA_BINDINGS_PATH
popd
# build cuda-core docs
CUDA_CORE_PATH=build/html/cuda-core
mkdir -p $CUDA_CORE_PATH
pushd .
cd ../../cuda_core/docs
rm -rf build
./build_docs.sh $@
cp -r build/html/* "$(dirs -l +1)"/$CUDA_CORE_PATH
popd
# build cuda-pathfinder docs
CUDA_PATHFINDER_PATH=build/html/cuda-pathfinder
mkdir -p $CUDA_PATHFINDER_PATH
pushd .
cd ../../cuda_pathfinder/docs
rm -rf build
./build_docs.sh $@
cp -r build/html/* "$(dirs -l +1)"/$CUDA_PATHFINDER_PATH
popd