@@ -146,14 +146,14 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit
146
146
if file in [' generator_iteration' , ' generators' , ' modules' ]
147
147
cshtml = cshtml .replace / (yield| import| export| from| as| default) / g , ' <span class="keyword">$1</span> '
148
148
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 , ' " '
150
150
if executable and executable isnt yes
151
151
cs .replace / (\S )\s * \Z / m , " $1\n\n alert #{ executable} "
152
152
run = if executable is true then ' run' else " run: #{ executable} "
153
153
name = " example#{ counter} "
154
154
script = " <script>window.#{ name} = #{ JSON .stringify cs} </script>"
155
155
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 , ' " ' } ;#{ append} " >#{ run} </div>"" " else ' '
157
157
" <div class='code'>#{ cshtml}#{ jshtml}#{ script}#{ load}#{ button} <br class='clear' /></div>"
158
158
159
159
monthNames = [
@@ -221,6 +221,7 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit
221
221
codeFor : codeFor ()
222
222
releaseHeader : releaseHeader
223
223
majorVersion : majorVersion
224
+ fullVersion : CoffeeScript .VERSION
224
225
fs .writeFileSync " docs/v#{ majorVersion} /index.html" , output
225
226
log ' compiled' , green, " #{ indexFile} → docs/v#{ majorVersion} /index.html"
226
227
0 commit comments