Skip to content

Commit 0818e99

Browse files
committed
Fix Ruby API documentation generator
1 parent 0a5b49d commit 0818e99

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

generate_api_docs.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ py)
1010
tox -c py/tox.ini -e docs || exit
1111
;;
1212
rb)
13-
cd rb || exit
14-
bundle install || exit
15-
cd ..
1613
bazel run //rb:docs || exit
17-
git checkout rb/Gemfile.lock || true
1814
;;
1915
*)
2016
echo "Selenium API docs generation"
@@ -45,7 +41,7 @@ py)
4541
;;
4642
rb)
4743
rm -rf docs/api/rb
48-
mv bazel-bin/rb/docs.runfiles/selenium/docs/api/rb docs/api/rb
44+
mv "$(bazel cquery --output=files //rb:docs 2> /dev/null).runfiles/selenium/docs/api/rb" docs/api/rb
4945
;;
5046
*)
5147
echo "ERROR: unknown parameter \"$API_DOCS_LANGUAGE\""

rb/BUILD.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,10 @@ rb_binary(
666666
"README.md",
667667
]),
668668
args = [
669-
"--output_dir=docs/api/rb",
669+
"doc",
670+
"--output-dir=docs/api/rb",
670671
"--readme=rb/README.md",
671-
"rb/lib/**/*.rb",
672+
"rb/lib",
672673
"rb/CHANGES",
673674
"rb/README.md",
674675
],

0 commit comments

Comments
 (0)