Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sphinxcontrib-cldomain #39

Open
utterances-bot opened this issue Nov 19, 2020 · 6 comments
Open

sphinxcontrib-cldomain #39

utterances-bot opened this issue Nov 19, 2020 · 6 comments

Comments

@utterances-bot
Copy link

sphinxcontrib-cldomain

https://40ants.com/lisp-project-of-the-day/2020/11/0210-sphinxcontrib-cldomain.html

Copy link

rmu75 commented Nov 19, 2020

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.

@svetlyak40wt
Copy link
Member

Aren't you able to load your code into the CL on the usual computer?

@svetlyak40wt
Copy link
Member

@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.

Copy link

rmu75 commented Nov 19, 2020

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.

@svetlyak40wt
Copy link
Member

svetlyak40wt commented Nov 19, 2020

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.

@rmu75
Copy link

rmu75 commented Nov 19, 2020

yes, in hindsight, that should have been obvious to me. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants