-
Notifications
You must be signed in to change notification settings - Fork 1k
Put OS-specific get-started instructions in tabs #2388
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 2 commits
Commits
Show all changes
3 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
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,6 @@ | ||
<div class="alt-details"> | ||
<button class="alt-details-toggle" onclick="toggleElement(event, '{{include.targetId}}')">{{include.title}}</button> | ||
<div id="{{include.targetId}}" class="{{include.extraClasses}} 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="snippet"> | ||
{% unless include.nocopy %} | ||
<div class="buttons"> | ||
<div><button class="copy-button" onclick="copySnippet(event)"><i class="fa fa-clone"></i></button></div> | ||
</div> | ||
{% endunless %} | ||
<pre class="snippet-code"><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,24 @@ | ||
<div class="tabsection {{include.extraClasses}}"> | ||
<div class="tab"> | ||
{% for tabRoot in include.collection %} | ||
{% if tabRoot.language == include.language %} | ||
<button | ||
id="{{include.category}}-tab-{{tabRoot.tabId}}" | ||
class="tablinks-{{include.category}} tablinks{%if tabRoot.isDefault %} default-tab{% endif %}{% if tabRoot.isDefault or tabRoot.fallbackNoJS %} active{% endif %}" | ||
onclick="openTab(event, '{{include.category}}', '{{tabRoot.tabId}}')" | ||
>{{tabRoot.tabLabel}}</button> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% for tabRoot in include.collection %} | ||
{% if tabRoot.language == include.language %} | ||
<div id="{{include.category}}-{{tabRoot.tabId}}" | ||
{% if tabRoot.isDefault or tabRoot.fallbackNoJS %} | ||
style="display:block;" | ||
{% else %} | ||
style="display: none;" | ||
{% endif %} | ||
class="tabcontent-{{include.category}} tabcontent">{{tabRoot.content}}</div> | ||
{% endif %} | ||
{% 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,27 @@ | ||
--- | ||
tabId: osx | ||
tabLabel: macOS | ||
language: en | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
<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"> | ||
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-default %} | ||
</div> | ||
{% endcapture %} | ||
{% include alt-details.html | ||
title=homebrewAlt | ||
detail=homebrewDetail | ||
targetId='macos-get-started-alt' | ||
extraClasses='scala-text-large alt-details-detail' | ||
%} | ||
</div> | ||
</div> | ||
</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,15 @@ | ||
--- | ||
tabId: linux | ||
tabLabel: Linux | ||
language: en | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
<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> | ||
</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,15 @@ | ||
--- | ||
tabId: windows | ||
tabLabel: Windows | ||
language: en | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
<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> | ||
</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,18 @@ | ||
--- | ||
tabId: other | ||
tabLabel: Other | ||
fallbackNoJS: true | ||
language: en | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
<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 class="bash">cs setup</code></a>.</p> | ||
</div> | ||
</div> | ||
</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,26 @@ | ||
--- | ||
tabId: osx | ||
tabLabel: macOS | ||
language: fr | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-brew %} | ||
{% assign homebrewAlt = "Alternativement, si vous n'utilisez pas Homebrew:" %} | ||
{% capture homebrewDetail %} | ||
<div class="wrap"> | ||
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.macOS-default %} | ||
</div> | ||
{% endcapture %} | ||
{% include alt-details.html | ||
title=homebrewAlt | ||
detail=homebrewDetail | ||
targetId='macos-get-started-alt' | ||
extraClasses='scala-text-large alt-details-detail' | ||
%} | ||
</div> | ||
</div> | ||
</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,14 @@ | ||
--- | ||
tabId: linux | ||
tabLabel: Linux | ||
language: fr | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
{% include code-snippet.html language='bash' codeSnippet=site.data.setup-scala.linux %} | ||
</div> | ||
</div> | ||
</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,14 @@ | ||
--- | ||
tabId: windows | ||
tabLabel: Windows | ||
language: fr | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
<p>Téléchargez et exécutez <a href="https://git.io/coursier-cli-windows-exe">l'intallateur Scala pour Windows</a> basé sur Coursier</p> | ||
</div> | ||
</div> | ||
</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,19 @@ | ||
--- | ||
tabId: other | ||
tabLabel: Other | ||
fallbackNoJS: true | ||
language: fr | ||
--- | ||
<div class="scala-in-action-content"> | ||
<div class="scala-in-action-code"> | ||
<div class="wrap"> | ||
<div class="scala-text scala-text-large"> | ||
<noscript> | ||
<p><span style="font-style:italic;">JavaScript is disabled, showing the default options.</span></p> | ||
</noscript> | ||
<p>Suivez <a href="https://get-coursier.io/docs/cli-installation" target="_blank">les instructions pour installer la commande | ||
<code>cs</code></a>puis exécutez <code>./cs setup</code>.</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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.