This codelab shows you how to create your own Codelab and contribute it to this site for the QNX community.
We use the open-source Google Codelabs Tools to build the codelabs, but you really only need to know how to write Markdown files.
Below is the high level workflow we'll work through in this codelab:

Let's get started! Next, we'll install the pre-requisites to prepare your environment.
That's it! Since the codelabs are just written as Markdown files, this is all you really need. Optionally though, you may wish to install Claat so you can render and preview your work locally.
This step is optional, but highly recommended so you can fully render and preview your codelab in your local environment.
# Install go globally as environment variable
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
git clone https://github.com/qnx/tools.git
claat directory:cd tools/claat
go to build Claat:go install
go version
claat --help
Your system should be ready to start writing codelabs!
Follow these guidelines to write a high-quality codelab.
Now that you are ready to build a codelab, you nedd to fork and clone your own copy of the codelab repo.
# Make sur to use the correct clone URL for your fork:
git clone https://github.com/your-username/codelabs.git
# OR
git clone git@github.com:your-username/codelabs.git
git checkout -b <name-of-your-codelab>
This section explains how to create a new codelab.
Only work in the markdown folder under your created codelab repo's new directory. Ensure you do not make changes to other folders or files, so that your contribution is clean and doesn't interfere with other draft codelabs. Inconsistencies or changes to other files will unfortunately result in a rejected pull request.
~./markdown/:mkdir -p ./codelabs/markdown/<name-of-your-codelab>
markdown-template.md into your newly created directory, from the `codelabs/ dir, to ensure the required tags are included in hyour draft.The id tag must exactly match the .md filename for Claat to work correctly.id: name-of-your-codelab
title: template to create codelabs
summary: Learn how to add new Codelabs
categories: codelabs, setup
tags: beginner
difficulty: 1
status: published
authors: Your Team
feedback_link: https://github.com/qnx/codelabs/issues
.md claat to view your .md file locally as HTML. Otherwise, skip to step 7.# cd out from ~./markdown/<name-of-your-codelab> dir to ~./codelabs
claat export -f html -o docs ./markdown/<name-of-your-codelab>/<name-of-your-codelab>.md
codelabs/docs.http://localhost:8000 from your codelabs/docs/ directory# cd to ./codelabs/markdown/<name-of-your-codelab>/
claat serve <name-of-your-codelab>.md
# From the ~./codelabs/markdown/<name-of-your-codelab> directory
git add .
git commit -m "add comments for your commit"
git push -u origin name-of-your-codelab
Congratulations! We will review and add your pull request soon. Thank you for contributing to QNX Codelabs!