Skip to content

Adds changes to the applies_to page #1325

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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

charlotte-hoblik
Copy link

@charlotte-hoblik charlotte-hoblik commented May 30, 2025

Preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/1325/syntax/applies

Update applies_to page to match new versioning guidelines. Removed outdated parts and added missing info.

@charlotte-hoblik charlotte-hoblik self-assigned this May 30, 2025
@charlotte-hoblik charlotte-hoblik requested a review from a team as a code owner May 30, 2025 11:12
@charlotte-hoblik charlotte-hoblik added the documentation Improvements or additions to documentation label May 30, 2025
@charlotte-hoblik charlotte-hoblik marked this pull request as draft May 30, 2025 11:12
@charlotte-hoblik charlotte-hoblik marked this pull request as ready for review May 30, 2025 12:06
@charlotte-hoblik charlotte-hoblik changed the title Adds versioning changes to the applies_to page Adds changes to the applies_to page May 30, 2025
Copy link
Contributor

@leemthompo leemthompo left a comment

Choose a reason for hiding this comment

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

Thanks @charlotte-hoblik your changes about the updates look great, I just think we should take the opportunity to improve the overall structure of the page now that the information is more mature. I didn't give this a 100% thorough review, but should be enough to build upon your work.

Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
@leemthompo
Copy link
Contributor

@charlotte-hoblik I think we could improve the flow in the Syntax section, namely by moving lifecycle up higher:

  • Basic pattern
  • Life cycle
  • Version
  • Combined states

charlotte-hoblik and others added 2 commits June 2, 2025 15:08
Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
@charlotte-hoblik
Copy link
Author

charlotte-hoblik commented Jun 3, 2025

Thank you, @leemthompo for the helpful feedback and suggestions!
Heads-up: the examples are still a work in progress, with more updates coming.

Copy link
Contributor

@florent-leborgne florent-leborgne left a comment

Choose a reason for hiding this comment

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

Thank you thank you @charlotte-hoblik
Your changes already make this page so much better. 🙇

I'm leaving some comments that are mostly small clarifications or suggestions to add more overall context to the core purpose of these applies_to tag.

Co-authored-by: florent-leborgne <[email protected]>
@charlotte-hoblik
Copy link
Author

Thanks so much for your review @florent-leborgne. I’ve applied your suggestions, really appreciate your help!

@florent-leborgne florent-leborgne self-requested a review June 16, 2025 10:34
Copy link
Contributor

@florent-leborgne florent-leborgne left a comment

Choose a reason for hiding this comment

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

Thank you Charlotte this is great!

I left a few more suggestions to clarify the syntax part. It's out of the scope of your work here but since we're at it... :)

We should wait until all of these changes are fully implemented by Docs Engineering to merge this PR, to avoid any error.


❌ If the product is not versioned (meaning all users are always on the latest version, like in serverless or cloud), you do not need to tag a new GA feature.

## Syntax

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The `applies_to` metadata supports an [exhaustive list of keys](#structured-model).
When you write or edit documentation, only specify the keys that apply to that content.
Each key accepts values with the following syntax:


```
<life-cycle> [version], <life-cycle> [version]
```

Taking a mandatory [life-cycle](#life-cycle) with an optional version.
Taking a mandatory [life-cycle](#life-cycle) with an optional [version](#version).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Taking a mandatory [life-cycle](#life-cycle) with an optional [version](#version).
Where:
- The [life-cycle](#life-cycle) is mandatory
- The [version](#version) is optional
- You can specify multiple states by separating them with a comma. For example: `stack: preview 9.1, ga 9.4`
Note that a key without any value doesn't show any badge in the output.


❌ If the product is not versioned (meaning all users are always on the latest version, like in serverless or cloud), you do not need to tag a new GA feature.

## Syntax

```
<life-cycle> [version], <life-cycle> [version]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<life-cycle> [version], <life-cycle> [version]
<key>: <life-cycle> [version]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants