This is where I host any google-like codelab I create, which can be found on my website: zarin.io
To understand more about the local environment required to set this up, please read: Publish Technical Tutorials in Google Codelab Format
- Codelabs are written in markdown (i.e.
.mdfiles) - Exported to google-codelab style using
claat export name_of_markdown_file.md - In the
index.htmlfile under the folder created as a result of theclaat exportcommand, before hosting on github pages, make sure you modify the<script>andlinktags like so:# before <script src="../../bower_components/webcomponentsjs/webcomponents-lite.js"></script> <link rel="import" href="../../elements/codelab.html"> # after <script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></script> <link rel="import" href="../elements/codelab.html">
- Run either python simple server using
python3 -m http.server, orclaat serve ${name_of_markdown_file}in the root directory. If you used python, then navigate to the folder resulting from theclaat exportcommand to see the codelab on your browser at http://localhost:8000/. If you used claat, then navigate to the folder on your browser at http://localhost:9090/.