2023-03-15 20:04:10 +00:00
|
|
|
# building for PRs and skip stable and latest states
|
2023-12-13 06:37:36 +00:00
|
|
|
set -ex
|
2023-03-15 20:04:10 +00:00
|
|
|
|
|
|
|
if ! [ $READTHEDOCS_VERSION == "latest" -o $READTHEDOCS_VERSION == "stable" ];
|
|
|
|
then
|
2023-08-21 18:22:21 +00:00
|
|
|
export FAST_DOCS_DEV=1 ;
|
2023-10-07 09:57:50 +00:00
|
|
|
root=$(pwd) ;
|
2024-07-05 11:56:29 +00:00
|
|
|
for pkg in 'fabric' 'pytorch' ;
|
2023-12-13 06:37:36 +00:00
|
|
|
do
|
|
|
|
cd $root/docs/source-$pkg ;
|
|
|
|
make html --jobs $(nproc) ;
|
|
|
|
cd $root/docs ;
|
|
|
|
mv build/html build/$pkg ;
|
|
|
|
done ;
|
2023-10-07 09:57:50 +00:00
|
|
|
# cross-road
|
|
|
|
rm -rf build/doctrees ;
|
|
|
|
cp crossroad.html build/index.html
|
2023-03-15 20:04:10 +00:00
|
|
|
else
|
|
|
|
echo "Void build... :-]" ;
|
2023-10-07 09:57:50 +00:00
|
|
|
mkdir -p ./docs/build
|
|
|
|
cp ./docs/redirect.html ./docs/build/index.html
|
2023-03-15 20:04:10 +00:00
|
|
|
fi
|