This repository provides a template for creating and deploying codelabs using the claat tool.
To use this template, you need to have the following tools installed:
To setup go you can follow the instructions here.
Make sure you add the GOPATH to your PATH as specified here.
The main content of the codelab is located in the codelab.md file. You can edit this file to customize the codelab according to your needs.
The codelab content is written in CodeLab Markdown format. You can find more information about the CodeLab Markdown format. Here you have an example of a simple codelab where you can check the format.
The codelab that is located in the content folder is a simple example of a codelab that you can use as a starting point:

This template uses the claat tool to generate the codelab pages. To generate the codelab, follow these steps:
- Install
claatby running:
go install github.com/googlecodelabs/tools/claat@latest- Generate the codelab pages by running:
claat export content/codelab.mdThis template includes a GitHub Actions workflow for deploying the codelab to GitHub Pages. To enable deployment, you need to enable GitHub Pages deployment from GitHub Actions in the GitHub repository settings.
The deployment workflow is defined in the publish.yml file. It will automatically deploy the codelab to GitHub Pages whenever changes are pushed to the main branch.
We welcome contributions to the Codelab! To contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes.
- Submit a pull request with a detailed description of your changes.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.