No description
Find a file
Didier Roche 9ddcd1c282
Add licensing
The Apache 2.0 license is compatible with the BSD/Apache 2 mix we have
in different components of this repo. Adding it then.

Fixes: #22
2024-01-17 09:42:13 +01:00
.vscode Add visual studio code configuration 2016-11-09 15:43:09 +01:00
api Refreshing with latest content 2017-01-13 13:12:18 +01:00
bower_components Remove some debug output 2016-09-29 15:02:02 +02:00
images Add new categories events file with IDF 2016 example event 2016-08-03 17:11:19 +02:00
src Refreshing with latest content 2017-01-13 13:12:18 +01:00
test Default from polymer init template 2016-07-13 11:11:59 -07:00
tools Workaround some issues with current codelab components making resume not working 2016-11-09 15:43:09 +01:00
.gitignore Exclude more snap-related directories 2016-12-01 10:09:13 +01:00
bower.json Update bower components version 2016-11-09 15:43:09 +01:00
categories-events.json Add new categories events file with IDF 2016 example event 2016-08-03 17:11:19 +02:00
codelabs New codelab binary 2016-09-23 16:26:11 +02:00
index.html Change index to main ubuntu style 2016-07-13 13:18:45 -07:00
LICENSE Add licensing 2024-01-17 09:42:13 +01:00
manifest.json Default from polymer init template 2016-07-13 11:11:59 -07:00
polymer.json Default from polymer init template 2016-07-13 11:11:59 -07:00
README.md Merge branch 'master' into runtime 2016-08-03 17:10:30 +02:00
server Refresh server binary with new root detection method 2016-09-26 07:51:42 +02:00
service-worker.js Default from polymer init template 2016-07-13 11:11:59 -07:00
snapcraft.yaml Adapt slightly description 2016-09-26 07:54:25 +02:00
sw-precache-config.js Default from polymer init template 2016-07-13 11:11:59 -07:00

Our snap/snapcraft codelabs

This is our snap and snapcraft codelabs, fetched from google doc content.

This is the compiled containing compiled assets or codelabs. The source branch is at https://github.com/ubuntu/codelabs-source.

Run the binary assets

Once you are on the codelabs repo, you can just run the simple webserver from the main repo:

  • ./server You can specify the port with -p <port_number>
  • There is snap available name "snap-codelabs" which will run on your localhost, port 8123 by default. You can install it with: sudo snap install snap-codelabs
  • If you have polymer-cli (npm install -g polymer-cli), you can just run: polymer serve.

Add/Update/Remove codelabs

You can use ./codelabs binary which will fetch needed dependencies for you to add/update or remove codelabs.

  • Adding a new codelabs is as simple as: ./codelabs add <google_doc_id>. You can add multiple docs at the same time.
  • Refreshing all codelabs is ./codelabs update
  • Remove a codelab is `./codelabs remove <google_doc_id|codelab_name>. You can remove multiple docs at the same time.

You can use -ga <google_analytics> to override the default GA account.

Codelabs are located in src/codelabs. All metadata are then regenerated for the website to pick up.

Do not forget to add/commit and push to the codelabs branch each time you generate or refresh the codelabs assets.

Tweak category theming and events

The theming is for categories are located in categories-events.json. Only categories available there will be shown in the dropdown filters.

Adding events enables to get events/<event_name> page, which is filtering codelabs for which one tags match this event. Images are relative path to images/events/.