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 @@
11 [
22 [
33 "2018-07-08",
4− "New documentation: <a href=\"/leaflet/\">Leaflet</a>"
4+ "New documentations: <a href=\"/leaflet/\">Leaflet</a>, <a href=\"/terraform/\">Terraform</a>"
55 ], [
66 "2018-03-26",
77 "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
645645 '2018 The TensorFlow Authors',
646646 'CC BY',
647647 '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'
648653 ], [
649654 'Twig',
650655 '2009-2017 The Twig Team',
assets/stylesheets/application-dark.css.scss+1−0
@@ -96,6 +96,7 @@ · 95 unmodified lines
9696 'pages/support_tables',
9797 'pages/tcl_tk',
9898 'pages/tensorflow',
99+ 'pages/terraform',
99100 'pages/underscore',
100101 'pages/vue',
101102 'pages/webpack',
assets/stylesheets/global/_icons.scss+1−0
@@ -171,3 +171,4 @@ · 170 unmodified lines
171171 ._icon-jekyll:before { background-position: -1rem -3rem; @extend %doc-icon-2; }
172172 ._icon-babel:before { background-position: -2rem -3rem; @extend %doc-icon-2; }
173173 ._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
1919 node['data-language'] = 'ruby'
2020 end
2121 node.content = node.content
22+ node.remove_attribute('class')
23+ end
24+
25+ css('.highlight').each do |node|
26+ node.before(node.children).remove
2227 end
2328
2429 doc
lib/docs/scrapers/terraform.rb+1−2
@@ -4,7 +4,6 @@ module Docs · 3 unmodified lines
44 self.type = 'terraform'
55 self.release = '0.11.7'
66 self.base_url = 'https://www.terraform.io/docs/'
7− # self.dir = '/mnt/c/Users/Doug/Code/terraform-docs/www.terraform.io/docs'
87 self.root_path = 'index.html'
98 self.links = {
109 home: 'https://www.terraform.io/',
@@ -16,7 +15,7 @@ module Docs · 5 unmodified lines
1615 options[:skip_patterns] = [/enterprise/, /enterprise-legacy/]
1716
1817 options[:attribution] = <<-HTML
19− Copyright &copy; 2018 HashiCorp</br>
18+ &copy; 2018 HashiCorp</br>
2019 Licensed under the MPL 2.0 License.
2120 HTML
2221 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