Skip to content

[SDK-JS] Add per-package READMEs and a getting-started root README#190

Draft
parthban-db wants to merge 1 commit into
mainfrom
parthban-db/stack/bugbash-bug10-readmes
Draft

[SDK-JS] Add per-package READMEs and a getting-started root README#190
parthban-db wants to merge 1 commit into
mainfrom
parthban-db/stack/bugbash-bug10-readmes

Conversation

@parthban-db
Copy link
Copy Markdown
Contributor

@parthban-db parthban-db commented Jun 3, 2026

🥞 Stacked PR

Use this link to review incremental changes.


Summary

Adds a README.md to every generated package and replaces the preview-warning-only root README with a getting-started guide, so each @databricks/sdk-* npm page and the repo root have install and usage docs.

Why

Generated packages shipped without a README, leaving each npm package page blank with no install command or usage snippet, and the root README carried only a preview warning with no getting-started path. This adds the missing documentation ahead of the DAIS launch.

What changed

  • Regenerates README.md across all generated packages: npm title, install command, a Usage snippet importing the package's client, and a link back to the root README.
  • Adds a hand-written root README covering requirements, installation, the three auth flows (PAT, U2M, M2M), a first JobsClient call, and pointers to per-package and @databricks/sdk-options docs, retaining the preview warning.
  • Pairs with universe PR #2026009, which adds the generator's README renderer; the two must land together so generated READMEs match the generator.

Validated: npm run build, npm test, npm run lint, and npm run typecheck all pass.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Please ensure that the NEXT_CHANGELOG.md file is updated with any relevant changes.
If this is not necessary for your PR, please include the following in your PR description:
NO_CHANGELOG=true
and rerun the job.

Regenerates the SDK to add a README.md to every generated package and replaces the preview-warning-only root README with a real getting-started guide covering install, authentication, and a first API call.

Generated packages shipped with no README, so each @databricks/sdk-* npm page was blank with no install command or usage snippet, and the root README only carried a preview warning, leaving no getting-started path. This blocks the DAIS launch. The per-package READMEs are uniform and emitted by the generator; the root README is a one-off and stays hand-written.

Each generated package now contains a README.md with the npm name as title, the package description, an Installation section, and a Usage snippet importing the package's Client, with a link back to the root README. The root README documents requirements, install, the three auth flows (PAT, U2M, M2M), a first JobsClient call, and pointers to per-package and options docs, retaining the preview warning.

The per-package READMEs are generated output. This regen pairs with the universe generator PR that adds the README renderer and must land together so the generated READMEs match the generator.

npm run build, npm test --workspace @databricks/sdk-core, the @databricks/sdk-examples suite, npm run lint, and npm run typecheck all pass. Only README.md files changed; pre-existing regen drift was discarded to keep the PR fix-only.

Co-authored-by: Isaac
@parthban-db parthban-db force-pushed the parthban-db/stack/bugbash-bug10-readmes branch from 427eec5 to 29dff3f Compare June 4, 2026 13:04
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