lisp-project-of-the-day
lisp-project-of-the-day copied to clipboard
sphinxcontrib-cldomain
sphinxcontrib-cldomain
https://40ants.com/lisp-project-of-the-day/2020/11/0210-sphinxcontrib-cldomain.html
Is it possible to use this without the CL part? I.e. either write the JSON file manually, or include the signature of functions etc.. in the .rst? I want to document some embedded lisp-stuff, no chance running the CL part on the microcontroller.
Aren't you able to load your code into the CL on the usual computer?
@rmu75 anyway, I'm sure, cldomain can be hacked to use another json file generator or to use another source of knowledge about docstrings. But this will require some work.
I can't really load anything into a "real" lisp, because I want to document native stuff that is exported from C++ into the lisp interpreter, so there is no real lisp code and because of code-size constraints also no docstrings.
Is the JSON file format documented somehow or do you have some pointers? At least an example would be very helpful, reversing it from the python code seems to be error prone.
No, JSON format is not documented. No need to reverse python code. You can reverse (or adopt CL code):
https://github.com/40ants/cldomain/blob/master/src/sphinxcontrib.cldomain.lisp#L391
Or probably it will be easier to run https://github.com/40ants/cldomain/blob/master/roswell/cldomain.ros script to generate JSON for the Lisp system from my example project. It will output JSON and you'll be able to inspect it's structure.
yes, in hindsight, that should have been obvious to me. thanks.