mirror of https://github.com/rails/rails
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:
parent
68eade83c8
commit
51e9074de2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue