Skip to content

docs: name the SDK in the v2 note, and add Python and .NET SDKs - #34

Merged
roncohen merged 4 commits into
mainfrom
docs/sdk-version-note-python-dotnet
Dec 2, 2026
Merged

roncohen merged 4 commits into
mainfrom
docs/sdk-version-note-python-dotnet

Conversation

@roncohen

@roncohen roncohen commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

SDK v2 note

Each current SDK page now opens with a note that names its SDK and links to the v1 docs. Before:

This page covers SDK v2.

After:

This page covers React SDK v2. For the legacy v1 SDK, see the v1 docs and the upgrade guide.

  • The note covers the Browser, React, Vue and Node.js pages, including their reference pages and the Browser feedback page. The Next.js page names both SDKs.
  • The importer generates the note, and the docs check requires it in each page's introduction. The "Using v1?" line at the end of each page is gone, because the note now has that link.
  • The SDK pages are re-imported from the same source commit (6f9623f), so the note is their only change.

Python and .NET SDKs

  • New pages: Python SDK (supported-languages/python-sdk.md) and .NET SDK (supported-languages/dotnet-sdk.md). Both are in the navigation and have cards on the SDK overview.
  • Both pages are copies of the README at the SDK's latest release tag: Python v0.1.2 (PyPI) and .NET v0.3.1 (NuGet). Newer README changes on each main branch will appear when those SDKs next release (python-sdk#13, dotnet-sdk#24).
  • The card icons come from Simple Icons (CC0), drawn in the same style as the other cards.

Automatic README sync

  • .github/scripts/sdk-readme.mjs sync --sdk python-sdk|dotnet-sdk --source <release checkout> writes the page and a manifest in .generated/sdk-readmes/. The manifest records the source commit, version and page hash.
  • The sync refuses a source that isn't the release tag. It points relative links at the released commit and removes the Release Please version markers.
  • check-sdk-docs fails if a synced page is edited by hand or is missing from the navigation.
  • The SDK release workflows call this script after each release: ci: copy the released README into the docs python-sdk#15 and ci: copy the released README into the docs dotnet-sdk#26.

Checks

  • check-sdk-docs, all 26 importer and README sync tests and the 30 SDK example compiles pass.
  • import --check matches the generated output.

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low

no actionable findings

1 optional refactor suggestion.

Comment thread .github/scripts/sdk-docs.mjs Resolved

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium

no actionable findings

1 optional refactor suggestion.

Comment thread .github/scripts/sdk-docs.mjs Resolved

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium

1 actionable finding.

Comment thread .github/scripts/sdk-readme.mjs Resolved
@roncohen
roncohen merged commit bcc1d26 into main Dec 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant