View the demo here.
This repo is a documentation website generated with (Gitbook)[https://toolchain.gitbook.com/] that makes use of the (Gitbook PXT Plugin)[https://github.com/microsoft/gitbook-plugin-pxt] to render Microsoft MakeCode blocks from markdown.
If you're using Gitbook to generate your documentation pages. You can use the Gitbook PXT plugin to add MakeCode blocks into your documentation.
Follow the steps here: https://github.com/microsoft/gitbook-plugin-pxt or copy the book.json from this repo into you Gitbook root folder.
Once Gitbook installs (run gitbook install
) the plugin, you're good to go.
You can configure the MakeCode base url (the target you're using) in the book.json's pluginConfig section.
{
"plugins": [
"pxt"
],
"pluginsConfig": {
"pxt": {
"baseUrl": "makecode.microbit.org"
}
}
}
MIT