summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-04 16:27:38 -0800
committerTim Smith <tsmith84@gmail.com>2020-03-31 13:09:52 -0700
commit25c49bb8756ea0a515f4ceaea1e0c4501f3abd02 (patch)
tree61010f885e49c7a275cab5e984b1b705b64006ec
parent798285efc3757ba72c8f0aa73db57e43a7d58b08 (diff)
downloadchef-25c49bb8756ea0a515f4ceaea1e0c4501f3abd02.tar.gz
Make the links end with /
Thanks for pointing this out Ian Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--README.md2
-rw-r--r--docs/dev/how_to/upgrading_from_chef_12.md4
-rw-r--r--habitat/default.toml2
-rw-r--r--lib/chef/deprecated.rb4
-rw-r--r--spec/data/cookbooks/starter/recipes/default.rb2
-rw-r--r--spec/unit/data_collector_spec.rb2
-rw-r--r--spec/unit/deprecated_spec.rb4
7 files changed, 10 insertions, 10 deletions
diff --git a/README.md b/README.md
index 6ccc2bafe0..484126f451 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ For Chef Infra usage, please refer to our [Learn Chef Rally](https://learn.chef.
Other useful resources for Chef Infra users:
-- Documentation: <https://docs.chef.io>
+- Documentation: <https://docs.chef.io/>
- Source: <https://github.com/chef/chef/tree/master>
- Tickets/Issues: <https://github.com/chef/chef/issues>
- Slack: [Chef Community Slack](https://community-slack.chef.io/)
diff --git a/docs/dev/how_to/upgrading_from_chef_12.md b/docs/dev/how_to/upgrading_from_chef_12.md
index b9fa9c36b7..50dccaad2d 100644
--- a/docs/dev/how_to/upgrading_from_chef_12.md
+++ b/docs/dev/how_to/upgrading_from_chef_12.md
@@ -6,9 +6,9 @@ title: Upgrading From Chef 12
This is not a general guide on how to upgrade from Chef Infra 12. There already exists documentation on:
-* [How to upgrade from the command line](https://docs.chef.io/upgrade_client)
+* [How to upgrade from the command line](https://docs.chef.io/upgrade_client/)
* [How to use the `chef_client_updater` cookbook](https://supermarket.chef.io/cookbooks/chef_client_updater)
-* [All of the possible Deprecations and remediation steps](https://docs.chef.io/chef_deprecations_client)
+* [All of the possible Deprecations and remediation steps](https://docs.chef.io/chef_deprecations_client/)
This is strictly expert-level documentation on what the large scale focus should be and what kind of otherwise
undocumented gotchas can occur.
diff --git a/habitat/default.toml b/habitat/default.toml
index 929b9f5304..3b002f1499 100644
--- a/habitat/default.toml
+++ b/habitat/default.toml
@@ -3,7 +3,7 @@ run_list = ""
local_mode = true
-# Positive License Acceptance. See https://docs.chef.io/chef_license_accept
+# Positive License Acceptance. See https://docs.chef.io/chef_license_accept/
chef_license = "donotaccept"
# Path to the chef client config on disk. If blank, will default to the one built by habitat.
diff --git a/lib/chef/deprecated.rb b/lib/chef/deprecated.rb
index 12d7cfaa3d..3d6ced6526 100644
--- a/lib/chef/deprecated.rb
+++ b/lib/chef/deprecated.rb
@@ -47,7 +47,7 @@ class Chef
#
# @return [String]
def url
- "#{BASE_URL}#{self.class.doc_page}"
+ "#{BASE_URL}#{self.class.doc_page}/"
end
# Render the user-visible message for this deprecation.
@@ -235,7 +235,7 @@ class Chef
class Generic < Base
def url
- "https://docs.chef.io/chef_deprecations_client"
+ "https://docs.chef.io/chef_deprecations_client/"
end
def to_s
diff --git a/spec/data/cookbooks/starter/recipes/default.rb b/spec/data/cookbooks/starter/recipes/default.rb
index c48b9a4fca..4b5f712879 100644
--- a/spec/data/cookbooks/starter/recipes/default.rb
+++ b/spec/data/cookbooks/starter/recipes/default.rb
@@ -1,4 +1,4 @@
# This is a Chef recipe file. It can be used to specify resources which will
# apply configuration to a server.
-# For more information, see the documentation: https://docs.chef.io/essentials_cookbook_recipes.html
+# For more information, see the documentation: https://docs.chef.io/recipes/
diff --git a/spec/unit/data_collector_spec.rb b/spec/unit/data_collector_spec.rb
index 6945e49de8..1f0ca4da14 100644
--- a/spec/unit/data_collector_spec.rb
+++ b/spec/unit/data_collector_spec.rb
@@ -626,7 +626,7 @@ describe Chef::DataCollector do
it "collects deprecation messages" do
location = Chef::Log.caller_location
events.deprecation(Chef::Deprecated.create(:internal_api, "deprecation warning", location))
- expect_converge_message("deprecations" => [{ location: location, message: "deprecation warning", url: "https://docs.chef.io/deprecations_internal_api" }])
+ expect_converge_message("deprecations" => [{ location: location, message: "deprecation warning", url: "https://docs.chef.io/deprecations_internal_api/" }])
send_run_failed_or_completed_event
end
end
diff --git a/spec/unit/deprecated_spec.rb b/spec/unit/deprecated_spec.rb
index 144a8d2073..993a4dd564 100644
--- a/spec/unit/deprecated_spec.rb
+++ b/spec/unit/deprecated_spec.rb
@@ -44,11 +44,11 @@ describe Chef::Deprecated do
let(:location) { "the location" }
it "displays the full URL" do
- expect(TestDeprecation.new.url).to eql("https://docs.chef.io/deprecations_test")
+ expect(TestDeprecation.new.url).to eql("https://docs.chef.io/deprecations_test/")
end
it "formats a complete deprecation message" do
- expect(TestDeprecation.new(message, location).to_s).to eql("Deprecation CHEF-999 from the location\n\n A test message\n\nPlease see https://docs.chef.io/deprecations_test for further details and information on how to correct this problem.")
+ expect(TestDeprecation.new(message, location).to_s).to eql("Deprecation CHEF-999 from the location\n\n A test message\n\nPlease see https://docs.chef.io/deprecations_test/ for further details and information on how to correct this problem.")
end
end