-
Notifications
You must be signed in to change notification settings - Fork 66
feat: Generate ios sdk references #391
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
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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