Skip to content

Commit 58533b1

Browse files
authored
Early access header notification (#16482)
* add early access reusable text * add early access header notification * we can use a boolean in this oneoff block
1 parent 714ca02 commit 58533b1

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

data/ui.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ header:
1818
still in translation. For the most up-to-date and accurate information,
1919
please visit our
2020
<a id="to-english-doc" href="/en">English documentation</a>.
21+
early_access:
22+
👋 This page contains content about an early access feature. Please do not share this URL publicly.
2123
search:
2224
need_help: Need help?
2325
placeholder: Search topics, products...

includes/header-notification.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,27 @@
2929
{% endif %}
3030
<!-- END RELEASE NOTICES -->
3131

32+
<!-- ONEOFF EARLY ACCESS NOTICE -->
33+
{% if page.hidden %}
34+
{% assign early_access_notification_type = true %}
35+
{% assign early_access_notification = site.data.ui.header.notices.early_access %}
36+
{% endif %}
37+
<!-- END ONEOFF EARLY ACCESS NOTICE -->
38+
3239
{% if translation_notification_type %}
3340
<div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 translation_notice{% if release_notification_type %} border-bottom border-black-fade{% endif %}">
3441
{{ translation_notification }}
3542
</div>
3643
{% endif %}
3744

3845
{% if release_notification_type %}
39-
<div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 release_notice">
46+
<div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 release_notice{% if early_access_notification_type %} border-bottom border-black-fade{% endif %}">
4047
{{ release_notification }}
4148
</div>
4249
{% endif %}
50+
51+
{% if early_access_notification_type %}
52+
<div class="header-notifications text-center f5 bg-blue-1 text-gray-dark py-4 px-6 early_access">
53+
{{ early_access_notification }}
54+
</div>
55+
{% endif %}

0 commit comments

Comments
 (0)