-
Notifications
You must be signed in to change notification settings - Fork 326
add explicit instructions to install page #1373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
linux: curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup | ||
macOS-default: curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup | ||
macOS-brew: brew install coursier/formulas/coursier && cs setup | ||
windows-link: https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-win32.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div {% if include.id %} id="{{include.id}}" {% endif %} class="alt-details"> | ||
<button class="alt-details-toggle">{{include.title}}</button> | ||
<div class="alt-details-detail"> | ||
{{include.detail}} | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="code-snippet-area"> | ||
{% unless include.nocopy %} | ||
<div class="code-snippet-buttons"> | ||
<button class="copy-button"><i class="fa fa-clone"></i></button> | ||
</div> | ||
{% endunless %} | ||
<pre class="code-snippet-display"><code class="{{include.language}}">{{include.codeSnippet}}</code></pre> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div {% if include.id %} id="{{include.id}}" {% endif %} class="tabsection"> | ||
<ul class="nav-tab"> | ||
{% for tabRoot in include.collection %} | ||
<li class="item-tab"> | ||
<a class="item-tab-link {% if tabRoot.defaultTab %} active{% endif %}" | ||
data-target="{{tabRoot.tabId}}">{{tabRoot.tabLabel}}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% for tabRoot in include.collection %} | ||
<div class="tabcontent {% if tabRoot.defaultTab %}active{% endif %}" data-tab="{{tabRoot.tabId}}"> | ||
{{tabRoot.content}} | ||
</div> | ||
{% endfor %} | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
tabId: macos | ||
tabLabel: macOS | ||
--- | ||
<div class="text-step wrap-inline"> | ||
<div class="wrap"> | ||
<p>Run the following command in your terminal, following the on-screen instructions:</p> | ||
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-brew %} | ||
{% assign homebrewAlt = "Alternatively, if you don't use Homebrew:" %} | ||
{% capture homebrewDetail %} | ||
<div class="wrap-narrow"> | ||
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-default %} | ||
</div> | ||
{% endcapture %} | ||
{% include alt-details.html | ||
title=homebrewAlt | ||
detail=homebrewDetail | ||
%} | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
tabId: linux | ||
tabLabel: Linux | ||
--- | ||
<div class="text-step wrap-inline"> | ||
<div class="wrap"> | ||
<p>Run the following command in your terminal, following the on-screen instructions:</p> | ||
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.linux %} | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
tabId: windows | ||
tabLabel: Windows | ||
--- | ||
<div class="text-step wrap-inline"> | ||
<div class="wrap"> | ||
<p>Download and execute <a href="{{site.data.setup-scala.windows-link}}">the Scala | ||
installer for Windows</a> based on Coursier, and follow the on-screen instructions.</p> | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
tabId: other | ||
tabLabel: Other | ||
defaultTab: true | ||
--- | ||
<div class="text-step wrap-inline"> | ||
<div class="wrap"> | ||
<noscript> | ||
<p><span style="font-style:italic;">JavaScript is disabled, showing the default options.</span></p> | ||
</noscript> | ||
<p>Follow the documentation from Coursier on <a href="https://get-coursier.io/docs/cli-installation" target="_blank">how to install and run <code>cs setup</code></a>.</p> | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// ALT-DETAILS | ||
//------------------------------------------------ | ||
//------------------------------------------------ | ||
|
||
.alt-details { | ||
|
||
.alt-details-toggle { | ||
width: 100%; | ||
border: none; | ||
background-color: $brand-tertiary; | ||
padding: 5px 10px; | ||
border-radius: $border-radius-large; | ||
font-size: $font-size-medium; | ||
cursor: pointer; | ||
font-weight: 500; | ||
color: $gray-dark; | ||
|
||
&:hover { | ||
background-color: darken($brand-tertiary, 15%); | ||
} | ||
|
||
&:after { | ||
content: "\f13a"; // <i class="fa-solid fa-circle-chevron-down"></i> | ||
font-family: "FontAwesome"; | ||
font-weight: 900; | ||
font-size: 15px; | ||
float: right; | ||
margin-top: 2px; | ||
} | ||
|
||
&.alt-details-closed:after { | ||
content: "\f138"; // <i class="fa-solid fa-circle-chevron-right"></i> | ||
} | ||
} | ||
|
||
.alt-details-detail { | ||
// The detail box appears to be underneath the toggle button | ||
// so we add a padding to the top and push it up. | ||
border: $base-border-gray; | ||
padding-top: 15px; | ||
margin-top: -15px; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.