Closed vdusek closed 1 month ago
Paging @barjin - could you provide some details about how we generate docs for the Python SDK?
From https://stackoverflow.com/questions/51125415/how-do-i-document-a-constructor-for-a-class-using-python-dataclasses it seems that sphinx can indeed handle Args:
in the docblock in a reasonable fashion.
Following the in-office discussion, I'm sharing this here, so we can refer to it:
The current API reference for Python projects is an amalgamation of pydoc-markdown
, existing tools we have for JS projects and one very ugly python-syntax-tree to javascript-syntax-tree conversion script (plus a pinch of bash scripts).
It's by no means a good solution - having something new, clean and cool in this project would be very nice (as we could then port it from here to all the other repos. Sorry to let you all down :(
Closing this one, it has already been explored and discussed with @barjin and @janbuchar, and we have https://github.com/apify/crawlee-python/issues/324.
Let's consider the following example:
Is doc tooling (maybe the one we use in SDK) able to handle it properly?
Based on the discussion in here https://github.com/apify/crawlee-py/pull/20#discussion_r1521198126.