From 8f3e20745b6433f19e390ea3fbf1794bd66d377f Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Wed, 19 Aug 2026 14:45:34 +0200 Subject: [PATCH] Correctly apply rdoc prerequisite It thought this didn't actually work but it seems it is necessary this way. Unclear why `enhance` worked for the docs workflow but not for pages --- .github/workflows/github-pages.yml | 2 -- rakelib/rdoc.rake | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index d570d46d53..46b8ac4f28 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -44,8 +44,6 @@ jobs: - name: Setup Pages id: pages uses: actions/configure-pages@v6 - - name: Template source files - run: bundle exec rake templates - name: Build with RDoc run: bundle exec rake rdoc - name: Build with Doxygen diff --git a/rakelib/rdoc.rake b/rakelib/rdoc.rake index 69dee55fbc..b8451c87dd 100644 --- a/rakelib/rdoc.rake +++ b/rakelib/rdoc.rake @@ -29,5 +29,5 @@ end %w[rdoc rerdoc rdoc:coverage].each do |name| # rdoc:coverage available in rdoc as a default gem since ruby 3.3 only next unless Rake::Task.task_defined?(name) - Rake::Task[name].enhance(["compile"]) + Rake::Task[name].prerequisites.unshift("compile") end