Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Schema Docgen Rework #63868

Merged
merged 43 commits into from
Jul 23, 2024
Merged

JSON Schema Docgen Rework #63868

merged 43 commits into from
Jul 23, 2024

Conversation

ajlende
Copy link
Contributor

@ajlende ajlende commented Jul 23, 2024

Reopened #63639 so that it could be merged in the correct order after #63591.

What?

Reworks the theme.json reference docgen.

Key features include:

  • Descriptions for styles and settings properties.
  • Reworked type serialization to remove the props heading for styles and settings.
  • Better types everywhere in the document.
  • Details for settings and styles.
  • The useRootPaddingAwareAlignments top-level property returns.
  • Cleaner code.

Why?

Split out of #63591 so that both the schema changes and codegen changes can be reviewed independently from one another.

How?

Slow refactoring of the docgen code bit by bit. Check out the commits for details.

Testing Instructions

See that the new docs look correct.

Testing Instructions for Keyboard

N/A

Screenshots or screencast

N/A

Copy link

github-actions bot commented Jul 23, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ajlende <ajlende@git.wordpress.org>
Co-authored-by: scruffian <scruffian@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Base automatically changed from update/json-schema-cleanup to trunk July 23, 2024 16:26
@ajlende ajlende force-pushed the update/json-schema-codegen-rework branch from 858e561 to 8c2c101 Compare July 23, 2024 16:43
Copy link
Contributor

@scruffian scruffian left a comment

Choose a reason for hiding this comment

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

LGTM

@ajlende ajlende enabled auto-merge (squash) July 23, 2024 16:50
@ajlende ajlende merged commit 4cf4ec3 into trunk Jul 23, 2024
61 checks passed
@ajlende ajlende deleted the update/json-schema-codegen-rework branch July 23, 2024 17:18
@github-actions github-actions bot added this to the Gutenberg 18.9 milestone Jul 23, 2024
westonruter added a commit that referenced this pull request Jul 23, 2024
* trunk: (2604 commits)
  Update "Versions in WordPress" page (#63869)
  SelectControl: Fix hover/focus color in wp-admin (#63855)
  Add margin-bottom lint rules for RangeControl (#63821)
  JSON Schema Docgen Rework (#63868)
  JSON Schema Reorganization and Fixes (#63591)
  DataForm: Add a simple story for the DataForm component (#63840)
  Quick Edit: Support bulk selection (#63841)
  Update dataviews docs (#63860)
  Bump the github-actions group across 1 directory with 4 updates (#63808)
  Add unit tests for the gutenberg_render_block_core_post_title() function.
  Make hover block outlines not present in Distraction Free (#63819)
  DataViews: Rename the header property of fields to label (#63843)
  Fix: Error while Calling edit-site getCurrentTemplateTemplateParts selector (#63818)
  Revert "Update HeightControl component to label inputs" (#63839)
  Zoom out: hide vertical toolbar when block is not full width (#63650)
  Latest comments: Add color block support (#63419)
  Core Data: Remove leftover 'todo' comment (#63842)
  Tabs: keep full opacity of focus ring on disabled tabs (#63754)
  Fix selected row styles in table layout (#63811)
  Align checkbox, radio, and toggle input design (#63490)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
Development

Successfully merging this pull request may close these issues.

2 participants