From 255ae6bd28609d57e146956badd2316923d84bb5 Mon Sep 17 00:00:00 2001 From: Marc DiPasquale Date: Tue, 27 Aug 2019 15:53:11 -0400 Subject: [PATCH] Make a few updates from windows feedback --- codelab-4-codelab-markdown/codelab.json | 2 +- codelab-4-codelab-markdown/index.html | 14 +++++++++----- codelab.md | 20 +++++++++++++------- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/codelab-4-codelab-markdown/codelab.json b/codelab-4-codelab-markdown/codelab.json index 47ed7c9..773de6e 100644 --- a/codelab-4-codelab-markdown/codelab.json +++ b/codelab-4-codelab-markdown/codelab.json @@ -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", diff --git a/codelab-4-codelab-markdown/index.html b/codelab-4-codelab-markdown/index.html index af5ab6a..cd9f7c4 100644 --- a/codelab-4-codelab-markdown/index.html +++ b/codelab-4-codelab-markdown/index.html @@ -50,19 +50,21 @@

In order to create a CodeLab you need Go and claat (the codelabs command line tool) installed.

The instructions below are what worked for me on Mac, but you can also find instructions here

-

Install Go and claat

+

Install Go

Install Go if you don't have it.
You can use Homebrew if you have it on mac

$ brew install go
 
-

Install claat

-
$ go get -u -v -x github.com/googlecodelabs/tools/claat
-
-

Setup Environment Variables

+

Setup Go Environment Variables

+

Below is what I set on mac, but instructions are here for other OS options

$ 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

+
$ go get -u -v -x github.com/googlecodelabs/tools/claat
+

You should now have the claat command available to you.

$ claat
 
@@ -72,6 +74,8 @@

Setup Environment Variables

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

+
$ vim codelab.md
 

Fill-in the header metadata

diff --git a/codelab.md b/codelab.md index fd01710..d980a11 100644 --- a/codelab.md +++ b/codelab.md @@ -36,7 +36,7 @@ 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 @@ -44,12 +44,9 @@ You can use Homebrew if you have it on mac $ 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 @@ -57,6 +54,12 @@ $ 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 @@ -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.