Skip to content

Commit

Permalink
Deploy website
Browse files Browse the repository at this point in the history
Deploy website version based on ffa8c1f
  • Loading branch information
Docusaurus bot committed Feb 22, 2024
1 parent 277ca9f commit d5a28c0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/modifiers.html
Original file line number Diff line number Diff line change
Expand Up @@ -563,18 +563,18 @@ <h2><a class="anchor" aria-hidden="true" id="scastie"></a><a href="#scastie" ari
```
</code></pre>
<p>After:</p>
<pre><code class="hljs"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://scastie.scala-lang.org/embedded.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">pre</span> <span class="hljs-attr">class</span>=<span class="hljs-string">'scastie-snippet-315adfcb-b1e8-4914-a5a9-5e586d6f8c00'</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">pre</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript"><span class="hljs-built_in">window</span>.addEventListener(<span class="hljs-string">'load'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
scastie.Embedded(<span class="hljs-string">'.scastie-snippet-315adfcb-b1e8-4914-a5a9-5e586d6f8c00'</span>, {
<span class="hljs-attr">code</span>: <span class="hljs-string">`val x = 1 + 2
println(x)`</span>,
<span class="hljs-attr">theme</span>: <span class="hljs-string">'light'</span>,
<span class="hljs-attr">isWorksheetMode</span>: <span class="hljs-literal">true</span>,
<span class="hljs-attr">targetType</span>: <span class="hljs-string">'jvm'</span>,
<span class="hljs-attr">scalaVersion</span>: <span class="hljs-string">'2.12.6'</span>
<pre><code class="hljs">&lt;script src=<span class="hljs-string">"https://scastie.scala-lang.org/embedded.js"</span>&gt;&lt;/script&gt;
&lt;pre class='scastie-snippet-cf44175c-<span class="hljs-number">37e5</span>-<span class="hljs-number">41b9</span>-9f11-9e39c3ab5957'&gt;&lt;/pre&gt;
&lt;script&gt;window.addEventListener('<span class="hljs-built_in">load</span>', function() {
scastie.Embedded('.scastie-snippet-cf44175c-<span class="hljs-number">37e5</span>-<span class="hljs-number">41b9</span>-9f11-9e39c3ab5957', {
code: `val x = <span class="hljs-number">1</span> + <span class="hljs-number">2</span>
println(x)`,
theme: 'light',
isWorksheetMode: <span class="hljs-literal">true</span>,
targetType: 'jvm',
scalaVersion: '<span class="hljs-number">2.12</span><span class="hljs-number">.6</span>'
})
})</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
})&lt;/script&gt;
</code></pre>
<blockquote>
<p>⚠️ Inline snippets are slower to run than embedded ones, since they won't be
Expand Down

0 comments on commit d5a28c0

Please sign in to comment.