Simon Lydell
e908fd4a91
Styling fixes for the documentation
2016-09-24 14:15:54 +02:00
Geoffrey Booth
a8b77fb4e7
Add modules documentation ( #4309 )
2016-09-18 20:54:44 +02:00
Michael Ficarra
8711da03a2
Merge pull request #4080 from lydell/single-newline-at-eof
...
Ensure that all source files end with a single `\n`
2015-09-03 20:57:39 -07:00
Simon Lydell
ae65875c8b
Remove unnecessary .js files
...
The example code in documentation/coffee/*.coffee accidentally had duplicate
compiled .js versions committed: Both as documentation/js/*.js and as
documentation/coffee/*.js.
The former is generated when running `cake doc:site`, while the latter has no
cake task to be generated. Removing the former and then re-compiling index.html
results in all the code examples being missing in the resulting HTML, while
removing the latter makes no difference.
In conclusion, documentation/coffee/*.js must be the unnecessary duplicates.
They are removed by this commit.
2015-09-03 22:15:45 +02:00
Simon Lydell
cea773ec81
CoffeeScript 1.10.0
2015-09-03 20:10:18 +02:00
Simon Lydell
6c6c8d48bf
Ensure that all source files end with a single \n
...
This was done by first checking all files in the repository root by hand, and
then by doing the following:
$ npm i get-stdin@4
$ cat clean.coffee
fs = require 'fs'
stdin = require 'get-stdin'
stdin (text) ->
for file in text.trim().split('\n')
contents = fs.readFileSync file
.toString().replace /\s*$/, '\n'
fs.writeFileSync file, contents
return
$ ls !(node_modules)/**/*.coffee | coffee clean.coffee
2015-09-03 19:20:12 +02:00
Simon Lydell
5095e02b62
Remove unnecessary blank lines at EOF in examples
...
On less wide screens, where the CoffeeScript is above the JavaScript, those
lines resulted in an unnecessarily high box of CoffeeScript code.
2015-08-30 12:41:47 +02:00
Simon Lydell
10aca2a38e
Document destructuring defaults
2015-08-29 19:18:44 +02:00
Jeremy Ashkenas
c37f284771
redoc
2015-05-27 11:57:31 -04:00
Simon Lydell
79a6d89849
Document interpolation in object keys
...
Fixes #3962 .
2015-05-01 17:01:05 +02:00
Simon Lydell
6fb5833843
Improve modulo documentation
...
Fixes #3959 .
2015-05-01 17:00:58 +02:00
Ben Creasy
88529bc339
Replace references to jQuery's 'bind' with 'on'
2015-02-20 14:02:47 -08:00
Jeremy Ashkenas
e0ec8a51e4
CoffeeScript 1.9.0
2015-01-29 12:20:46 -05:00
xixixao
6030ac3a23
Fixes in documentation
2014-01-28 03:30:06 +00:00
xixixao
e1f46cfb9b
Prepare 1.7.0 release
2014-01-26 18:32:12 +00:00
xixixao
ac6a76ee10
Add negative slice end index into docs
2013-11-27 01:01:32 +00:00
Greg Schafer
26c0f7ca2d
Fix constructor_destructuring example to alert a defined value
2013-09-14 14:34:53 -05:00
Jeremy Ashkenas
a3e8de338a
CoffeeScript 1.6.2
2013-03-18 13:06:33 +08:00
Jeremy Ashkenas
304432c197
Merge pull request #2417 from gabehollombe/doc_for_switch_with_no_control_expression
...
Documentation for switch statements with no control expression
2013-03-04 22:27:38 -08:00
Jeremy Ashkenas
eef83a9fcb
CoffeeScript 1.6.1
2013-03-05 11:07:16 +13:00
Jeremy Ashkenas
9f614fedec
CoffeeScript 1.6.0
2013-03-05 08:19:08 +13:00
Jeremy Ashkenas
af53c230a1
CoffeeScript 1.5.0
2013-02-25 21:12:22 +13:00
Jeremy Ashkenas
158d37215a
CoffeeScript 1.4.0
2012-10-23 16:45:31 -04:00
Gabe Hollombe
334dcbd162
Updated example using @epidemian's suggestion
2012-10-16 16:41:14 +11:00
Gabe Hollombe
7065538224
add documentation for using switch without a control expression
2012-07-04 11:57:20 +07:00
Gabe Hollombe
7fdd21b26d
Add example of destructuring assignment in class constructors for options
2012-06-10 11:19:54 +07:00
Jeremy Ashkenas
79492aab36
CoffeeScript 1.3.3
2012-05-15 12:35:40 -04:00
Jeremy Ashkenas
7792a3a6e3
CoffeeScript 1.3.2
2012-05-14 14:45:20 -04:00
Jeremy Ashkenas
60c9b94656
CoffeeScript 1.3.1 (quick bugfix for compound assignment to a global variable
2012-04-10 17:26:23 -04:00
Jeremy Ashkenas
ed8d94f69c
CoffeeScript 1.3.0
2012-04-10 14:57:45 -04:00
clutchski
d74c909930
Documenting default slice indexes.
2012-01-26 15:57:27 -05:00
Jeremy Ashkenas
cda95afd3e
tweaking documentation
2011-12-18 13:41:33 -05:00
Jeremy Ashkenas
0e40feb9af
prepping for 1.2.0
2011-12-18 13:21:00 -05:00
Jo Liss
57e109ff11
Use "index" for index variable in for loop
...
This confused me every time I Ctrl+F'ed the home page for "index" and only got
this cryptic statement:
"Comprehensions replace (and compile into) for loops, with optional guard clauses
and the value of the current array index."
Now I can see how the index is used in the code.
2011-11-23 16:25:21 +01:00
Jeremy Ashkenas
3e41659095
CoffeeScript 1.1.3
2011-11-08 18:01:45 -05:00
Will Bailey
98cc7eb149
[docs] examples of using guards and indices in array comprehensions
2011-09-11 12:43:39 -07:00
Jeremy Ashkenas
1a652a9736
CoffeeScript 1.1.2
2011-08-04 23:17:23 -04:00
Michael Ficarra
d3e809da38
subliminally promoting the use of interpolation in the documentation
2011-07-06 22:15:34 -04:00
Jeremy Ashkenas
9e4fa02cdb
CoffeeScript 1.1.1
2011-05-10 09:27:19 -04:00
Jeremy Ashkenas
09712603c4
coffee-script 1.1.0
2011-05-01 12:08:15 -04:00
Jeremy Ashkenas
c44d9ae923
CoffeeScript 1.0.1
2011-01-31 22:39:12 -05:00
Jeremy Ashkenas
7c7b9a4be1
Merging in 1035 fix. fileName -> filename ... a bit of refactoring.
2011-01-15 10:46:53 -05:00
Jeremy Ashkenas
33d2577fb5
CoffeeScript 1.0.0
2010-12-24 11:02:10 -08:00
Jeremy Ashkenas
3be22bd43b
Documenting and testing 'do'
2010-12-24 09:22:27 -08:00
Jeremy Ashkenas
83a7985a97
more work on site, down to arrays and objects.
2010-12-23 14:26:10 -08:00
Jeremy Ashkenas
e983032762
more docs... scoped loops, --join.
2010-12-22 22:43:13 -08:00
Jeremy Ashkenas
9785fd0333
Bumping site.
2010-12-12 21:41:04 -05:00
Jeremy Ashkenas
2ac5ee4062
Adding an existential infix operator example.
2010-12-11 19:44:11 -05:00
Jeremy Ashkenas
fa53a4c057
CoffeeScript 0.9.6
2010-12-07 00:21:34 -05:00
Jeremy Ashkenas
06647bdd0a
Adding warning about accidentally-comprehended-functions. Issue #896 .
2010-12-05 15:29:28 -05:00