diff --git a/codelab-4-codelab-markdown/codelab.json b/codelab-4-codelab-markdown/codelab.json index 2db6324..d3adb87 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-07-23T10:15:30-04:00", + "updated": "2019-09-04T12:06:40-03:00", "id": "codelab-4-codelab-markdown", "duration": 14, "title": "CodeLab to Create a CodeLab", @@ -14,13 +14,11 @@ "published" ], "category": [ - "codelab", - "markdown" + "web" ], "tags": [ "web" ], "feedback": "https://github.com/Mrc0113/codelab-4-codelab", - "ga": "UA-139902608-1", "url": "codelab-4-codelab-markdown" } diff --git a/codelab-4-codelab-markdown/index.html b/codelab-4-codelab-markdown/index.html index 574802a..1fc7021 100644 --- a/codelab-4-codelab-markdown/index.html +++ b/codelab-4-codelab-markdown/index.html @@ -21,7 +21,7 @@
In this codelab we are going to use the second option and author our codelab using a markdown file. This gives us the flexibility of using our markdown file for other things and also storing it in our github repo with any code that might be used for a tutorial.
-Here is an example image of another CodeLab that I created:
Here is an example image of another CodeLab that I created:
Resources:
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 if you don't have it.
You can use Homebrew if you have it on mac
$ brew install go
-$ go get -u -v -x github.com/googlecodelabs/tools/claat
-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
+$ go get -u -v -x github.com/googlecodelabs/tools/claat
+
You should now have the claat command available to you.
$ claat
@@ -68,6 +74,8 @@ 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
Next add your title using a single ‘#' character
# Title of codelab
-Then for each section use Header 2 or ‘##' & specify an optional duration beneath for time remaining calculations
Optional section times will be used to automatically total & remaining tutorial times
In markdown I've found that the time is formatted hh:mm:ss
Then for each section use Header 2 or ‘##' and specify an optional duration beneath for time remaining calculations
Optional section times will be used to automatically total and remaining tutorial times
In markdown I've found that the time is formatted hh:mm:ss
Example
## Section 1
Duration: 0:10:00
@@ -111,10 +119,10 @@ Add Sections & Durations
Duration: 0:05:00
Now that we have 2 sections to our titled codelab let's go ahead and add some content to each section.
Make up your own or copy & paste the example below:
Now that we have 2 sections to our titled codelab let's go ahead and add some content to each section.
Make up your own or copy and paste the example below:
Copy into section 1 (Below Duration and above Section 2):
### Info Boxes
-Plain Text followed by green & yellow info boxes
+Plain Text followed by green and yellow info boxes
Negative
: This will appear in a yellow info box.
@@ -131,23 +139,34 @@ Add Section Content
* World
You created bullets!
+
+### Numbered List
+1. List
+1. Using
+1. Numbers
+
+You created a numbered list!
+
Copy into section 2 (Below Duration):
### Add a Link
-Let's add a link!
+Adding a link!
[Example of a Link](https://www.google.com)
### Add an Image
-Let's add an image!
+Adding an image!
![image_caption](https://googlecloud.tips/img/031/codelabs.png)
+
+### Embed an iframe
+![https://codepen.io/tzoght/embed/yRNZaP](https://en.wikipedia.org/wiki/File:Example.jpg "Try Me Publisher")
-See the "Markdown Syntax Backup" section for more examples of what can be done.
More Markdown Parser examples can be found here.
More Markdown Parser examples can be found here.
Now that you have an initial codelab defined in your markdown file let's go ahead and generate the static site content.
We can export & serve the content locally using the claat
command that we installed earlier.
Now that you have an initial codelab defined in your markdown file let's go ahead and generate the static site content.
We can export and serve the content locally using the claat
command that we installed earlier.
$ claat export codelab.md
$ claat serve
@@ -170,36 +189,6 @@ public static void main(String args[]){
- System.out.println("Hello World!");
- }
-
-Adding an inline code
snippet
Adding an image