History

Finish Crystal scraper

Thibaut Courouble committed 10 years ago

Commit 3036c711 parent 0324bdc16 files · +156 −34Browse files

Showing the changes to assets/javascripts (5 of 16 files). Show all

Unified · Split

5 files
  1. assets/javascripts/collections/types.coffee +1 −1
  2. assets/javascripts/news.json +3 −0
  3. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  4. assets/javascripts/views/pages/crystal.coffee +0 −6
  5. assets/javascripts/views/pages/simple.coffee +1 −0
assets/javascripts/collections/types.coffee+1−1
@@ -7,7 +7,7 @@ class app.collections.Types extends app.Collection · 6 unmodified lines
77 (result[@_groupFor(type)] ||= []).push(type)
88 result.filter (e) -> e.length > 0
99
10− GUIDES_RGX = /(^|[\s\(])(guides?|tutorials?|reference|playbooks|getting\ started|manual)($|[\s\):])/i
10+ GUIDES_RGX = /(^|[\s\(])(guides?|tutorials?|reference|book|getting\ started|manual)($|[\s\):])/i
1111
1212 _groupFor: (type) ->
1313 if GUIDES_RGX.test(type.name)
assets/javascripts/news.json+3−0
@@ -1,5 +1,8 @@
11 [
22 [
3+ "2016-07-24",
4+ "New documentation: <a href=\"/crystal/\">Crystal</a>"
5+ ], [
36 "2016-07-03",
47 "New documentations: <a href=\"/cmake/\">CMake</a> and <a href=\"/matplotlib/\">Matplotlib</a>"
58 ], [
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -160,6 +160,11 @@ credits = [ · 159 unmodified lines
160160 '2005-2016 Mozilla Developer Network and individual contributors',
161161 'CC BY-SA',
162162 'https://creativecommons.org/licenses/by-sa/2.5/'
163+ ], [
164+ 'Crystal',
165+ '2012-2016 Manas Technology Solutions',
166+ 'Apache',
167+ 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
163168 ], [
164169 'D3.js',
165170 '2010-2016 Michael Bostock',
assets/javascripts/views/pages/crystal.coffee+0−6
@@ -1,6 +0,0 @@
1−#= require views/pages/base
2−
3−class app.views.CrystalPage extends app.views.BasePage
4− prepare: ->
5− @highlightCode @findAllByTag('pre'), 'ruby'
6− return
assets/javascripts/views/pages/simple.coffee+1−0
@@ -10,6 +10,7 @@ app.views.AngularPage = · 9 unmodified lines
1010 app.views.AngularjsPage =
1111 app.views.CakephpPage =
1212 app.views.ChaiPage =
13+app.views.CrystalPage =
1314 app.views.DrupalPage =
1415 app.views.ElixirPage =
1516 app.views.EmberPage =