Replies: 4 comments 3 replies
-
How about embedding some docs in the source, is that often done in javascript land? |
Beta Was this translation helpful? Give feedback.
-
It would be good to move on this so as to not get too behind with documenting all these functions. I'm not good at the documentation habit but can imagine trying to add a simple test and documentation file for each function as a minimum. I'm not sure how to quickly get started though. Maybe just add a vanilla docusaurus site under /docusaurus and start adding stuff to that, one file per function/set of functions as reference material? Then decide how to integrate with tutorial etc later? |
Beta Was this translation helpful? Give feedback.
-
just tested jsdoc in in-source-doc branch. It allows generating api docs easily. though its type system is inferior to typescript. It can either render to html or markdown, and it should integrate easily with docusaurus. here is some example output: https://github.com/tidalcycles/strudel/blob/in-source-doc/api.md , generated from these changes 2348d05#diff-c8529a9530742d567d93fc894a928043a5356ff50e608d4130f80f5e6d4ac3de |
Beta Was this translation helpful? Give feedback.
-
just tried jsdoc-json, which allows turning source comments into an easy to process json file: Line 1 in e0c77a5 |
Beta Was this translation helpful? Give feedback.
-
At some point, it would be good to have a proper docs website that is more than just a giant document. Especially as the API grows, a single document is too large.
Similar to tidal docs, we could use docusaurus for that, as it also supports MDX, which allows embedding the MiniREPL.
Probably wait for #91
Beta Was this translation helpful? Give feedback.
All reactions