History

Update CoffeeScript documentation (1.12.5)

Thibaut Courouble committed 9 years ago

Commit 2ccd24a1 parent 7fbb7612 files · +7 −7Browse files

Unified · Split

2 files
  1. lib/docs/filters/coffeescript/entries.rb +6 −6
  2. lib/docs/scrapers/coffeescript.rb +1 −1
lib/docs/filters/coffeescript/entries.rb+6−6
@@ -22,9 +22,9 @@ module Docs · 21 unmodified lines
22 ['Array slicing and splicing', 'slices', 'Language'],22 ['Array slicing and splicing', 'slices', 'Language'],
23 ['Ranges', 'slices', 'Language'],23 ['Ranges', 'slices', 'Language'],
24 ['Expressions', 'expressions', 'Language'],24 ['Expressions', 'expressions', 'Language'],
25 ['?', 'the-existential-operator', 'Operators'],25 ['?', 'existential-operator', 'Operators'],
26 ['?=', 'the-existential-operator', 'Operators'],26 ['?=', 'existential-operator', 'Operators'],
27 ['?.', 'the-existential-operator', 'Operators'],27 ['?.', 'existential-operator', 'Operators'],
28 ['class', 'classes', 'Statements'],28 ['class', 'classes', 'Statements'],
29 ['extends', 'classes', 'Operators'],29 ['extends', 'classes', 'Operators'],
30 ['super', 'classes', 'Statements'],30 ['super', 'classes', 'Statements'],
@@ -37,14 +37,14 @@ module Docs · 6 unmodified lines
37 ['for...from', 'fat-arrow', 'Statements'],37 ['for...from', 'fat-arrow', 'Statements'],
38 ['Embedded JavaScript', 'embedded', 'Language'],38 ['Embedded JavaScript', 'embedded', 'Language'],
39 ['switch...when...else', 'switch', 'Statements'],39 ['switch...when...else', 'switch', 'Statements'],
40 ['try...catch...finally', 'try', 'Statements'],40 ['try...catch...finally', 'try-catch', 'Statements'],
41 ['Chained comparisons', 'comparisons', 'Language'],41 ['Chained comparisons', 'comparisons', 'Language'],
42 ['#{} interpolation', 'strings', 'Language'],42 ['#{} interpolation', 'strings', 'Language'],
43 ['Block strings', 'strings', 'Language'],43 ['Block strings', 'strings', 'Language'],
44 ['"""', 'strings', 'Language'],44 ['"""', 'strings', 'Language'],
45 ['Block comments', 'strings', 'Language'],45 ['Block comments', 'strings', 'Language'],
46 ['###', 'strings', 'Language'],46 ['###', 'strings', 'Language'],
47 ['Tagged Template Literals', 'tagged-template-literals', 'Language'],47 ['Tagged Template Literals', 'tagged-template-literals', 'Language'],
48 ['Block regexes', 'regexes', 'Language'],48 ['Block regexes', 'regexes', 'Language'],
49 ['///', 'regexes', 'Language'],49 ['///', 'regexes', 'Language'],
50 ['Modules', 'modules', 'Language'],50 ['Modules', 'modules', 'Language'],
@@ -59,7 +59,7 @@ module Docs · 8 unmodified lines
59 entries = ENTRIES.dup59 entries = ENTRIES.dup
60 60
61 # Operators61 # Operators
62 css('.definitions td:first-child > code').each do |node|62 at_css('#operators ~ table').css('td:first-child > code').each do |node|
63 node.content.split(', ').each do |name|63 node.content.split(', ').each do |name|
64 next if %w(true false yes no on off this).include?(name)64 next if %w(true false yes no on off this).include?(name)
65 name.sub! %r{\Aa (.+) b\z}, '\1'65 name.sub! %r{\Aa (.+) b\z}, '\1'
lib/docs/scrapers/coffeescript.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Coffeescript < UrlScraper2 class Coffeescript < UrlScraper
3 self.name = 'CoffeeScript'3 self.name = 'CoffeeScript'
4 self.type = 'coffeescript'4 self.type = 'coffeescript'
5 self.release = '1.12.3'5 self.release = '1.12.5'
6 self.base_url = 'http://coffeescript.org'6 self.base_url = 'http://coffeescript.org'
7 self.links = {7 self.links = {
8 home: 'http://coffeescript.org',8 home: 'http://coffeescript.org',