History

Finish Terraform scraper

Thibaut Courouble committed 8 years ago

Commit b4cd5f11 parent 716fc2612 files · +8 −-3Browse files

Unified · Split

12 files
  1. assets/images/docs-2.png +0 −0
  2. assets/images/docs-2@2x.png +0 −0
  3. assets/javascripts/news.json +1 −1
  4. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  5. assets/stylesheets/application-dark.css.scss +1 −0
  6. assets/stylesheets/global/_icons.scss +1 −0
  7. lib/docs/filters/terraform/clean_html.rb +5 −0
  8. lib/docs/scrapers/terraform.rb +1 −2
  9. public/icons/docs-2.pxm +0 −0
  10. public/icons/docs-2@2x.pxm +0 −0
  11. public/icons/docs/terraform/16.png +0 −0
  12. public/icons/docs/terraform/16@2x.png +0 −0
assets/images/docs-2.png+0−0

Binary file not shown.

assets/images/docs-2@2x.png+0−0

Binary file not shown.

assets/javascripts/news.json+1−1
@@ -1,7 +1,7 @@
1[1[
2 [2 [
3 "2018-07-08",3 "2018-07-08",
4 "New documentation: <a href=\"/leaflet/\">Leaflet</a>"4 "New documentations: <a href=\"/leaflet/\">Leaflet</a>, <a href=\"/terraform/\">Terraform</a>"
5 ], [5 ], [
6 "2018-03-26",6 "2018-03-26",
7 "DevDocs is joining the freeCodeCamp community. Read the announcement <a href=\"https://medium.freecodecamp.org/devdocs-is-joining-the-freecodecamp-community-ae185a1c14a6\" target=\"_blank\">here</a>."7 "DevDocs is joining the freeCodeCamp community. Read the announcement <a href=\"https://medium.freecodecamp.org/devdocs-is-joining-the-freecodecamp-community-ae185a1c14a6\" target=\"_blank\">here</a>."
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -645,6 +645,11 @@ credits = [ · 644 unmodified lines
645 '2018 The TensorFlow Authors',645 '2018 The TensorFlow Authors',
646 'CC BY',646 'CC BY',
647 'https://creativecommons.org/licenses/by/3.0/'647 'https://creativecommons.org/licenses/by/3.0/'
648 ], [
649 'Terraform',
650 '2018 HashiCorp',
651 'MPL',
652 'https://raw.githubusercontent.com/hashicorp/terraform-website/master/LICENSE.md'
648 ], [653 ], [
649 'Twig',654 'Twig',
650 '2009-2017 The Twig Team',655 '2009-2017 The Twig Team',
assets/stylesheets/application-dark.css.scss+1−0
@@ -96,6 +96,7 @@ · 95 unmodified lines
96 'pages/support_tables',96 'pages/support_tables',
97 'pages/tcl_tk',97 'pages/tcl_tk',
98 'pages/tensorflow',98 'pages/tensorflow',
99 'pages/terraform',
99 'pages/underscore',100 'pages/underscore',
100 'pages/vue',101 'pages/vue',
101 'pages/webpack',102 'pages/webpack',
assets/stylesheets/global/_icons.scss+1−0
@@ -171,3 +171,4 @@ · 170 unmodified lines
171._icon-jekyll:before { background-position: -1rem -3rem; @extend %doc-icon-2; }171._icon-jekyll:before { background-position: -1rem -3rem; @extend %doc-icon-2; }
172._icon-babel:before { background-position: -2rem -3rem; @extend %doc-icon-2; }172._icon-babel:before { background-position: -2rem -3rem; @extend %doc-icon-2; }
173._icon-leaflet:before { background-position: -3rem -3rem; @extend %doc-icon-2; }173._icon-leaflet:before { background-position: -3rem -3rem; @extend %doc-icon-2; }
174._icon-terraform:before { background-position: -4rem -3rem; @extend %doc-icon-2; }
lib/docs/filters/terraform/clean_html.rb+5−0
@@ -19,6 +19,11 @@ module Docs · 18 unmodified lines
19 node['data-language'] = 'ruby'19 node['data-language'] = 'ruby'
20 end20 end
21 node.content = node.content21 node.content = node.content
22 node.remove_attribute('class')
23 end
24
25 css('.highlight').each do |node|
26 node.before(node.children).remove
22 end27 end
23 28
24 doc29 doc
lib/docs/scrapers/terraform.rb+1−2
@@ -4,7 +4,6 @@ module Docs · 3 unmodified lines
4 self.type = 'terraform'4 self.type = 'terraform'
5 self.release = '0.11.7'5 self.release = '0.11.7'
6 self.base_url = 'https://www.terraform.io/docs/'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'7 self.root_path = 'index.html'
9 self.links = {8 self.links = {
10 home: 'https://www.terraform.io/',9 home: 'https://www.terraform.io/',
@@ -16,7 +15,7 @@ module Docs · 5 unmodified lines
16 options[:skip_patterns] = [/enterprise/, /enterprise-legacy/]15 options[:skip_patterns] = [/enterprise/, /enterprise-legacy/]
17 16
18 options[:attribution] = <<-HTML17 options[:attribution] = <<-HTML
19 Copyright &copy; 2018 HashiCorp</br>18 &copy; 2018 HashiCorp</br>
20 Licensed under the MPL 2.0 License.19 Licensed under the MPL 2.0 License.
21 HTML20 HTML
22 end21 end
public/icons/docs-2.pxm+0−0

Binary file not shown.

public/icons/docs-2@2x.pxm+0−0

Binary file not shown.

public/icons/docs/terraform/16.png+0−0

Binary file not shown.

public/icons/docs/terraform/16@2x.png+0−0

Binary file not shown.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t