Skip to content

Commit 8565f45

Browse files
p8jonathanhefner
andcommitted
Use relative includes of README's in documentation [ci-skip]
The Rails documentation uses the `:include:` directive to inline the README of the framework into the main documentation page. As the README's aren't in the root directory from where SDoc is run we need to add the framework path to the include: # :include: activesupport/README.md This results in a warning when installing the gems as generating the rdoc for the gem is run from the gem/framework root: Couldn't find file to include 'activesupport/README.rdoc' from lib/active_support.rb The `:include:` RDoc directive supports includes relative to the current file as well: # :include: ../README.md This makes sure it works for the Rails API docs and the separate gems. Co-authored-by: Jonathan Hefner <[email protected]>
1 parent 2fb0595 commit 8565f45

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

actioncable/lib/action_cable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
end.setup
4545

4646
# :markup: markdown
47-
# :include: actioncable/README.md
47+
# :include: ../README.md
4848
module ActionCable
4949
require_relative "action_cable/version"
5050
require_relative "action_cable/deprecator"

actionmailbox/lib/action_mailbox.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
require "action_mailbox/mail_ext"
1010

1111
# :markup: markdown
12-
# :include: actionmailbox/README.md
12+
# :include: ../README.md
1313
module ActionMailbox
1414
extend ActiveSupport::Autoload
1515

actionmailer/lib/action_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
require "active_support/core_ext/string/inflections"
3636
require "active_support/lazy_load_hooks"
3737

38-
# :include: actionmailer/README.rdoc
38+
# :include: ../README.rdoc
3939
module ActionMailer
4040
extend ::ActiveSupport::Autoload
4141

actiontext/lib/action_text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
require "nokogiri"
1010

1111
# :markup: markdown
12-
# :include: actiontext/README.md
12+
# :include: ../README.md
1313
module ActionText
1414
extend ActiveSupport::Autoload
1515

actionview/lib/action_view.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
require "action_view/version"
2929
require "action_view/deprecator"
3030

31-
# :include: actionview/README.rdoc
31+
# :include: ../README.rdoc
3232
module ActionView
3333
extend ActiveSupport::Autoload
3434

activejob/lib/active_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
require "global_id"
3131

3232
# :markup: markdown
33-
# :include: activejob/README.md
33+
# :include: ../README.md
3434
module ActiveJob
3535
extend ActiveSupport::Autoload
3636

activemodel/lib/active_model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
require "active_model/version"
2929
require "active_model/deprecator"
3030

31-
# :include: activemodel/README.rdoc
31+
# :include: ../README.rdoc
3232
module ActiveModel
3333
extend ActiveSupport::Autoload
3434

activerecord/lib/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
require "active_model/attribute_set"
3636
require "active_record/errors"
3737

38-
# :include: activerecord/README.rdoc
38+
# :include: ../README.rdoc
3939
module ActiveRecord
4040
extend ActiveSupport::Autoload
4141

activestorage/lib/active_storage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
require "marcel"
3636

3737
# :markup: markdown
38-
# :include: activestorage/README.md
38+
# :include: ../README.md
3939
module ActiveStorage
4040
extend ActiveSupport::Autoload
4141

activesupport/lib/active_support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
require "active_support/lazy_load_hooks"
3333
require "active_support/core_ext/date_and_time/compatibility"
3434

35-
# :include: activesupport/README.rdoc
35+
# :include: ../README.rdoc
3636
module ActiveSupport
3737
extend ActiveSupport::Autoload
3838

0 commit comments

Comments
 (0)