[docs] json format docs and some build fixes