MakeCode Tutorial In GitHub

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dd9dd8c
 
Posts: 2
Joined: Tue Oct 01, 2019 7:59 pm

MakeCode Tutorial In GitHub

Post by dd9dd8c »

How can I publish a Adafruit MakeCode tutorial though GitHub? I've tried the method mentioned in the MakeCode documentation.

Code: Select all

https://makecode.microbit.org/#tutorial:https://github.com/myorg/myrepo
But, I always get the error, "Please check your internet access and ensure the tutorial is valid. Network request failed". Below are the two URLs I've tried.

Code: Select all

https://makecode.adafruit.com/#tutorial:https://github.com/hikerguy1900/Circuit_Playground
https://makecode.adafruit.com/#tutorial ... Playground

I've also tried using the raw line to the GitHub file.

Code: Select all

https://makecode.adafruit.com/#tutorial:https://raw.githubusercontent.com/hikerguy1900/Circuit_Playground
https://makecode.adafruit.com/#tutorial ... Playground

My plan is to create several tutorials. Managing them as web projects in Adafruit MakeCode would be tedious.

User avatar
dd9dd8c
 
Posts: 2
Joined: Tue Oct 01, 2019 7:59 pm

Re: MakeCode Tutorial In GitHub

Post by dd9dd8c »

I figured out a way to do it. First, it seems that more than the README.md file is needed. Getting the full source for a project in to GitHub was the next challenge. The only way I could find to do this was using a Beta version of MakeCode that was mentioned in a December 2019 Adafruit blog post.
https://blog.adafruit.com/2019/12/18/us ... de-github/

Using that Beta version I was able to use the new GitHub button next to the save button to save the full project in to GitHub. Then the GitHub URL for the tutorial began to work.
https://github.com/hikerguy1900/Circuit ... Blinky.git

Locked
Please be positive and constructive with your questions and comments.

Return to “MakeCode”