Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
Make a few updates from windows feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrc0113 committed Aug 27, 2019
1 parent e9f31f5 commit 255ae6b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion codelab-4-codelab-markdown/codelab.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"format": "html",
"prefix": "https://storage.googleapis.com",
"mainga": "UA-49880327-14",
"updated": "2019-08-21T15:36:39-04:00",
"updated": "2019-08-27T15:37:56-04:00",
"id": "codelab-4-codelab-markdown",
"duration": 14,
"title": "CodeLab to Create a CodeLab",
Expand Down
14 changes: 9 additions & 5 deletions codelab-4-codelab-markdown/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,21 @@
<google-codelab-step label="Environment Setup" duration="4">
<p>In order to create a CodeLab you need <em>Go</em> and <em>claat</em> (the codelabs command line tool) installed.</p>
<p>The instructions below are what worked for me on Mac, but you can also find instructions <a href="https://github.com/googlecodelabs/tools/tree/master/claat" target="_blank">here</a></p>
<h3 is-upgraded>Install Go and claat</h3>
<h3 is-upgraded>Install Go</h3>
<p>Install <a href="https://golang.org/dl/" target="_blank">Go</a> if you don&#39;t have it.<br>You can use Homebrew if you have it on mac</p>
<pre><code>$ brew install go
</code></pre>
<p>Install claat</p>
<pre><code>$ go get -u -v -x github.com/googlecodelabs/tools/claat
</code></pre>
<h3 is-upgraded>Setup Environment Variables</h3>
<h3 is-upgraded>Setup Go Environment Variables</h3>
<p>Below is what I set on mac, but instructions are <a href="https://golang.org/doc/install" target="_blank">here</a> for other OS options</p>
<pre><code>$ export GOPATH=$HOME/Go
$ export GOROOT=/usr/local/opt/go/libexec
$ export PATH=$PATH:$GOPATH/bin
$ export PATH=$PATH:$GOROOT/bin
</code></pre>
<h3 is-upgraded>Install claat</h3>
<p>Install claat</p>
<pre><code>$ go get -u -v -x github.com/googlecodelabs/tools/claat
</code></pre>
<p>You should now have the <em>claat</em> command available to you.</p>
<pre><code>$ claat
</code></pre>
Expand All @@ -72,6 +74,8 @@ <h3 is-upgraded>Setup Environment Variables</h3>

<google-codelab-step label="Create your initial CodeLab" duration="5">
<p>Now that we have the environment setup let&#39;s go ahead and create a markdown file where we&#39;ll create the actual codelab.</p>
<aside class="warning"><p>If you&#39;re using Windows make sure to set your text editor to use UNIX line endings!</p>
</aside>
<pre><code>$ vim codelab.md
</code></pre>
<h3 is-upgraded>Fill-in the header metadata</h3>
Expand Down
20 changes: 13 additions & 7 deletions codelab.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,30 @@ In order to create a CodeLab you need *Go* and *claat* (the codelabs command lin

The instructions below are what worked for me on Mac, but you can also find instructions [here](https://github.com/googlecodelabs/tools/tree/master/claat)

#### Install Go and claat
#### Install Go

Install [Go](https://golang.org/dl/) if you don't have it.
You can use Homebrew if you have it on mac
``` bash
$ brew install go
```

Install claat
``` bash
$ go get -u -v -x github.com/googlecodelabs/tools/claat
```
#### Setup Go Environment Variables
Below is what I set on mac, but instructions are [here](https://golang.org/doc/install) for other OS options

#### Setup Environment Variables
``` bash
$ export GOPATH=$HOME/Go
$ export GOROOT=/usr/local/opt/go/libexec
$ export PATH=$PATH:$GOPATH/bin
$ export PATH=$PATH:$GOROOT/bin
```

#### Install claat
Install claat
``` bash
$ go get -u -v -x github.com/googlecodelabs/tools/claat
```

You should now have the *claat* command available to you.
``` bash
$ claat
Expand All @@ -67,11 +70,14 @@ Duration: 0:05:00

Now that we have the environment setup let's go ahead and create a markdown file where we'll create the actual codelab.

Negative
: If you're using Windows make sure to set your text editor to use UNIX line endings!

####
``` bash
$ vim codelab.md
```


#### Fill-in the header metadata
Copy and paste the headers below into your markdown file and change the values appropriately.
Guidelines are available below the sample headers.
Expand Down

0 comments on commit 255ae6b

Please sign in to comment.