Skip to content

Commit 6fd52b0

Browse files
committed
Update OpenTofu documentation (1.12.0)
1 parent aaf28e5 commit 6fd52b0

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

lib/docs/scrapers/opentofu.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Docs
22
class Opentofu < UrlScraper
3-
self.name = 'Opentofu'
3+
self.name = 'OpenTofu'
44
self.type = 'opentofu'
55
self.links = {
66
home: 'https://opentofu.org/',
@@ -12,15 +12,23 @@ class Opentofu < UrlScraper
1212
# Don't clean them
1313
options[:clean_text] = false
1414
options[:trailing_slash] = true
15+
# https://github.com/opentofu/opentofu/blob/main/LICENSE
1516
options[:attribution] = <<-HTML
16-
Copyright &copy; OpenTofu a Series of LF Projects, LLC and its contributors. Documentation materials incorporate content licensed under the MPL-2.0 license from other authors.
17+
Copyright (c) The OpenTofu Authors<br>
18+
Copyright (c) 2014 HashiCorp, Inc.<br>
19+
Mozilla Public License, version 2.0
1720
HTML
1821

1922
def get_latest_version(opts)
2023
contents = get_latest_github_release('opentofu', 'opentofu', opts)
2124
contents.sub("v", "")
2225
end
2326

27+
version '1.12' do
28+
self.release = '1.12.0'
29+
self.base_url = "https://opentofu.org/docs/v#{self.version}/"
30+
end
31+
2432
version '1.11' do
2533
self.release = '1.11.5'
2634
self.base_url = "https://opentofu.org/docs/v#{self.version}/"

0 commit comments

Comments
 (0)