Skip to content

Commit

Permalink
Fix Ruby API documentation generator
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Dec 1, 2022
1 parent 0a5b49d commit 0818e99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 1 addition & 5 deletions generate_api_docs.sh
Expand Up @@ -10,11 +10,7 @@ py)
tox -c py/tox.ini -e docs || exit
;;
rb)
cd rb || exit
bundle install || exit
cd ..
bazel run //rb:docs || exit
git checkout rb/Gemfile.lock || true
;;
*)
echo "Selenium API docs generation"
Expand Down Expand Up @@ -45,7 +41,7 @@ py)
;;
rb)
rm -rf docs/api/rb
mv bazel-bin/rb/docs.runfiles/selenium/docs/api/rb docs/api/rb
mv "$(bazel cquery --output=files //rb:docs 2> /dev/null).runfiles/selenium/docs/api/rb" docs/api/rb
;;
*)
echo "ERROR: unknown parameter \"$API_DOCS_LANGUAGE\""
Expand Down
5 changes: 3 additions & 2 deletions rb/BUILD.bazel
Expand Up @@ -666,9 +666,10 @@ rb_binary(
"README.md",
]),
args = [
"--output_dir=docs/api/rb",
"doc",
"--output-dir=docs/api/rb",
"--readme=rb/README.md",
"rb/lib/**/*.rb",
"rb/lib",
"rb/CHANGES",
"rb/README.md",
],
Expand Down

0 comments on commit 0818e99

Please sign in to comment.