From 61930288b8b157750dcf069e7e5814e4934a4319 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 4 Jun 2017 17:00:16 -0400 Subject: [PATCH] Add Electron documentation --- assets/images/docs-2.png | Bin 12074 -> 12569 bytes assets/images/docs-2@2x.png | Bin 28082 -> 29296 bytes assets/javascripts/news.json | 2 +- .../templates/pages/about_tmpl.coffee | 11 +++-- assets/javascripts/views/pages/simple.coffee | 1 + assets/stylesheets/global/_icons.scss | 1 + assets/stylesheets/pages/_simple.scss | 1 + lib/docs/filters/electron/clean_html.rb | 37 ++++++++++++++ lib/docs/filters/electron/entries.rb | 46 ++++++++++++++++++ lib/docs/scrapers/electron.rb | 26 ++++++++++ public/icons/docs/electron/16.png | Bin 0 -> 532 bytes public/icons/docs/electron/16@2x.png | Bin 0 -> 1186 bytes public/icons/docs/electron/SOURCE | 1 + 13 files changed, 122 insertions(+), 4 deletions(-) create mode 100644 lib/docs/filters/electron/clean_html.rb create mode 100644 lib/docs/filters/electron/entries.rb create mode 100644 lib/docs/scrapers/electron.rb create mode 100644 public/icons/docs/electron/16.png create mode 100644 public/icons/docs/electron/16@2x.png create mode 100644 public/icons/docs/electron/SOURCE diff --git a/assets/images/docs-2.png b/assets/images/docs-2.png index 827661fd12539de6918844a59f55d57194df1445..5335254810b9c3b13bd254ad659e27a0417e0921 100644 GIT binary patch delta 2803 zcmVk zet4F&{reRvvq@@8*F*Q<8)_UqU2-B(7=A9OgP;5#0CyGJD^tddUN=8_;f5!pmsMn#O5RG-xr_fA zl@QRs#`{@`tg|YrcO4tMaDQ9+;I zQ_=gPe+$p}FaGFQ=YZ=Pe0Qg0 z&Fj(*@PG=jMZQ3zDcBbI67_t<nM6X|P~>6yu*`Y*F*a+9L023qI~q%3}ZXxGEX2 zC2)8^g@q;MkD%q1pivLgEI5U!)sOH@$G6>RD{d;I-#nR*KYKL~BkUwj^NY5ba1 z`BM{ZmFAh*f8}{|ZQC{`Im^puIx04;D1P-Db|7l=npX;|XA7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8n{Hj8uV0jRyEQD6L!eAKPW^ zgmbr>NcC-TjT~(E3|E(q`eL?GiIzKLQgwaCpiZ@!1p#`#FkZu`u=>T>IhxNz2*oiM3Vb;l ziSd}I@K+TC9M2&DJ)5gQbf#~~Rc6^S@AwFQi-MEsa}m3OuBf2uPf5o!jfT|GeY@bE zEv$|N&gWU8>E8)!C8BTe{^e~vMmO($6qYMLpI^`pAxu^2jv27Yo3(2ej;6Ejiv~Xt zh!KN&KI&|Rs{aO~p43^+glx2f3xAx+D!EHvp^@W4A=y+gWcSK3BE6{BLl0&5&b`Mb zVcdN5^k61!X+5pC}XHC(yAdkV_R1>0y|9pTv)1YdmW z81gx`zEIW!h(fp#1g?^8POf4-q%g_lI%cWKhy80?BD(Mbnx?V`O(;QheHNe!y&V@f zr7&2o>$7I`tZ-(mS8PY;X0{}1MXT8fYmH5F+o*_88BkPn`M5T1v0gQ|RlAw0YXGsY z^1CS(9+iHe1{0$E*Uz!!)6GJ5pa_>$c~w|B4UR z_~}|t8Q}raWBgl_>}}R>kg6XtocPqlhr*ek1`9#jAYI(Qh{t=NyY=>lkMa6Oz)pl2?yp0xf8gF~tY9(tZqd4MaWXff7A5ih@q3x<>W zde_!cPnqEyH`Z3E(nB=iS03+cI_`hgVdk8^R8g6!t<6#x4G5K;YHjdK zkKE=Q5UYRQJs!f+u8eQ7*9~xNGyEak+f7XDmw>u%U?mej%IVSe`Tg`E-_`x!lPlZ? zqyl)`WCANNfn}ARG34Jbss~NM{(+c6cXLBABC8-WjQ0<5F30&d&RHt#5m^r=+yyc& z$;8f>ce@%|sHjzFhft4KW9$FBsR#Lw{;%qRKG2;3@K3g$7BI{I?}Ghba3KF%$o~fP zf5g%Kf4@v4&|Mz%mmr3{r-P74>~sZB%5+^%bTR?raxb`f#g0_>Kl;>Fw3VwB!QuY{ Dhu>3G diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index ea2659cb..4e428963 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,7 +1,7 @@ [ [ "2017-06-04", - "New documentation: Pug" + "New documentations: Electron, Pug" ], [ "2017-05-14", "New documentations: Jest, Jasmine and Liquid" diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 6036ce00..14f229c3 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -219,15 +219,20 @@ credits = [ 'GPLv2', 'https://api.drupal.org/api/drupal/LICENSE.txt' ], [ - 'Ember.js', - '2017 Yehuda Katz, Tom Dale and Ember.js contributors', + 'Electron', + '2013-2017 GitHub Inc.', 'MIT', - 'https://raw.githubusercontent.com/emberjs/ember.js/master/LICENSE' + 'https://raw.githubusercontent.com/electron/electron/master/LICENSE' ], [ 'Elixir', '2012-2017 Plataformatec', 'Apache', 'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE' + ], [ + 'Ember.js', + '2017 Yehuda Katz, Tom Dale and Ember.js contributors', + 'MIT', + 'https://raw.githubusercontent.com/emberjs/ember.js/master/LICENSE' ], [ 'Erlang', '2010-2017 Ericsson AB', diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee index 91fd1c5c..c86c65f9 100644 --- a/assets/javascripts/views/pages/simple.coffee +++ b/assets/javascripts/views/pages/simple.coffee @@ -22,6 +22,7 @@ app.views.CrystalPage = app.views.D3Page = app.views.DockerPage = app.views.DrupalPage = +app.views.ElectronPage = app.views.ElixirPage = app.views.EmberPage = app.views.ErlangPage = diff --git a/assets/stylesheets/global/_icons.scss b/assets/stylesheets/global/_icons.scss index ff754bc8..1240941a 100644 --- a/assets/stylesheets/global/_icons.scss +++ b/assets/stylesheets/global/_icons.scss @@ -173,3 +173,4 @@ ._icon-love:before { background-position: -9rem -1rem; @extend %doc-icon-2; } ._icon-jasmine:before { background-position: 0 -2rem; @extend %doc-icon-2; } ._icon-pug:before { background-position: -1rem -2rem; @extend %doc-icon-2; } +._icon-electron:before { background-position: -2rem -2rem; @extend %doc-icon-2; } diff --git a/assets/stylesheets/pages/_simple.scss b/assets/stylesheets/pages/_simple.scss index 4b2ef274..6db17ba3 100644 --- a/assets/stylesheets/pages/_simple.scss +++ b/assets/stylesheets/pages/_simple.scss @@ -22,6 +22,7 @@ ._chai, ._codeceptjs, ._docker, +._electron, ._fish, ._flow, ._gnu, diff --git a/lib/docs/filters/electron/clean_html.rb b/lib/docs/filters/electron/clean_html.rb new file mode 100644 index 00000000..a29b876b --- /dev/null +++ b/lib/docs/filters/electron/clean_html.rb @@ -0,0 +1,37 @@ +module Docs + class Electron + class CleanHtmlFilter < Filter + def call + css('.header-link', 'hr + .text-center', 'hr').remove + + css('.grid', '.row', '.col-ms-12').each do |node| + node.before(node.children).remove + end + + css('h2 > a').each do |node| + node.before(node.children).remove + end if root_page? + + at_css('h2').name = 'h1' unless at_css('h1') + + css('h3', 'h4', 'h5').each do |node| + node.name = node.name.sub(/\d/) { |i| i.to_i - 1 } unless node.name == 'h3' && node.at_css('code') + end if !at_css('h2') && at_css('h4') + + css('div.highlighter-rouge').each do |node| + node['data-language'] = node['class'][/language-(\w+)/, 1] if node['class'] + node.content = node.content.strip + node.name = 'pre' + end + + css('.highlighter-rouge').remove_attr('class') + + css('pre').each do |node| + node.content = node.content + end + + doc + end + end + end +end diff --git a/lib/docs/filters/electron/entries.rb b/lib/docs/filters/electron/entries.rb new file mode 100644 index 00000000..0f56e7e1 --- /dev/null +++ b/lib/docs/filters/electron/entries.rb @@ -0,0 +1,46 @@ +module Docs + class Electron + class EntriesFilter < Docs::EntriesFilter + def get_name + name = at_css('h1, h2').content + name.remove! 'Class: ' + name.remove! ' Object' + name.remove! ' Function' + name.remove! ' Option' + name.remove! ' Tag' + name + end + + def get_type + if subpath.start_with?('tutorial') || slug.in?(%w(glossary/ faq/)) + 'Guides' + elsif subpath.start_with?('development') + 'Guides: Development' + elsif slug.in?(%w(api/synopsis/ api/chrome-command-line-switches/)) + 'API' + elsif at_css('h1, h2').content.include?(' Object') + 'API: Objects' + else + name + end + end + + def additional_entries + return [] unless slug.start_with?('api/') + + css('h3 > code', 'h4 > code').each_with_object [] do |node, entries| + next if node.previous.try(:content).present? || node.next.try(:content).present? + name = node.content + name.sub! %r{\(.*\)}, '()' + name.remove! 'new ' + name = "" if self.name == '' && !name.start_with?('') + entries << [name, node.parent['id']] unless name == self.name + end + end + + def include_default_entry? + slug != 'api/' + end + end + end +end diff --git a/lib/docs/scrapers/electron.rb b/lib/docs/scrapers/electron.rb new file mode 100644 index 00000000..8a586dbb --- /dev/null +++ b/lib/docs/scrapers/electron.rb @@ -0,0 +1,26 @@ +module Docs + class Electron < UrlScraper + self.type = 'electron' + self.base_url = 'https://electron.atom.io/docs/' + self.release = '1.6.10' + self.links = { + home: 'https://electron.atom.io/', + code: 'https://github.com/electron/electron' + } + + html_filters.push 'electron/clean_html', 'electron/entries' + + options[:trailing_slash] = true + options[:container] = '.page-section > .container, .page-section > .container-narrow' + options[:skip] = %w(guides/ development/ tutorial/ versions/ all/) + options[:replace_paths] = { + 'api/web-view-tag/' => 'api/webview-tag/', + 'api/web-view-tag' => 'api/webview-tag/' + } + + options[:attribution] = <<-HTML + © 2013–2017 GitHub Inc.
+ Licensed under the MIT license. + HTML + end +end diff --git a/public/icons/docs/electron/16.png b/public/icons/docs/electron/16.png new file mode 100644 index 0000000000000000000000000000000000000000..8a95c788839e633e843f272f03ab71798a197e02 GIT binary patch literal 532 zcmV+v0_**WP)M4xH4W^CEtuAR1Rhm(?LhBP0y%r`Y|2eV5rW(Y(_ih zIZ_C4Q*itq=^`oWV2&~6y3x3!TvT0Xa~2bKlY{F^-jhU-$q>0bFdGR2{QXo`N%>9!fJ`F{9J(RT_7(X@{IUz5>W?cbuJF) W{tXreUcfK_0000@0<*g+nWuAPm<7c$e@TB~#Us<{#44NT`{Jp4E;ux<7n!@c zNsEr(52#(g;t|8A5+%16Vb|Jz`mL;aCfOj3?FFf}!|J@O#X2J7HV!WZiGWuuKiMw(4$~W)Al;cWIICPIys=MP zVgXPh>@!Qn3$;@c|9XCYOFHjPq!09znX?<9=_jslegzlZF6~-G#y&=drIPuYZ}009 zIS?1LMtwY+Sm+McU?FZOLYHc_R@R(X+;+7(_xff7#<5DX?*nr)lM=_{Hsd1QOA!7` zreKub3D`Qj(rlhzCOxLkdWVgiB*#Z`W3y>PeI1j4svHw#CKQ)k#yBSR0<(8d*bZ7Q zEO0?Rg{QMKZb$l@X0wI*FeVAP3}i)UI`#d_N? zE`UC~X%ipPk6$LrFBW! z5Y;NGI%E4o{lwwG)dKUHBMAl^vyiSL8;{Cw&*fy4 z9+z*3Uq#~%XkQM3;k}g$Y(M_AWKAzLJM<*Sm!`*ORlY4{KCDebJ#8ZJE5X#uJ>P)9 z2KI8J^x!-FWo2yhqS~Q_fQH(zWC80tysSaSI{TlY+GS?D0ep) zki~4OsdP4F1HN5asfme_8n^sqN9JA#$yRz9){xi`R_E~Z83 zA50Ya;Izg9lyMZPC9SMj@#Ck;efh!357J+!EE8IPgeQQkT?0R4%GNeQOoG85Rt`Z}yX+@c+*5>IgmBzb`=>=Lav!Cf%x#DaOX;~Py=`!Kk;%4ew+5!mOZ9Xu zFho|Y3{=Aka5* zm{6buQ|WI&oM*)$XqXtzAmvgm$@652*1nweKa=4vL6oUGFaQ7m07*qoM6N<$f+C7V AfB*mh literal 0 HcmV?d00001 diff --git a/public/icons/docs/electron/SOURCE b/public/icons/docs/electron/SOURCE new file mode 100644 index 00000000..5186efcc --- /dev/null +++ b/public/icons/docs/electron/SOURCE @@ -0,0 +1 @@ +https://github.com/electron/electron.atom.io/tree/gh-pages/images