Skip to content

Conversation

@xC0dex
Copy link
Collaborator

@xC0dex xC0dex commented Nov 4, 2025

Problem

Maintaining README files for our integrations is currently a manual and error-prone process.

Solution

This PR introduces a generate-readme command (run with pnpm script generate-readme) that automagically creates and updates README files for our integrations and packages. The script will only modify a README when a corresponding readme configuration exists in package.json; otherwise, the file is left untouched.
So currently, ONLY the integrations will be generated.

image

I also added a README for our internal scripts.

Checklist

I've gone through the following:

  • I've added an explanation why this change is needed.
  • I've added a changeset (pnpm changeset).
  • I've added tests for the regression or new feature.
  • I've updated the documentation.

Note

Adds a script to auto-generate integration README files and updates CI to use Blacksmith Node setup and a composite build action.

  • Tooling:
    • README Generator: Add scripts/src/generate-readme.ts and root script readme:generate to auto-generate README.md from readme metadata.
    • Package Metadata: Add readme configs to integration package.json files and regenerate READMEs with badges, changelog links, and descriptions.
  • CI/CD:
    • Node Setup: Replace actions/setup-node with useblacksmith/setup-node in workflows.
    • Composite Build Action: Enhance and use ./.github/actions/build-blacksmith (pnpm install, turbo cache, filtered builds) across jobs.
  • Repo Config:
    • Standardize prettier via catalog in root and workspace; update lockfile accordingly.

Written by Cursor Bugbot for commit d9e3cbf. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Nov 4, 2025

⚠️ No Changeset found

Latest commit: 14d5239

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Scalar References End to End Test Results

passed  66 passed

Details

report  Open report ↗︎
stats  66 tests across 30 suites
duration  27.3 seconds
commit  14d5239

Important

These tests include snapshots that may need to be updated if there are intentional changes to the UI components. To update the snapshots run pnpm test:e2e:update in packages/api-reference and commit the changes.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Scalar CDN Snapshot Diff Results

failed  1 failed
passed  19 passed

Details

report  Open report ↗︎
stats  20 tests across 1 suite
duration  41.8 seconds
commit  14d5239
info  These tests are non-blocking and will not prevent merging of your PR.

Failed tests

test/snapshots-cdn/snapshot.e2e.ts › Diff with CDN - Stripe

Important

These tests detect visual differences between the current PR and the latest CDN build which means they may be affected by other changes in main that haven't been released yet.

They can help determine if the changes in the PR are causing any unexpected visual regressions but may be less helpful in isolating the exact cause. For more details see the readme.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Scalar Components Snapshot Test Results

passed  152 passed

Details

report  Open report ↗︎
stats  152 tests across 19 suites
duration  46.9 seconds
commit  14d5239

@xC0dex xC0dex marked this pull request as ready for review November 4, 2025 11:33
@hanspagel hanspagel closed this Nov 4, 2025
@hanspagel hanspagel reopened this Nov 4, 2025
@hanspagel
Copy link
Member

Amazing!!

we have a cli for those tasks it’s in tooling/ or somewhere, can you add it there?

@xC0dex xC0dex force-pushed the feat/auto-generate-readme branch 2 times, most recently from 32d0bb6 to b3b1e76 Compare November 5, 2025 07:45
@xC0dex
Copy link
Collaborator Author

xC0dex commented Nov 5, 2025

@hanspagel Done. I think I found the right place.

Copy link
Member

@hanspagel hanspagel left a comment

Choose a reason for hiding this comment

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

finally! :) thank you so much

can you add a link to the new CLI README in the CONTRIBUTING.md?

[![License](https://img.shields.io/npm/l/%40scalar%2Fdocusaurus)](https://www.npmjs.com/package/%40scalar%2Fdocusaurus)
[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)

![scalasaurus](docusaurus.png)
Copy link
Member

Choose a reason for hiding this comment

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

the image is gone here, I think we want to keep it (even if it might have been broken before, but let’s fix it then)


This plugin provides an easy way to render a beautiful API reference based on a OpenAPI/Swagger file with Nuxt.

[![Screenshot of an API Reference](https://github.com/scalar/scalar/assets/6176314/178f4e4c-afdf-4c6a-bc72-128ea1786350)](https://docs.scalar.com/swagger-editor)
Copy link
Member

Choose a reason for hiding this comment

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

we want to keep the screenshots everywhere 👍

}
// Always add Discord badge
badges.push(
'[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)',
Copy link
Member

Choose a reason for hiding this comment

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

maybe we want to put those markdown snippets in a text file, e.g. ./snippets/discord-badge.txt?

@xC0dex xC0dex force-pushed the feat/auto-generate-readme branch from f8b4cc5 to 14d5239 Compare November 5, 2025 10:29
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

Cloudflare Preview for the API Client

https://31ab8030.client-staging-7m0.pages.dev

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.

3 participants