0

MakeCode Tutorial In GitHub
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MakeCode Tutorial In GitHub

by dd9dd8c on Wed Nov 25, 2020 4:15 pm

How can I publish a Adafruit MakeCode tutorial though GitHub? I've tried the method mentioned in the MakeCode documentation.
Code: Select all | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
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.

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

Re: MakeCode Tutorial In GitHub

by dd9dd8c on Wed Nov 25, 2020 9:31 pm

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

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

Please be positive and constructive with your questions and comments.