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

Update theme.json schema to refer to wp.org URL #36332

Merged
merged 1 commit into from
Nov 10, 2021
Merged

Conversation

mkaz
Copy link
Member

@mkaz mkaz commented Nov 9, 2021

Description

Updates the URL for theme.json schema to refer to https://schemas.wp.org/trunk/theme.json

A redirect is in place for the wp.org domain that redirects to the schemas in GitHub.
This updates the docs and create-block script to use the wp.org domain.

How has this been tested?

Confirm URL updates are correct.

Types of changes

Switch URLs from SchemaStore to wp.org domain.

@mkaz mkaz requested a review from ajitbohra as a code owner November 9, 2021 00:20
@mkaz mkaz added the [Type] Developer Documentation Documentation for developers label Nov 9, 2021
@mkaz mkaz requested a review from gziolo November 9, 2021 00:20
@mkaz mkaz merged commit eba54c0 into trunk Nov 10, 2021
@mkaz mkaz deleted the update/docs-theme-schema branch November 10, 2021 04:10
@github-actions github-actions bot added this to the Gutenberg 12.0 milestone Nov 10, 2021

Editors can pick up the schema and can provide help like tooltips, autocomplete, or schema validation in the editor. To use the schema in Visual Studio Code, add `"$schema": "https://json.schemastore.org/theme-v1.json"` to the beginning of your theme.json file.
Copy link
Member

@grappler grappler Dec 1, 2021

Choose a reason for hiding this comment

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

Is there a plan to create a theme-v1.json version too?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. Versioning can be achieved using branch names, for example: https://schemas.wp.org/wp/5.9/theme.json will refer to the schema available in WP 5.9

Copy link
Member

Choose a reason for hiding this comment

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

Thank you @mkaz, that would be great but that with that URL I am getting a 404. 🤔

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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants