-
Notifications
You must be signed in to change notification settings - Fork 46
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
help.lasso for Knop for Lasso 9 #25
Comments
Have you thought about utilizing Lasso 9's doc comments? Here's a quick example grabbing some doc comments in the Lasso 9 core code itself (Run this from the command line): LASSO9_RETAIN_COMMENTS=1 lasso9 -s "with m in sys_listUnboundMethods where #m->docComment->size > 0 select #m->docComment" |
Thanks for the example. It is part of our consideration. This may be one piece of the overall puzzle. However it's pretty much the same as using I know that the use of javadoc syntax was tossed about years ago for auto-generation of documentation, but I have no idea what happened to that idea, whether it was abandoned or set aside for higher priorities within LassoSoft and never developed further. |
It is like On another note, in terms of getting method / type signatures in a programatic fashion, it looks like this may have some gems in it: |
Yeah, there is some good stuff in there, but a lot more questions. What is the bitTest method? How do we get the return type of a method? Anyway, back to the point of what markup to use, we're discussing which is best. Markdown is simple and can be instantly previewed in BBEdit, but limited in features. ReStructuredText has a lot of flexibility and is easy to use, but requires an interpreter to render it to a given output (for which there are many options). Javadoc may be another option. Here's some information on it. http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html |
I've been doing additional research about which markup syntax to use going forward. I am convinced that the best option is ReStructuredText (one word or "RST") going forward. The reasons are:
|
I would be interested in helping to create a Lasso 9 domain for Sphinx. Have you made any progress on this? I'm starting to read through Sphinx documentation. |
Thanks to Brad, we've made significant progress on this issue. https://github.com/knop-project/knop/tree/master/knop9/docs I think we might be better off breaking this into different issues going forward and categorizing/tagging the issues as "docs". |
In Lasso 8, we have this pretty nifty semi-automatic documentation of the Knop API and its types and methods.
http://montania.se/projects/knop/help.lasso
It's not fully automatic. We meticulously added all that information for each method as the value for the
-description
parameter.help.lasso
parses the string, then formats it to look pretty. The output is nice, but the labor involved and potential for mistakes is not so much. Also it is not in a single searchable file (like a PDF) and it lacks a search feature (excluding in-browser searching, of course).Thus we've been looking at better ways of documenting the Knop API for Lasso 9. Our goals are:
-description
, if possible.Essentially we're looking to create a Lasso domain for Sphinx.
http://sphinx.pocoo.org/domains.html
We're looking to collaborate with any developer on this effort. Please add your comments below.
The text was updated successfully, but these errors were encountered: