Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Move getting started section to center of page. Replaces old section with open source blurb. #57

Merged
merged 2 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/includes/footer.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<footer id='footer'>
<div class='row'>
<div class='clearfix'>&copy; 2012 - @DateTimeFormatter.ofPattern("YYYY").format(LocalDate.now) SDKMAN! is Open Source Software licensed under <a
href='http://www.apache.org/licenses/LICENSE-2.0.html'>Apache 2</a></div>
href='http://www.apache.org/licenses/LICENSE-2.0.html'>Apache 2.0</a></div>
<div class='clearfix'>Logos and additional Design by <a href='https://github.com/dmesu'>Daida
Medina</a></div>
</div>
Expand Down
19 changes: 13 additions & 6 deletions app/views/index.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
<div id='band' class='band'></div>
<div id='content'>
<section class="row colset-2-its">
<h1>Get started now!</h1>

<p>
Go on, paste and run the following in a terminal:
<br>
<code>
curl -s "https://get.sdkman.io" | bash
</code>
</p>

<h1>The Software Development Kit Manager</h1>

<p id="main-paragraph">
Expand Down Expand Up @@ -74,19 +84,16 @@ <h1>APIs</h1>
</article>
<article>
<div class="icon icon-3"></div>
<h1>Get started now!</h1>
<h1>Open Source</h1>

<p>
Go on, paste and run the following in a terminal:
Backed by a wonderful community of developers from around the world.
<br>
<code>
$ curl -s "https://get.sdkman.io" | bash
</code>
Licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache 2.0</a>
</p>
</article>
</div>
</section>

@includes.opencollective()

<div class="nested-wrapper">
Expand Down
24 changes: 10 additions & 14 deletions app/views/install.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ <h1><i class='fa fa-cloud-download'></i> Installation</h1>
SDKMAN! installs smoothly on macOS, Linux, WSL, Cygwin,
Solaris and FreeBSD. We also support Bash and ZSH shells.<br/>Simply open a new
terminal and enter: </p>
<pre><code>$ curl -s "https://get.sdkman.io" | bash</code></pre>
<pre><code>curl -s "https://get.sdkman.io" | bash</code></pre>
<p>Follow the instructions on-screen to complete installation.<br/>Next, open a
new terminal <b>or</b> enter:</p>
<pre><code>$ source "$HOME/.sdkman/bin/sdkman-init.sh"</code></pre>
<pre><code>source "$HOME/.sdkman/bin/sdkman-init.sh"</code></pre>
<p>Lastly, run the following code snippet to ensure that installation
succeeded:</p>
<pre><code>$ sdk version</code></pre>
<pre><code>sdk version</code></pre>
<p>If all went well, the version should be displayed. Something like:</p>
<pre><code> sdkman 5.0.0+51</code></pre>
<pre><code>sdkman 5.0.0+51</code></pre>
</article>
<article><h3>Windows Installation</h3>
<p>Several options exist for installing SDKMAN! on Windows today.</p>
Expand All @@ -43,36 +43,32 @@ <h1><i class='fa fa-cloud-download'></i> Installation</h1>
Beta versions can be considered stable for the most part, but might
occasionally break.
To join the beta channel, you can install it directly as follows:
<pre><code>$ curl -s "https://beta.sdkman.io" | bash</code></pre>
<pre><code>curl -s "https://beta.sdkman.io" | bash</code></pre>
If you already have the stable version installed, simply update the
<code>~/.sdkman/etc/config</code> file as follows:
<pre><code>sdkman_beta_channel=true</code></pre>
Next, open a new terminal and perform a forced update with:
<pre><code>$ sdk selfupdate force</code></pre>
<pre><code>sdk selfupdate force</code></pre>
To leave the beta channel, simply set the above config back to
<code>false</code> and follow the same procedure.</p></article>
<article><h3>Uninstallation</h3>In the unlikely event that you would like to
uninstall SDKMAN!, we don&apos;t have
an automated way of doing this yet. If you really do want to remove it from your
system, it is very easy to do so.The following will guide you through backing
up, then removing the entire installation from your system.
<pre><code>
tar zcvf ~/sdkman-backup_$(date +%F-%kh%M).tar.gz -C ~/ .sdkman
$ rm -rf ~/.sdkman</code></pre>
<pre><code>tar zcvf ~/sdkman-backup_$(date +%F-%kh%M).tar.gz -C ~/ .sdkman</code><br><code>rm -rf ~/.sdkman</code></pre>
The last step involves editing and removing the initialisation snippet from your
<code>.bashrc</code>, <code>.bash_profile</code> and/or <code>.profile</code>
files. If you use ZSH, remove it from the <code>.zshrc</code> file. The snippet
of code to be removed looks something like this:
<pre><code>
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
[[ -s "/home/dudette/.sdkman/bin/sdkman-init.sh" ]] && source "/home/dudette/.sdkman/bin/sdkman-init.sh"</code></pre>
<pre>#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!<br>[[ -s "/home/dudette/.sdkman/bin/sdkman-init.sh" ]] && source "/home/dudette/.sdkman/bin/sdkman-init.sh"</pre>
Once removed, you have successfully uninstalled SDKMAN! from your machine.
</article>
<article><h3>Installing to a Custom Location</h3>It is possible to install SDKMAN!
to a custom location other than <code>$HOME/.sdkman</code>. This can be achieved
by exporting your custom location as <code>SDKMAN_DIR</code> prior to
installing.<br/>Simply open a new terminal and enter:
<pre><code>$ export SDKMAN_DIR="/usr/local/sdkman" && curl -s "https://get.sdkman.io" | bash</code></pre>
<pre><code>export SDKMAN_DIR="/usr/local/sdkman" && curl -s "https://get.sdkman.io" | bash</code></pre>
For this to work it is vital that your user has full access rights to this
folder.It is also important that the folder does not exist as SDKMAN! will
attempt to create it.
Expand All @@ -82,7 +78,7 @@ <h1><i class='fa fa-cloud-download'></i> Installation</h1>
such as unattended installs or when reinstalling. In those situations, appending
<code>rcupdate=false</code> as a parameter when downloading the installer will cause
it to skip that portion of the installation process.
<pre><code>$ curl -s "https://get.sdkman.io?rcupdate=false" | bash</code></pre>
<pre><code>curl -s "https://get.sdkman.io?rcupdate=false" | bash</code></pre>
</article>
<p>That&apos;s all there is to it! Next we will look at <a href='/usage'>Usage</a>.
</p></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/jdks.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1><a name='main'></a><i class='fa fa-cloud-download'></i> JDK Distributions</h
<li>
<h4><a href='@jdk.url' target='_blank'>@jdk.distribution</a> (@jdk.vendor)</h4>
<p>@jdk.description</p>
<code>$ sdk install java [email protected]</code>
<code>sdk install java [email protected]</code>
<hr/>
</li>
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/sdks.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1><a name='main'></a><i class='fa fa-cloud-download'></i> SDK Installation Can
<h4>@c.name (@c.default.getOrElse("Coming soon!"))</h4>
<a href='@c.websiteUrl' target='_blank'>@c.websiteUrl</a></br>
<p>@c.description</p>
<code>$ sdk install @c.candidate</code>
<code>sdk install @c.candidate</code>
<hr/>
</li>
}
Expand Down
Loading