-
Notifications
You must be signed in to change notification settings - Fork 4k
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
docs: updated "Getting Started" topic #1045
Conversation
…labs/aws-cdk into dougsch/test-getting-started
…labs/aws-cdk into dougsch/test-getting-started
docs/src/getting-started.rst
Outdated
|
||
.. _setup_recommendations: | ||
|
||
Recommendations |
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.
This is not really a recommendation. It's required
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'll remove the "Recommendations" heading.
docs/src/getting-started.rst
Outdated
`Node.js (>= 8.11.x) <https://nodejs.org/en/download>`_ to use the command-line | ||
toolkit and language bindings. | ||
|
||
You must set the `JAVA_HOME` environment variable to the path to where you have |
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 would start the sentence with "If you use Java...", so people can "bail out" early if they don't care
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.
will do
docs/src/getting-started.rst
Outdated
This guide walks you through the process of creating an |cdk| project. | ||
You can also use the | ||
:code:`cdk init` command to create a skeleton project from a | ||
template in any of the supported languages except JavaScript. |
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.
That's going to be outdated soon. Maybe we can just write "in supported languages".
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.
done
} | ||
} | ||
|
||
.. group-tab:: Java | ||
|
||
Create an empty source-controlled directory for your project: |
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.
Why is this only in java?
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.
It (git init) is already there in the others.
.. code-block:: sh | ||
|
||
.classpath.txt | ||
target |
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.
indentation is off
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.
Stoopid editor. I've replaced all tabs.
docs/src/getting-started.rst
Outdated
@@ -158,8 +207,7 @@ library includes the basic classes needed to write |cdk| stacks and apps. | |||
|
|||
.. group-tab:: TypeScript | |||
|
|||
Install the **@aws-cdk/cdk** package and the **@types/node** (the latter | |||
is needed because we reference **process.argv** in our code): | |||
Install the **@aws-cdk/cdk** and the **@types/node** packages: |
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.
@types/node is actually not needed anymore
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.
removed
docs/src/getting-started.rst
Outdated
public static void main(final String argv[]) { | ||
App app = new App(); | ||
|
||
// Create your stacks here as: |
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.
why only in java?
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'll remove it as we add a stack later.
docs/src/getting-started.rst
Outdated
|
||
.. tabs:: | ||
|
||
.. group-tab:: JavaScript | ||
|
||
In **index.js**: | ||
Create the file **hello-cdk.js** in the **bin** folder: |
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 it's clearer if you write it as bin/hello-cdk.js
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.
sure
…labs/aws-cdk into dougsch/test-getting-started
ping |
Please merge from master: $ git fetch origin
$ git merge origin/master
$ git push origin dougsch/test-getting-started |
Okay, 1 file changed |
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.
I updated the topic based on the feedback from issue #1044; updated code based on V 0.14.1.