Skip to content

Commit

Permalink
Fix CUB docs image fetcher (#1466)
Browse files Browse the repository at this point in the history
* Fix CUB docs image fetcher

* Add git to doc container
  • Loading branch information
gevtushenko authored Feb 29, 2024
1 parent 0ebdddf commit d3d864f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cub/docs/gen_docs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ cd $SCRIPT_PATH
rm -rf img
mkdir -p img

if [ ! -d cubimg ]; then
git clone -b gh-pages https://github.com/NVlabs/cub.git cubimg
fi

if [ ! -n "$(find img -name '*.png')" ]; then
wget -q https://docs.nvidia.com/cuda/_static/Logo_and_CUDA.png -O img/logo.png

Expand All @@ -23,7 +27,7 @@ if [ ! -n "$(find img -name '*.png')" ]; then
for img in "${imgs[@]}"
do
echo ${img}
wget -q https://nvlabs.github.io/cub/${img} -O img/${img} || echo "!!! Failed to fetch $img"
cp cubimg/${img} img/${img}
done
fi

Expand Down
2 changes: 1 addition & 1 deletion docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1

RUN apt-get -y -qq update; \
apt-get -y -qq upgrade; \
apt-get -y -qq install doxygen unzip wget
apt-get -y -qq install doxygen unzip wget git

RUN mkdir -p /opt/doxybook2; \
cd /opt/doxybook2; \
Expand Down

0 comments on commit d3d864f

Please sign in to comment.