Copy this template doc as a starting point and then iteratively mutate the metadata and contents to your liking, following the formatting rules described below.
To preview a codelab:
,
and
tags in the codelab markup.Also, if you wish to include some additional administrative information at the beginning of your codelab you can freely use the Heading 2, Heading 3 and Heading 4 paragraph styles and they will not show up in the codelab as long as they appear before the first Heading 1.
and
tags respectively. Also, passages of text formatted with the Courier New
font will be passed through as an inline
tag in the markup.
https://www.youtube.com/watch?v=[video_ID]
https://www.domain.com/watch?foo=bar
. Note that for security reasons, iframe embbedding is limited to an enumerated set of allowable iframe source URLs. Feel free to submit a PR if you'd like to augment that list or tweak your own version of the claat command.Courier New
font.Any additional styles applied to the code will be overridden by the syntax highlighting. This means that you're free to use code highlighting Add-ons in your codelab doc but it will have no effect on how the code is highlighted in the final codelab.It is also strongly recommended that you provide a Heading 3 header directly above your code snippet with the file name. This helps students keep track of where the code is coming from. The codelab framework also uses the file extension of the prior header as a clue for how to highlight the code.It is also strongly recommended that you make your Heading 3 header a hyperlink to the actual file if it is available on GitHub. A GitHub icon will automatically be added to the heading in such cases.
to embed a video uploaded to YouTube with the URL https://www.youtube.com/watch?v=DWAinkJ54AP8