Skip to content

Add resource reference generator camel case config#61978

Merged
ptgott merged 1 commit intomasterfrom
paul.gottschling/2025-12-03-camel
Jan 8, 2026
Merged

Add resource reference generator camel case config#61978
ptgott merged 1 commit intomasterfrom
paul.gottschling/2025-12-03-camel

Conversation

@ptgott
Copy link
Copy Markdown
Contributor

@ptgott ptgott commented Dec 3, 2025

The resourcer reference generator splits camel-cased type names in order to create section headings. However, for terms that are already camel cased, such a MySQL, the splitting logic creates headings that make type names difficult to reason about.

This change allows us to pass a configurable list of camel-cased keywords and abbreviations to the generator. The generator only adds spaces after these strings, not within them. While the generator previously preserved abbreviations automatically, we now need to pass abbreviatons to the exception list.

This change adds camel case exceptions to the configuration in order to preserve the two pages that we currently generate.

@ptgott ptgott force-pushed the paul.gottschling/2025-12-03-camel branch from 48bfeb7 to 5a37fb9 Compare December 3, 2025 19:47
@ptgott ptgott marked this pull request as ready for review December 3, 2025 20:44
@ptgott ptgott added the no-changelog Indicates that a PR does not require a changelog entry label Dec 3, 2025
@ptgott ptgott force-pushed the paul.gottschling/2025-12-03-camel branch from 5a37fb9 to 97eb074 Compare December 4, 2025 19:20
@ptgott ptgott force-pushed the paul.gottschling/2025-12-03-camel branch 2 times, most recently from bbb3d18 to 118ad4a Compare December 11, 2025 18:11
@ptgott ptgott force-pushed the paul.gottschling/2025-12-03-camel branch from 118ad4a to dddb81c Compare December 15, 2025 14:49
@ptgott
Copy link
Copy Markdown
Contributor Author

ptgott commented Dec 15, 2025

@strideynet Let me know if you have any questions about this one!

@ptgott ptgott force-pushed the paul.gottschling/2025-12-03-camel branch 2 times, most recently from 733e4d0 to 5ca7af3 Compare December 22, 2025 15:43
@ptgott ptgott force-pushed the paul.gottschling/2025-12-03-camel branch 2 times, most recently from 9421455 to bc09b66 Compare January 6, 2026 14:12
The resourcer reference generator splits camel-cased type names in order
to create section headings. However, for terms that are already camel
cased, such a `MySQL`, the splitting logic creates headings that make
type names difficult to reason about.

This change allows us to pass a configurable list of camel-cased
keywords and abbreviations to the generator. The generator only adds
spaces after these strings, not within them. While the generator
previously preserved abbreviations automatically, we now need to pass
abbreviatons to the exception list.

This change adds camel case exceptions to the configuration in order to
preserve the two pages that we currently generate.
@ptgott ptgott force-pushed the paul.gottschling/2025-12-03-camel branch from bc09b66 to bcc86a7 Compare January 8, 2026 14:12
@ptgott ptgott added this pull request to the merge queue Jan 8, 2026
Merged via the queue into master with commit f9596cb Jan 8, 2026
45 of 46 checks passed
@ptgott ptgott deleted the paul.gottschling/2025-12-03-camel branch January 8, 2026 15:14
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@ptgott See the table below for backport results.

Branch Result
branch/v18 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants