-
-
Notifications
You must be signed in to change notification settings - Fork 64
Improvements for the "try-play" page #206
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
Improvements for the "try-play" page #206
Conversation
|
|
||
| @renderProject(project: ExampleProject) = { | ||
| <tr> | ||
| <td><a href="@project.downloadUrl" target="_blank">@project.displayName</a></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rstento we get data for sample projects using Tech Hub API. The only URLs available there are for download and Github. To avoid hardcoding the links, I've decided to keep the current way of listing the starter projects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's OK for now, but we can do some usability improvements later. It will help when Tech Hub allows us to filter for Java and Scala as mentioned in my review of the doc changes.
| <h3><span>»</span> Learn whether Play Framework is right for your project</h3> | ||
| <div class="try-option-content"> | ||
| <ul> | ||
| <li><a href="@controllers.documentation.ReverseRouter.latest(None, "Introduction")">Introduction to Play</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introduction and Requirements are two new pages at the docs.
richdougherty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor changes.
app/views/gettingStarted.scala.html
Outdated
| <div class="try-option-content"> | ||
| <ul> | ||
| <li><a href="@controllers.documentation.ReverseRouter.latest(None, "Introduction")">Introduction to Play</a></li> | ||
| <li><a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">Requirements to work With Play</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either System Requirements or Requirements for using Play read better to me. 😄
app/views/gettingStarted.scala.html
Outdated
| <div class="try-option"> | ||
| <h3><span>»</span> Follow the Hello World Tutorial</h3> | ||
| <div class="try-option-content"> | ||
| <p>Play requires Java SE 1.8 or higher. You can check your version with the <code>java -version</code> command or install it from <a href="//www.oracle.com/technetwork/java/javase/downloads/index.html" rel="noopener">Oracle's site</a>. See details about the <a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">requirements to work with Play</a>.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to the previous change: See details about the requirements to work with Play → See details about Play's system requirements
app/views/gettingStarted.scala.html
Outdated
| <div class="try-option"> | ||
| <h3><span>»</span> Follow the Hello World Tutorial</h3> | ||
| <div class="try-option-content"> | ||
| <p>Play requires Java SE 1.8 or higher. You can check your version with the <code>java -version</code> command or install it from <a href="//www.oracle.com/technetwork/java/javase/downloads/index.html" rel="noopener">Oracle's site</a>. See details about the <a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">requirements to work with Play</a>.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it would be easier for beginners to understand if we call it Java 8 rather than Java 1.8?
app/views/gettingStarted.scala.html
Outdated
| <div class="try-section"> | ||
| <h2>Already know a bit about Play?</h2> | ||
| <p>Check out our <a href="//developer.lightbend.com/start/?group=play">example projects for Java or Scala</a>. The downloadable zip files include everything you need, including <a href="//www.scala-sbt.org/index.html">sbt</a>, Play Framework, and an HTTP server. Examples also support <a href="//docs.gradle.org/current/userguide/play_plugin.html">Gradle</a>. You can also create a Play project from the command line using a template if you have sbt installed already.</p> | ||
| <p>Play requires Java SE 1.8 or higher. You can check your version with the <code>java -version</code> command or install it from <a href="//www.oracle.com/technetwork/java/javase/downloads/index.html" rel="noopener">Oracle's site</a>. See details about the <a href="@controllers.documentation.ReverseRouter.latest(None, "Requirements")">requirements to work with Play</a>.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment about Java 8 vs 1.8 and text for system requirements.
app/views/gettingStarted.scala.html
Outdated
| <div class="try-option-content"> | ||
| <p>Follow these steps to try an example project:</p> | ||
| <ol> | ||
| <li>Choose an example from <a href="">Lightbend's Tech Hub</a>.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs href value.
| <p>Follow these steps to try an example project:</p> | ||
| <ol> | ||
| <li>Choose an example from <a href="">Lightbend's Tech Hub</a>.</li> | ||
| <li>Click "CREATE A PROJECT FOR ME" to download the zipped project.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use text-transform: uppercase? (Very minor!)
app/views/gettingStarted.scala.html
Outdated
| <li>In a command window, navigate to the top level project directory.</li> | ||
| <li>Enter one of the following commands: | ||
| <ul> | ||
| <li>On OSx or Linux systems: <code>./sbt run</code> or <code>./gradlew runPlayBinary</code></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OSx → macOS
| <div class="try-option-content"> | ||
| <p>Follow these steps to try an example project:</p> | ||
| <ol> | ||
| <li>Choose an example from <a href="https://developer.lightbend.com/start/?group=play">Lightbend's Tech Hub</a>.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the advantage of moving these examples off the download page and onto another site? I think it makes the experience less streamlined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increase awareness of Tech Hub. But I agree that it is less streamlined.
But I think we can have both. We can have a streamlined experience here, at the "try play" page, and have other places linking to Tech Hub (and even this page too).
@rstento, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we go ahead with these changes and see what they look like? I always find it helps when you see it live. Then maybe we can revisit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rstento 👍
|
|
||
| @renderProject(project: ExampleProject) = { | ||
| <tr> | ||
| <td><a href="@project.downloadUrl" target="_blank">@project.displayName</a></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's OK for now, but we can do some usability improvements later. It will help when Tech Hub allows us to filter for Java and Scala as mentioned in my review of the doc changes.
| <div class="try-option-content"> | ||
| <p>Follow these steps to try an example project:</p> | ||
| <ol> | ||
| <li>Choose an example from <a href="https://developer.lightbend.com/start/?group=play">Lightbend's Tech Hub</a>.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we go ahead with these changes and see what they look like? I always find it helps when you see it live. Then maybe we can revisit?
ignasi35
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM I guess. Few details go over my head TBH.
This is a follow up of #192 by @rstento. There are some changes here that depend on documentation improvements too, so another pull request will be made to improve Play docs and make it consistent
with the changes here.
@rstento, @richdougherty, @gmethvin, and @wsargent, please review.