Skip to content

docs(a2ui): Update documentation to align with v0.9 specification#622

Open
gspencergoog wants to merge 5 commits intogoogle:mainfrom
gspencergoog:update_docs
Open

docs(a2ui): Update documentation to align with v0.9 specification#622
gspencergoog wants to merge 5 commits intogoogle:mainfrom
gspencergoog:update_docs

Conversation

@gspencergoog
Copy link
Collaborator

@gspencergoog gspencergoog commented Feb 12, 2026

Description

This updates the docs folder to describe the 0.9 specification instead of 0.8. I added disclaimers that the renderers are not yet up to spec, but I think it's still a little odd to have docs for 0.9 and no examples yet.

Better that the docs represent the current spec, though.

- Replaced legacy v0.8 terminology (e.g., `beginRendering` -> `createSurface`, `usageHint` -> `variant`).
- Updated schema examples for components and messages throughout the documentation.
- Migrated legacy documentation to `docs/v0_8/` archive.
- Updated guides and concepts to reflect v0.9 changes.
- Add 'fit' and 'variant' properties to Image component documentation.
- Clarify 'updateDataModel' value optionality (omission implies deletion).
- Add new 'Client-Side Functions' reference page and link it.
- Mention client-side formatting in best practices.
@google google deleted a comment from google-cla bot Feb 12, 2026
@google google deleted a comment from gemini-code-assist bot Feb 12, 2026
- Move v0.8 documentation to `docs/specification/`.
- Add wrapper files for v0.8, v0.9, v0.10 specifications, evolution guides, and extension specs.
- Update mkdocs.yaml to reflect new structure and include all relevant documents.
- Update prepare_docs.py to handle file copying, JSON flattening, and comprehensive link rewriting for all versions.
- Fix internal links in markdown files to point to correct relative paths.
- Remove deprecated `docs/v0_8` directory.
@gspencergoog gspencergoog enabled auto-merge (squash) February 12, 2026 03:28
Copy link
Collaborator

@zeroasterisk zeroasterisk left a comment

Choose a reason for hiding this comment

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

The content updates look accurate, but I think we need version-specific documentation tabs before merging this.

⚠️ Blocking concern

Users on 0.8 renderers visiting the docs will see 0.9 examples that don't work for them. We should add a version switcher (like React/Vue docs have) so users can select their renderer version and see matching examples.

Options:

  1. Add version tabs to the docs site (preferred) — see React docs or Vue docs
  2. Maintain separate /v0.8/ and /v0.9/ doc paths
  3. At minimum, add prominent "Version: 0.9" badges and link to archived 0.8 docs

Happy to help spec this out if useful. What do you think?

@gspencergoog
Copy link
Collaborator Author

The content updates look accurate, but I think we need version-specific documentation tabs before merging this.

Yeah, I wondered about this too. As for what form this should take, the examples you gave basically just have a banner or a link to the previous versions.

React:
image

Vue:
image

And they start off on the "current" version by default.

That's sort of what I was going for here anyhow: the 0.8 spec docs are still there, but they're pared down.

What if we just do what React does and just keep previous versions as separate sites? I mean, for now, we can just have them at a different URL with the version in it, so we don't need separate host names, but does that sound good?

And the bigger question is: do we start people on the 0.9 docs or the 0.8 docs when they go to a21ui.org?

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

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants