[work in progress] Add products
frontmatter, update applies_to
as needed
#1336
+8,304
−2,681
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.
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