Skip to content

Commit fb0639f

Browse files
authored
Merge pull request #4381 from GeoffreyBooth/1.12
[WIP] 1.12.0
2 parents c9de5be + b7dbee2 commit fb0639f

33 files changed

+11895
-1012
lines changed

Cakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit
146146
if file in ['generator_iteration', 'generators', 'modules']
147147
cshtml = cshtml.replace /(yield|import|export|from|as|default) /g, '<span class="keyword">$1</span> '
148148
jshtml = "<pre><code>#{hljs.highlight('javascript', js).value}</code></pre>"
149-
append = if executable is yes then '' else "alert(#{executable});"
149+
append = if executable is yes then '' else "alert(#{executable});".replace /"/g, '&quot;'
150150
if executable and executable isnt yes
151151
cs.replace /(\S)\s*\Z/m, "$1\n\nalert #{executable}"
152152
run = if executable is true then 'run' else "run: #{executable}"
153153
name = "example#{counter}"
154154
script = "<script>window.#{name} = #{JSON.stringify cs}</script>"
155155
load = if showLoad then "<div class='minibutton load' onclick='javascript: loadConsole(#{name});'>load</div>" else ''
156-
button = if executable then "<div class='minibutton ok' onclick='javascript: #{js};#{append}'>#{run}</div>" else ''
156+
button = if executable then """<div class="minibutton ok" onclick="javascript: #{js.replace /"/g, '&quot;'};#{append}">#{run}</div>""" else ''
157157
"<div class='code'>#{cshtml}#{jshtml}#{script}#{load}#{button}<br class='clear' /></div>"
158158

159159
monthNames = [
@@ -221,6 +221,7 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit
221221
codeFor: codeFor()
222222
releaseHeader: releaseHeader
223223
majorVersion: majorVersion
224+
fullVersion: CoffeeScript.VERSION
224225
fs.writeFileSync "docs/v#{majorVersion}/index.html", output
225226
log 'compiled', green, "#{indexFile} → docs/v#{majorVersion}/index.html"
226227

0 commit comments

Comments
 (0)