1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Fix inconsistent alerts by using the markdown notation - part 2 (#35221)

Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
This commit is contained in:
Artur Kordowski
2024-11-08 18:20:31 +01:00
committed by GitHub
parent 0208d54f08
commit b1a68cb155
292 changed files with 1230 additions and 2749 deletions

View File

@@ -106,15 +106,10 @@ We use the [Liquid template language](https://shopify.github.io/liquid/basics/in
If you define multiple products in the `versions` key within a page's YAML frontmatter, you can use the conditional operators `ifversion`/`else` (or `ifversion`/`elsif`/`else`) in the Markdown to control how the site renders content on the page for a particular product. For example, a feature may have more options on {% data variables.product.prodname_dotcom_the_website %} than on {% data variables.product.prodname_ghe_server %}, so you can version the content appropriately via the `versions` frontmatter, and use Liquid conditionals to describe the additional options for {% data variables.product.prodname_dotcom_the_website %}.
{% note %}
**Notes:**
* Use `ifversion` for product-based versioning and [feature-based versioning](#about-feature-based-versioning).
* Do not use `if` or `unless`.
* Make sure to use `elsif` and not `else if`. Liquid does not recognize `else if` and will not render content inside an `else if` block.
{% endnote %}
> [!NOTE]
> * Use `ifversion` for product-based versioning and [feature-based versioning](#about-feature-based-versioning).
> * Do not use `if` or `unless`.
> * Make sure to use `elsif` and not `else if`. Liquid does not recognize `else if` and will not render content inside an `else if` block.
### Comparison operators
@@ -195,11 +190,8 @@ Feature-based versioning provides named "feature flags" that simplify the mainte
Each feature is managed through individual YAML files in `data/features/`.
{% note %}
**Note**: Do not delete `data/features/placeholder.yml` because it is used by tests.
{% endnote %}
> [!NOTE]
> Do not delete `data/features/placeholder.yml` because it is used by tests.
To create a new feature, first create a new YAML file with the feature name you want to use in this directory. For a feature named `meow`, that would be `data/features/meow.yml`.