You'd have to look at build_docs.py and common.py - I think you've delved around in that sort of stuff before.
So it looks like right now it doesn't do it, but get_jsondata checks is_for_document and only discards documentation based on what's defined if is_for_document=false.
I guess a 'docs' target could be added to the Makefile, then you could add all the -DABCD=1 style defines that usually get added to build_jswrapper to the command-line, could have a way of disabling the is_for_document=false check and you'd be sorted
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You'd have to look at
build_docs.py
andcommon.py
- I think you've delved around in that sort of stuff before.So it looks like right now it doesn't do it, but
get_jsondata
checksis_for_document
and only discards documentation based on what's defined ifis_for_document=false
.I guess a 'docs' target could be added to the Makefile, then you could add all the
-DABCD=1
style defines that usually get added tobuild_jswrapper
to the command-line, could have a way of disabling theis_for_document=false
check and you'd be sorted