Repository navigation
docs(website): build sheet headers in examples with HeadBuilder API - #1263
Merged
GOODBOY008 merged 2 commits intoOct 26, 2026
Merged
GOODBOY008 merged 2 commits into
GOODBOY008 merged 2 commits into
Conversation
GOODBOY008
approved these changes
Oct 26, 2026
GOODBOY008
left a comment
Member
There was a problem hiding this comment.
Thanks for the update! Verified against the codebase:
HeadBuilder.forSimple(...)returnsList<List<String>>, matching thehead(List)overload, and produces the same single-level head as the previousArrays.asList(Collections.singletonList(...))construction.- The
builder -> builder.column(...)lambda resolves toAbstractParameterBuilder#head(Consumer<HeadBuilder>); eachcolumn("Main Title", "Group A", "Name")call expands to the same per-column path as the old inner lists, so the merge-strategy example keeps its exact semantics. HeadBuilderhas been available since 2.1.0-incubating (#943), so the docs won't advertise an unreleased API.- EN/zh pages stay in sync, and no stale
List<List<String>>head construction is left behind.
One minor follow-up (non-blocking): in website/docs/sheet/write/head.md the sentence right below the merge-strategy example still says "Each inner list is one column..." — with the new builder.column(...) style it would read better as "Each column(...) call defines one column, listing its title from the top level down."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of the pull request
As title
What's changed?
Checklist