Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rence Keeps the hand-written library page in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the intake script, version selector and nav code with one small step in onPreBootstrap. The SDK repo writes each page, front matter included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…est out of search Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A major's page, such as Python 7, is written to 7.x.x.md, so its URL reads /docs/libraries/python/7.x.x. The noindex rule matches the new URLs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each SDK's docs nav gets Reference, with its current and experimental majors, and Migration guides where the SDK has one, like Python's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sidebar doesn't indent a third nav level, so the majors sit at the SDK's level as Reference 7.x.x and Reference 8.x.x (experimental). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This reverts commit 4a3f767.
This reverts commit cf8fc34.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TreeMenu built each level's indent as a pl-* class at runtime, and Tailwind only builds the classes it finds in the source, so a fourth level (pl-18) had no padding. The same padding is now inline, so every level keeps its indent and deeper levels get one too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This reverts commit 062a023.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs nav gets SDK reference, between SDKs and Frameworks. Python opens its latest reference and lists 7.x.x, 8.x.x (experimental) and Migration guides, three levels deep. Python's own SDKs entry keeps Setup and usage and one Reference link, as on master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der SDK reference Each SDK goes under the SDK reference entry from #21973, three levels deep, instead of under its own SDKs entry. Their SDKs entries don't change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A referenceId or version with a slash or leading dot could write outside contents/docs/libraries. The intake now skips such a row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#22061 deletes libraries/ios/index.mdx and configuration.mdx and serves the SDK's MIGRATION.md at /docs/libraries/ios/migration, which already covers the upgrade, event options, captureAi and traits sections. Drop this PR's edits to those pages and link the install snippet to the migration page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads-up from the posthog-android 4.0 release review, about 428cf1b (replacing the SDK pages with their references). Anchors into the Android page break. The redirect makes
The other retired SDK pages likely have the same pattern. #21385, stacked on this PR, also adds The Android migration page was stale, and that's fixed on our side. posthog-android's generator built No conflict with #21808. It no longer edits 🤖 Generated with Claude Code |
| surveys: false | ||
| aiObservability: true | ||
| errorTracking: true | ||
| tracing: true |
There was a problem hiding this comment.
This page and python/index.mdx were the only ones that set features.tracing. With both deleted, the build fails with Cannot query field "tracing" on type "MdxFrontmatterFeatures", because src/components/LibraryComparison/index.tsx still queries it. That fails "Build & deploy preview" here and on #21385 and #22299, which are stacked on this PR. The deleted pages also remove 11 SDK rows (30 to 19) from the feature comparison table on /docs/libraries, so the table needs a new source for those rows, or at least a schema type for features.
| name: 'Reference', | ||
| url: '/docs/references/posthog-node', | ||
| name: 'Migration guide', | ||
| url: '/docs/libraries/node/migration', |
There was a problem hiding this comment.
On the SDK release branches, each references/*-reference.md still holds the previous major, for example pip install "posthog>=7,<8" in posthog-python's. After the SDK majors publish, could you confirm the release regenerated those files and Strapi ingested them, so /docs/libraries/<sdk>/reference and the /migration pages show the new major? posthog-node's release branch has no references/posthog-node-migration.md, so this link depends on the release run generating it.
The comparison table read each SDK's features from its page's frontmatter. The nine SDK pages this PR retires carried the only tracing field, so the build failed and those SDKs left the table. Their features now live in the component and link to the references. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DK pages Move the React Native iOS dependency paths into the error tracking React Native page, since no other page has them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restore the iOS, Android, Flutter, and React Native pages, nav entries, redirects, and links to match master. The mobile reference move lands in its own PR after the mobile majors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Changes
The SDK repos now commit Markdown references for Python, JavaScript Web, Node.js, Go, and Rust. This PR makes those references the SDK docs. iOS, Android, Flutter, and React Native move in #22334, after their majors ship. It is the only nav PR for the Markdown references, and it includes the nav from #21973 and #22003.
/docs/libraries/<sdk>for the five SDKs, and the six JavaScript Web subpages (usage, config, snippet versioning, security, persistence, and types)./docs/references/posthog-*URLs also redirect to the references.docs/getting-started.md, which each reference shows as its "Getting started" section.src/navs/activeMenu.test.tschecks that every reference version and migration page uses the SDK sidebar.The 568 internal links to the retired pages work through the redirects.
Screenshots
The Node.js reference, from a local build with the posthog-js pages in a local Strapi.
Testing
node --test src/navs/activeMenu.test.tspnpm buildwith the JS pages in a local Strapi.md, a version, or a subpath, goes to its SDK's reference./docs/references/posthog-iosandposthog-jsxdon't match.Not tested: the Vercel preview, and a build on the current master.
Merge order
datafield), and the SDK repos (their JSON files)🤖 Generated with Claude Code