Microsoft MakeCode

What's the best way to create a pxt target

I found the docs here: https://makecode.com/target-creation,but it’s not very helpful to be honest.
The pxt-sample is out dated and I am facing many errors when I lunch that project :disappointed:
I wonder if there is any api of the pxt framework?should I look into the source code to get what I want?
can anyone give me some advice on where to start?

Hi @FBplus,
I have read your posts on the forum. I wanted to write to you through this post because I was looking for solutions to the same problems.
I want to create my own pxt editor. I want to show code blocks that I will create myself. May you help with this problem? (I use pxt-sample and pxt-microbit pxt repos)