Goal: move away from "experimental" language, replace with "technical preview"
We'll need to update the variable names and some text.
App logic:
|
class CareAdmonition < Asciidoctor::Extensions::Group |
|
BETA_DEFAULT_TEXT = <<~TEXT.strip |
|
This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. |
|
TEXT |
|
DEV_DEFAULT_TEXT = <<~TEXT.strip |
|
This functionality is in development and may be changed or removed completely in a future release. These features are unsupported and not subject to the support SLA of official GA features. |
|
TEXT |
|
EXPERIMENTAL_DEFAULT_TEXT = <<~TEXT.strip |
|
This functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. |
|
TEXT |
|
|
|
def activate(registry) |
|
[ |
|
[:beta, 'beta', BETA_DEFAULT_TEXT], |
|
[:dev, 'dev', DEV_DEFAULT_TEXT], |
|
[:experimental, 'experimental', EXPERIMENTAL_DEFAULT_TEXT], |
|
].each do |(name, role, default_text)| |
|
registry.block_macro ChangeAdmonitionBlock.new(role, default_text), name |
|
registry.inline_macro ChangeAdmonitionInline.new(role, default_text), name |
|
end |
|
end |
Specs: https://github.com/elastic/docs/blob/fa3ec61d6e1597a6d123106aca09c8e28ae034f1/resources/asciidoctor/spec/care_admonition_spec.rb
Owner: @goodroot
Goal: move away from "experimental" language, replace with "technical preview"
We'll need to update the variable names and some text.
App logic:
docs/resources/asciidoctor/lib/care_admonition/extension.rb
Lines 17 to 37 in fa3ec61
Specs: https://github.com/elastic/docs/blob/fa3ec61d6e1597a6d123106aca09c8e28ae034f1/resources/asciidoctor/spec/care_admonition_spec.rb
Owner: @goodroot