From 26f87c3940672e7c0a0ba3d390f8dbe34b8521a0 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sun, 5 Jan 2025 13:14:59 +0000 Subject: [PATCH] Run ruby/ruby doc generation on CI --- .github/workflows/ruby-core.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ruby-core.yml b/.github/workflows/ruby-core.yml index 929246bb71..1a77443689 100644 --- a/.github/workflows/ruby-core.yml +++ b/.github/workflows/ruby-core.yml @@ -57,3 +57,16 @@ jobs: - name: Test RDoc run: make -j2 -s test-all TESTS="rdoc --no-retry" working-directory: ruby/ruby + - name: Generate Documentation with RDoc + run: make html + working-directory: ruby/ruby + # We need to clear the generated documentation to generate them again + # with the Prism parser. + - name: Clear Generated Documentation + run: rm -r .ext/html + working-directory: ruby/ruby + - name: Generate Documentation with RDoc (Prism parser) + run: make html + working-directory: ruby/ruby + env: + RDOC_USE_PRISM_PARSER: true