File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,26 @@ git fetch --all --tags
35
35
36
36
# Loop through all tags and generate Sphinx documentation for each with specific conditions
37
37
for tag in " ${tags[@]} " ; do
38
- # Skip the "latest" version if it exists in the tags
38
+ # Skip the "latest" tag
39
39
if [ " $tag " == " latest" ]; then
40
40
continue
41
41
fi
42
42
43
+ echo " Switching to tag $tag ..."
44
+ git checkout $tag
45
+ if [ $? -ne 0 ]; then
46
+ echo " Failed to switch to tag $tag . Skipping..."
47
+ continue
48
+ fi
49
+
50
+ # Generate the Sphinx documentation for the tag
43
51
case $tag in
44
52
v0.1.0)
45
- git checkout $tag
46
53
python docs/update_quairkit_rst.py
47
54
sphinx-build docs/sphinx_src docs/api/$tag
48
55
rm -rf docs/sphinx_src
49
56
;;
50
57
v0.2.0 | * )
51
- git checkout $tag
52
58
python docs/update_quairkit_rst.py
53
59
cp -r tutorials docs/sphinx_src/
54
60
sphinx-build docs/sphinx_src docs/api/$tag
You can’t perform that action at this time.
0 commit comments