@@ -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 ,  ' " ' 
150150      if  executable and  executable isnt  yes 
151151        cs .replace  / (\S )\s * \Z / m , " $1\n\n alert #{ 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 ,  ' " ' }  ;#{ 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