Espruino supports different boards and can be customized by defines like Net, Gtaphics, Neopixel etc.
May be, you have your own extensions. In that case it would be helpful to have an API documentation for your project.
In a first try I've added -BBoard parameter to build_docs.py, which changes argument to call common.get_jsondata, and adds a define in switch-path which handles -B parameters.
This would open the option to create board specific API documentation during make by calling
python build_doc.py $(FAMILY) $(WRAPPERSOURCES)
And then add it to board zip file.
If this is of general interest I would open a pull request
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem