Update WebC doc - #2362
Open
d3v1an7 wants to merge 2 commits into
Open
Conversation
vrugtehagel
reviewed
Sep 8, 2026
Co-authored-by: vrugtehagel <vrugtehagel@pm.me>
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.
Hi there, this is a bit of a chonky boi!
I recently had to write some autocomplete notes for a WebC VS Code extension, and figured I should have a shot at applying what I learned in that process to the official docs.
There are a few unrelated changes (direct phrasing, minor typos, adding/fixing links), but the main point of the PR is a revamp of what was previously bundled as the
WebC Reference.Key changes
WebC Referencehas been removed, in favour of the following groups:Keeps,Imports,Replaces), and I try to state what the attribute does to its element within one sentence, followed by caveats and code example/s.Anchor changes
There are handful of anchor additions/removals, along with some changes to existing anchors:
webcfor-loopswebcforusing-java-script-to-setup-your-componentwebcsetupjava-script-render-functions-webctypejs-and-webctyperenderwebctypejsusing-template-syntax-to-generate-contentwebctype11ty-and-11tytypeusing-java-script-to-generate-contentwebctypecomponents,components-2head-components,table-componentswebcscopedmy-prefix,arrays-(or-any-other-iterable),objects,nesting,nesting-webcforAI disclaimer
Claude was used to sense check, compare against my WIP styleguide, and run each code example to ensure the output examples are correct. Some of the attribute descriptions had a first pass from Claude (help getting the correct verb or sentence shorter), but all copy has been human edited.