From 0818e99e321c9b86b9c9c09c08e57392bdb3c229 Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Thu, 1 Dec 2022 15:43:18 -0800 Subject: [PATCH] Fix Ruby API documentation generator --- generate_api_docs.sh | 6 +----- rb/BUILD.bazel | 5 +++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/generate_api_docs.sh b/generate_api_docs.sh index a7aa33215287a..7c0fdb250b8b8 100755 --- a/generate_api_docs.sh +++ b/generate_api_docs.sh @@ -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" @@ -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\"" diff --git a/rb/BUILD.bazel b/rb/BUILD.bazel index 9742808cd06b8..7750394142f14 100644 --- a/rb/BUILD.bazel +++ b/rb/BUILD.bazel @@ -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", ],