This site uses cookies to analyze traffic and improve service.

By using this site, you agree to this use. See details.

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content
Next: Add a quiz


The goal of this tutorial is to demonstrate how to build a basic playground on


You only need:

  • Git installed on your computer.
  • Basic knowledge about Git (clone, push)

The source code of this documentation is on GitHub (Documentation GitHub repository, feel free to come up with proposals to improve it!)

What's a Playground?

A playground can take many forms:

Most of the playgrounds contain runnable code samples, but it's not mandatory. At the end of the day, you can craft what you want.

Creating Your Own Playground

Head to the Create a playground page.


There, you can choose a template from a large selection of technologies. There are two types of templates:

  • A "simple" template with limited code sample options but which enables you to quickly get started (recommended for a first playground).
  • A more advanced template with many options -dependencies, unit tests, visual renderer...- like a real project.

All templates contain a working code example and some hints to help you getting started.

You can also choose to create an empty playground from scratch.


A skeleton playground based on the selected template is created in a new git repository.

There are two options for choosing the repository:

  • On your own Github repository. For this, we need your authorization (We will not perform any action without your approval. You can revoke the access from your GitHub settings at any time). This will allow a better collaboration with the community as they will be able to fork your playground and propose improvements and translations. (recommended)
  • On our private repository. For this, you need to be authenticated on’s Git platform.
Authenticating on's Git platform

To do so, you need to add a SSH key to your profile.

If you don’t already have an SSH key, execute ssh-keygen in your terminal. This command creates a public and a private key used to access your repository. (Check out GitHub Help for more information).

By default, the public key is located in ~/.ssh/ Copy your public key to your settings page.

Now that your key has been added, you can clone your repository using the origin URL provided on the playground page:

  git clone

Structure of Your Playground

Now that you have created the repository, let's take a look at the folder structure:

  • techio.yml: This mandatory file describes the structure of your playground. It must be present at the root of the playground’s git repository. It contains: the table of content of the playground, the references to the lesson files, and some other technical details for advanced usage (see techio.yml reference).
  • cover.png: This small image (140x76) along your playground in the explore page. By default, it's the logo of the technology you chose.
  • markdowns folder or file: Each markdown file corresponds to a page. A one-page playground will just contain the file at the root. Else, all files will be contained in the markdowns folder. Markdown is a simple syntax for basic formatting (links, images, quote text, code formatted text snippets, etc). You can find a cheatsheet for markdown here.
  • project folder or nothing: This folder contains the files used in your coding exercies. We'll describe it later in the Add a coding exercise section of the documentation. In a simple template, this folder is absent, because samples of codes are added directly in the markdown using Code Snippets.

Updating Your Playground

Changing the Title and Writing an Introduction

In the, update the title:

title: Put your playground title here
  - title: Welcome
    statement: markdowns/

Then, in your markdown (either in or markdowns/, write an introduction:

# Hello world,

Welcome to this playground about this amazing technology. I'll show you ...

Adding a New Page

If you want to add a new lesson, follow these steps:

  • Create a markdown file: markdowns/
  • Edit this markdown and add some content
  • Reference this markdown in techio.yml:
title: Put your playground title here
  - title: Part 1
    statement: markdowns/
  - title: Part 2
    statement: markdowns/

Deploying the Changes on

Committing and pushing a change to master will automatically trigger a build of the playground and update it on Use the following git commands:

git commit -a -m "Title and introduction"
git push origin master

Come back to your playground page on It should have refreshed. Click "Preview" to play with your playground.

Sharing Your Playground

Sharing a Preview Link

Even if your playground is not published, you can share its preview link which looks like this:

Each time you push changes to your playground, the super_long_id is updated.

Publishing Your Playground

A published playground is visible in the Latest Playgrounds page. To maintain the quality of displayed playgrounds, we recommend you not to publish your test playground.

Once a playground is published, the super_long_id becomes a short_id which makes the url much more friendly.

Future Updates

Once a playground is published and available to the community, you can freely update it with improvements and use the preview to see the results impacting readers. Once you're satisfied with it, you can publish the new version, and the users will see the changes.

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content