@@ -5,7 +5,7 @@ import DownloadButton from "../src/components/DownloadButton"
5
5
import {currentOs } from " ../src/components/osUtils" ;
6
6
7
7
<SectionAbout title = " Advanced Installation" >
8
- <div class = " margin--lg" />
8
+ <div className = " margin--lg" />
9
9
<Tabs
10
10
groupId = " operating-systems-specific"
11
11
defaultValue = { currentOs ()}
@@ -232,7 +232,7 @@ brew install Virtuslab/scala-cli/scala-cli
232
232
233
233
234
234
<SectionAbout title = " Standalone launcher" >
235
- <div class = " margin--lg" />
235
+ <div className = " margin--lg" />
236
236
<Tabs
237
237
defaultValue = { currentOs () == ' win' ? ' windows' : ' macOS/Linux' }
238
238
groupId = " specific-standalone-launcher"
@@ -268,7 +268,7 @@ Script to automatically download and cache standalone `scala-cli` launcher.
268
268
269
269
270
270
<SectionAbout title = " Shell completions" >
271
- <div class = " margin--lg" />
271
+ <div className = " margin--lg" />
272
272
<Tabs
273
273
defaultValue = { currentOs () == ' mac' ? ' zsh' : ' bash' }
274
274
groupId = " shell-specific"
@@ -283,11 +283,31 @@ Script to automatically download and cache standalone `scala-cli` launcher.
283
283
284
284
285
285
Try the completions with
286
+
287
+ <Tabs groupId = " shell-specific"
288
+ defaultValue = " bash"
289
+ values = { [
290
+ {label: ' Bash' , value: ' bash' },
291
+ {label: ' zsh' , value: ' zsh' },
292
+ ]} >
293
+ <TabItem value = " bash" >
294
+
295
+ ```
296
+ eval "$(scala-cli install completions --env --shell bash)"
297
+ scala-cli --<TAB>
298
+ ```
299
+
300
+ </TabItem >
301
+ <TabItem value = " zsh" >
302
+
286
303
```
287
- eval "$(scala-cli install completions --env)"
304
+ eval "$(scala-cli install completions --env --shell zsh )"
288
305
scala-cli --<TAB>
289
306
```
290
307
308
+ </TabItem >
309
+ </Tabs >
310
+
291
311
Install them on your system with
292
312
``` bash
293
313
scala-cli install completions
@@ -315,4 +335,22 @@ scala-cli install completions --shell zsh
315
335
316
336
</TabItem >
317
337
</Tabs >
338
+ </div ></div >
339
+
340
+ <div id = " scala-js" />
341
+ <SectionAbout title = " Scala JS" />
342
+ <div className = " row" ><div className = " col col--9 col--offset-1 padding--lg advanced_install_methods" >
343
+
344
+ To run Scala JS applications [ Node.js] ( https://nodejs.org/ ) needs to be installed. Scala CLI at this moment does not manage Node.js however it may change in the future.
345
+
346
+ </div ></div >
347
+
348
+ <div id = " scala-native" />
349
+ <SectionAbout title = " Scala Native" />
350
+ <div className = " row" ><div className = " col col--9 col--offset-1 padding--lg advanced_install_methods" >
351
+
352
+ [ Clang] ( https://llvm.org/docs/GettingStarted.html#requirements ) is required to compile and run Scala Native applications. Using some functionalities known from JDK (like using ` java.util.zip ` package) require additional packages to be installed.
353
+
354
+ Scala Native page contains detailed [ installation guide] ( https://scala-native.readthedocs.io/en/latest/user/setup.html#installing-clang-and-runtime-dependencies ) .
355
+
318
356
</div ></div >
0 commit comments