Scope solution onboarding CTAs via docset.yml paths#7555
Closed
bmorelli25 wants to merge 1 commit into
Closed
Conversation
Adds observability, security, and search CTA templates that deep-link the "Get started free" sidebar CTA into the matching Serverless onboarding flow (onboarding_token=observability|security|search). Each template is scoped to its solution subtree via the new cta.<name>.paths key, so every page under solutions/observability, solutions/security, and the search solution folders gets the right CTA without per-page frontmatter. Pages that already set an explicit cta id (the monitor-kubernetes / monitor-aws pages) keep their more specific CTA, since frontmatter wins over a path scope. Depends on and must merge after elastic/docs-builder#3716 is released. Implements elastic/docs-content-internal#1475. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
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.
What
Adds three CTA templates to
docset.ymland scopes each to its solution subtree, so the "Get started free" sidebar CTA deep-links into the matching Serverless onboarding flow:onboarding_token=observabilitysolutions/observabilityonboarding_token=securitysolutions/securityonboarding_token=searchsolutions/search,solutions/elasticsearch-solution-projectThis uses the new
cta.<name>.pathskey added in elastic/docs-builder#3716. Every page under a scoped prefix gets the right CTA with no per-page frontmatter, and new pages inherit it automatically.Implements elastic/docs-content-internal#1475.
Exclusions handled for free
The issue asks to exclude the pages already updated in #635 (the
monitor-kubernetes/monitor-awspages from #7135 / #7191). Those pages set an explicitctaid in frontmatter, which always wins over a path scope, so they keep their more specific CTA without any exclusion list. Theazure-native-isv-servicepage lives underdeploy-manage/, outside these scopes, and is unaffected.This depends on elastic/docs-builder#3716. The current docs-builder does not recognize the
pathskey, so this must merge after #3716 is released into the docs-builder version docs-content builds with. Do not merge before then.Open question
ziv's comment on #1475 gave the search scope as
solutions/elasticsearch-solution-project, but the published search solution content lives undersolutions/search(49 pages vs. 13). I scoped both toonboarding_token=searchto be safe. Confirm whether both should carry the search token, or only one.Test plan
monitor-kubernetes/monitor-awspages still render their own CTAMade with Cursor