Repository navigation
feat: link docs pages to the Vaadin entity graph in JSON-LD (#6802) (CP: v25.3) - #6818
Merged
Merged
Conversation
## Summary Configures the JSON-LD structured data that Design System Publisher adds to each docs article, so that each page links to the Vaadin entity graph used on vaadin.com, and documents the new `structuredData` option. Production builds from the `docs-app` default branch, which already supports the option, so it takes effect on the first production deploy after this is merged. Local development and the PR preview use the pinned DSP release (`DSP_VERSION` in `dspublisher/dspublisher-scripts.js` and the build in `Dockerfile.preview`), and get the structured data once those are bumped to a release that includes it. ## What changed - `dspublisher/config/default.json`: - Docs `WebSite` node `https://vaadin.com/docs/#website`, with URL `https://vaadin.com/docs/latest/`, part of `https://vaadin.com/#website` and published by `https://vaadin.com/#organization`. - `about` by path, the longest match wins: - `/components`: `https://vaadin.com/components#software` - `/tools/copilot`: `https://vaadin.com/copilot#software` - `/flow/react-views`: `https://vaadin.com/hilla#software` - `/flow/testing`: `https://vaadin.com/testbench#software` - other pages under `/flow`: `https://vaadin.com/framework#software` - all other pages: `https://vaadin.com/#software` - DSP configuration page: new `structuredData` option and section, the `canonicalUrl` version property that the data depends on, and a note that `dateModified` needs a full Git clone. - No `/hilla` mapping: every `/hilla` path is a redirect now, so no page would match it. The React views pages, where that content now lives, are about Hilla instead. ## Test summary - Built the DSP test site with an equivalent configuration and checked the generated JSON-LD. - Vale reports no findings on the changed lines. Working on behalf of Petter --------- Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
Contributor
Preview DeploymentThis PR has been deployed for preview. URL: https://docs-preview-pr-6818.fly.dev Changed pagesAdded content is highlighted in green; removed content is marked in red on each page.
Base branch changesNot marked in the preview: v25.3 is a maintenance branch, not a stacked pull request branch. Everything highlighted in the preview belongs to this PR. Built from 5813192 |
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.
No description provided.