Skip to content

feat(snippets): add vue-client-sdk/sdk-docs install-the-sdk npm + yarn canonicals#438

Closed
kinyoklion wants to merge 1 commit into
mainfrom
rlamb/sdk-docs-install-vue-client-sdk
Closed

feat(snippets): add vue-client-sdk/sdk-docs install-the-sdk npm + yarn canonicals#438
kinyoklion wants to merge 1 commit into
mainfrom
rlamb/sdk-docs-install-vue-client-sdk

Conversation

@kinyoklion
Copy link
Copy Markdown
Member

One of 9 stacked sdk-meta PRs that unblock ld-docs-private PR #7592. Once this lands, #7592 gets updated to insert SDK_SNIPPET:RENDER markers pointing at these canonicals.

Snippets

Two reference fragments under snippets/sdks/vue-client-sdk/snippets/sdk-docs/:

install-the-sdk-installing-with-npm.snippet.md

Body (verbatim from fern/topics/sdk/client-side/vue/index.mdx lines 80-82):

npm install --save launchdarkly-vue-client-sdk
npm install @launchdarkly/observability # optional observability plugin
npm install @launchdarkly/session-replay # optional session replay plugin

install-the-sdk-installing-with-yarn.snippet.md

Body (verbatim from fern/topics/sdk/client-side/vue/index.mdx lines 89-91):

yarn add launchdarkly-vue-client-sdk
yarn add @launchdarkly/observability # optional observability plugin
yarn add @launchdarkly/session-replay # optional session replay plugin

Where the markers land

After this merges, ld-docs PR #7592 inserts markers before the existing <CodeBlock title='Installing with npm'> (line 77) and <CodeBlock title='Installing with yarn'> (line 86) at fern/topics/sdk/client-side/vue/index.mdx.

No validation: blocks: shell install fragments, runtime validation isn't required and would need shell-install harness work that's out of scope for this PR (see #423/#428).

…n canonicals

Captures the npm and yarn install bodies verbatim from ld-docs-private's
Vue SDK reference page (each spans the SDK plus optional observability
and session replay plugins) so the markers in ld-docs PR #7592 have
canonicals to render from.
@kinyoklion
Copy link
Copy Markdown
Member Author

Superseded by #439 — combining all 9 SDK install canonicals into a single PR per the user's intent.

@kinyoklion kinyoklion closed this May 8, 2026
@kinyoklion kinyoklion deleted the rlamb/sdk-docs-install-vue-client-sdk branch May 8, 2026 22:24
kinyoklion added a commit that referenced this pull request May 8, 2026
Adds 12 canonical .snippet.md files under
snippets/sdks/<sdk>/snippets/sdk-docs/ for the install/manifest
CodeBlocks in ld-docs's top-level reference pages
(`fern/topics/sdk/{server-side,client-side}/<sdk>/index.mdx`) that
the original auto-port (sdk-meta PR #414) skipped per the
shell/bash/cmd skip rule (SDK-2300).

These snippets unblock ld-docs-private PR #7592, which can insert
markers pointing at them in a follow-up commit once this lands and
a new `snippets/v*` is cut.

Per-SDK file count:

| SDK | snippet IDs |
|---|---|
| dotnet-server-sdk | install-the-sdk-shell |
| java-server-sdk | install-the-sdk-gradle |
| node-server-sdk | install-the-sdk-shell |
| php-server-sdk | install-the-sdk-shell |
| ruby-server-sdk | install-the-sdk-shell |
| rust-server-sdk | install-the-sdk-shell |
| node-client-sdk | install-the-sdk-installing-with-npm, install-the-sdk-installing-with-yarn |
| react-native-client-sdk | install-the-sdk-installing-react-native-sdk-v10, install-the-sdk-adding-the-async-storage-dependency |
| vue-client-sdk | install-the-sdk-installing-with-npm, install-the-sdk-installing-with-yarn |

`go-server-sdk` is intentionally not in the list: the "Shell install"
mention in PR #7592's per-SDK table refers to a prose backtick quote
of `go get …`, not an MDX CodeBlock — there's nothing to canonicalize.

Bodies are byte-verbatim copies of what's in ld-docs today; verified
by running `snippets render --target=ld-docs` after a synthetic
marker insertion and confirming a zero-body-diff.

No `validation:` block: these are install/manifest fragments, not
runnable units. Adding shell-install or build-system-harness
validation for them is a separate workstream (PR #428's territory).

Replaces the originally-opened-as-9-separate-PRs sequence
(#430-#438) with a single PR per the user's
intent.
kinyoklion added a commit that referenced this pull request May 8, 2026
Adds 12 canonical .snippet.md files under
snippets/sdks/<sdk>/snippets/sdk-docs/ for the install/manifest
CodeBlocks in ld-docs's top-level reference pages
(`fern/topics/sdk/{server-side,client-side}/<sdk>/index.mdx`) that
the original auto-port (sdk-meta PR #414) skipped per the
shell/bash/cmd skip rule (SDK-2300).

These snippets unblock ld-docs-private PR #7592, which can insert
markers pointing at them in a follow-up commit once this lands and
a new `snippets/v*` is cut.

Per-SDK file count:

| SDK | snippet IDs |
|---|---|
| dotnet-server-sdk | install-the-sdk-shell |
| java-server-sdk | install-the-sdk-gradle |
| node-server-sdk | install-the-sdk-shell |
| php-server-sdk | install-the-sdk-shell |
| ruby-server-sdk | install-the-sdk-shell |
| rust-server-sdk | install-the-sdk-shell |
| node-client-sdk | install-the-sdk-installing-with-npm, install-the-sdk-installing-with-yarn |
| react-native-client-sdk | install-the-sdk-installing-react-native-sdk-v10, install-the-sdk-adding-the-async-storage-dependency |
| vue-client-sdk | install-the-sdk-installing-with-npm, install-the-sdk-installing-with-yarn |

`go-server-sdk` is intentionally not in the list: the "Shell install"
mention in PR #7592's per-SDK table refers to a prose backtick quote
of `go get …`, not an MDX CodeBlock — there's nothing to canonicalize.

Bodies are byte-verbatim copies of what's in ld-docs today; verified
by running `snippets render --target=ld-docs` after a synthetic
marker insertion and confirming a zero-body-diff.

No `validation:` block: these are install/manifest fragments, not
runnable units. Adding shell-install or build-system-harness
validation for them is a separate workstream (PR #428's territory).

Replaces the originally-opened-as-9-separate-PRs sequence
(#430-#438) with a single PR per the user's
intent.
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