Skip to content

Commit

Permalink
Grab Ruby documentation path before switching Git branches
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Dec 1, 2022
1 parent 0818e99 commit b269466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate_api_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ py)
;;
rb)
bazel run //rb:docs || exit
docs="$(bazel cquery --output=files //rb:docs 2> /dev/null).runfiles/selenium/docs/api/rb"
;;
*)
echo "Selenium API docs generation"
Expand Down Expand Up @@ -41,7 +42,7 @@ py)
;;
rb)
rm -rf docs/api/rb
mv "$(bazel cquery --output=files //rb:docs 2> /dev/null).runfiles/selenium/docs/api/rb" docs/api/rb
mv $docs docs/api/rb
;;
*)
echo "ERROR: unknown parameter \"$API_DOCS_LANGUAGE\""
Expand Down

0 comments on commit b269466

Please sign in to comment.