Skip to content

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Jun 27, 2025

Changes

  • Introduce a new Versions Config.
  • Use versions.yml config for applies_to tags.

Notes

We were not able to use assembler config because the config needs to be available in isolated builds as well.

Preview

https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/1465/syntax/applies#inline-examples

image

@reakaleek reakaleek requested review from a team as code owners June 27, 2025 15:46
@reakaleek reakaleek marked this pull request as draft June 27, 2025 15:51
@reakaleek reakaleek requested a review from Copilot June 29, 2025 20:14
@reakaleek reakaleek self-assigned this Jun 29, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables versioning support for “applies_to” by incorporating a new VersionsConfiguration into the build context and updating lifecycle values across tests, directives, and UI components. Key changes include replacing “discontinued” with “removed” in applicable scenarios, adding several new tests to verify parsing behavior, and updating CLI, assembler, and rendering components to utilize version configuration support.

Reviewed Changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated 2 comments.

File Description
tests/authoring/Framework/Setup.fs Adds versioning systems to BuildContext; note potential incorrect ID for “eck”.
src/Elastic.Markdown/Myst/Roles/RoleParser.cs Fixes content slice calculation to avoid overrunning the span.
Other files Various updates to tests, CLI commands, components, and documentation reflecting lifecycle value changes and new versioning support.

@reakaleek reakaleek force-pushed the feature/versioning branch from c3d429a to 464869d Compare June 29, 2025 20:48
@reakaleek reakaleek changed the title WIP: Applies_to versioning Use new versions.yml config to render applies_to tags Jun 29, 2025
@reakaleek reakaleek marked this pull request as ready for review June 29, 2025 20:50
document.addEventListener('htmx:load', function () {
document.addEventListener('htmx:load', function (event) {
console.log('htmx:load')
console.log(event.detail)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the logs move up to prod for now?

Copy link
Member Author

Choose a reason for hiding this comment

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

woops. thank you!

Will remove it.

Copy link
Contributor

@cotti cotti left a comment

Choose a reason for hiding this comment

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

LGTM!

@reakaleek
Copy link
Member Author

After meeting with the design team, they already sneak peaked the future design of the applies_to tags.. I will add the design in a follow-up.

@reakaleek reakaleek enabled auto-merge (squash) June 30, 2025 15:20
@reakaleek reakaleek merged commit 1440a52 into main Jun 30, 2025
15 checks passed
@reakaleek reakaleek deleted the feature/versioning branch June 30, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants