Conversation
Screen.Recording.2025-11-14.at.9.28.55.PM.movMostly working, broke the examples, tho :O |
Screen.Recording.2025-11-14.at.10.49.30.PM.movGot it working :OO |
|
@gewenyu99 Can we open a draft PR on posthog.com pointing to this branch to see this in action? |
scripts/transform-docc.py
Outdated
|
|
||
| if not params: | ||
| # No parameters - simple example | ||
| code = f"PostHogSDK.shared.{method_name}()" |
There was a problem hiding this comment.
This assumes only method calls on main instance PostHogSDK, but we also have some public methods on other types, for example config.setBeforeSend(_:)
Yes, this need to actually go through Strapi, I'll set that up this week
Ooooo interesting, good call out |
|
is there anything missing here besides making CI happy? |
@marandaneto Need a review of the new documentation strings. I did a rough pass based on existing docs. Still need some tweaks. Sorry for the stale PR! A lot happened last year. Will try to get this cleaned up soon. |
💡 Motivation and Context
We have generated references for Python and JS-based SDKs already. They've proven to be popular. This is a first pass at the iOS docs.
💚 How did you test it?
Generated specs, pointing strapi to this branch, viewed the docs it produced.
Preview the docs here: PostHog/posthog.com#13762
📝 Checklist