-
Notifications
You must be signed in to change notification settings - Fork 75
[work in progress] Add products
frontmatter, update applies_to
as needed
#1336
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
base: main
Are you sure you want to change the base?
Conversation
Drive by notes:
|
Yes! elastic/docs-builder#1200 (comment)
Sure. Would we transform the kebab case version to the formatted text version in docs-builder when adding the |
How hard or easy would it be for you to add an So instead of:
It would become
I think it's a relatively easy change now, and it will allow us to add properties in the future. just in case. Also, it makes it semantically clear that it's some sort of ID and not the display name. cc @elastic/docs-engineering Related PR: elastic/docs-builder#1238 WDYT? |
Just confirming: The page https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/1336/cloud-account/ contains the meta tags: <meta class="elastic" name="product_name" content="Cloud Hosted,Cloud Serverless">
<meta name="DC.subject" content="Cloud Hosted,Cloud Serverless"> |
Related to elastic/docs-builder#1200
Adds new
products
frontmatter, which will be used to generate metadata during the build process that the web team will use in the search experience (so users can filter by product). It also checksapplies_to
and adds additional items based on the products that are covered on the page.Here's the process:
applies_to
badges associated with the products covered in that bookproducts
associated with the AsciiDoc book(s) included inmapped_pages
.applies_to
badges for that page and compare it to the list of allapplies_to
badges mapped to the AsciiDoc book(s) included in that page'smapped_pages
.applies_to
badges, it adds them.applies_to
badges that aren't associated with themapped_pages
, it preserves them (no existing badges should be deleted).frontmatter.config.yml
and checked against it to make sure all frontmatter keys and product values are valid. (Note: I haven't checked that all the values ofdeployment
andserverless
options are valid/correctly formatted.)cc @KOTungseth @reakaleek