terraform.rb 687 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Terraform < UrlScraper
  3. self.name = 'Terraform'
  4. self.type = 'terraform'
  5. self.release = '0.11.7'
  6. self.base_url = 'https://www.terraform.io/docs/'
  7. # self.dir = '/mnt/c/Users/Doug/Code/terraform-docs/www.terraform.io/docs'
  8. self.root_path = 'index.html'
  9. self.links = {
  10. home: 'https://www.terraform.io/',
  11. code: 'https://github.com/hashicorp/terraform'
  12. }
  13. html_filters.push 'terraform/entries', 'terraform/clean_html'
  14. options[:skip_patterns] = [/enterprise/, /enterprise-legacy/]
  15. options[:attribution] = <<-HTML
  16. Copyright &copy; 2018 HashiCorp</br>
  17. Licensed under the MPL 2.0 License.
  18. HTML
  19. end
  20. end