Skip to content

chore: add docs code widget support#652

Open
strausr wants to merge 1 commit intomainfrom
doc-code-widget-support
Open

chore: add docs code widget support#652
strausr wants to merge 1 commit intomainfrom
doc-code-widget-support

Conversation

@strausr
Copy link
Collaborator

@strausr strausr commented Mar 17, 2026

No description provided.

@vercel
Copy link

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
next-cloudinary Ready Ready Preview Mar 17, 2026 7:30pm

Request Review

@@ -0,0 +1,704 @@
/**
* Code generation config for next-cloudinary.
* The CSS service reads this file to generate <CldImage> / <CldVideoPlayer> JSX snippets
Copy link
Contributor

Choose a reason for hiding this comment

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

CGS, not CSS, right?

var lines = ['<CldImage'];
lines.push(' src="' + publicId + '"');
emitProps(lines, props, IMAGE_ORDERED_PROPS);
lines.push(' alt="' + humanizePublicId(publicId) + '"');
Copy link
Contributor

Choose a reason for hiding this comment

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

We'd talked about making alt into something it was obvious you should replace (e.g., "Description of the image..."). I like that better because setting/forgetting alts to filenames is a plague, but am open to hearing compelling reasons why this is better.

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.

2 participants