Prevent rdoc task from excluding the main page

There was a bug where the main page becomes unable to be found
and this change ensures that it does not happen.

Closes https://github.com/rails/rails/issues/50871.
This commit is contained in:
Junichi Sato 2024-01-26 14:28:41 +09:00
parent 68eade83c8
commit 51e9074de2
No known key found for this signature in database
GPG Key ID: 6CEF8C0F22CB941D
1 changed files with 3 additions and 2 deletions

View File

@ -146,8 +146,6 @@ module Rails
end
def configure_rdoc_files
rdoc_files.include(api_main)
RDOC_FILES.each do |component, cfg|
cdr = component_root_dir(component)
@ -172,6 +170,9 @@ module Rails
# Nothing to do
exit(0) if rdoc_files.empty?
end
# This must come after the mtime comparison to ensure the main page is not excluded.
rdoc_files.include(api_main)
end
# These variables are used by the sdoc template