Skip to content

Commit 5bdc25d

Browse files
committed
Introduced Gamma badge and made badges clickable
1 parent bae7c01 commit 5bdc25d

File tree

8 files changed

+39
-9
lines changed

8 files changed

+39
-9
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<Badge
3-
type="warning"
4-
text="alpha"
3+
type="danger"
4+
text="Alpha"
55
title="Alpha features are experimental. They may never be generally available. If released subsequently, the APIs and behavior might change."
6+
onclick="location = '../get-started/learning-sources#feature-status-badges'" style="cursor: pointer"
67
/>
78
</template>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<Badge
33
type="warning"
4-
text="beta"
4+
text="Beta"
55
title="Beta features are planned to be generally available in subsequent releases, however, APIs and their behavior are not final and may change in the general release."
6+
onclick="location = '../get-started/learning-sources#feature-status-badges'" style="cursor: pointer"
67
/>
78
</template>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<Badge
3-
type="warning"
4-
text="concept"
3+
type="info"
4+
text="Concept"
55
title="Concept features are ideas for potential future enhancements and an opportunity for you to give feedback. This is not a commitment to implement the feature though."
6+
onclick="location = '../get-started/learning-sources#feature-status-badges'" style="cursor: pointer"
67
/>
78
</template>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<Badge
3+
type="tip"
4+
text="Gamma"
5+
title="Gamma features are finalized and ready to use, stable, and supported long term. Yet, as they have a broad scope and range, you should ensure to test them thoroughly."
6+
onclick="location = '../get-started/learning-sources#feature-status-badges'" style="cursor: pointer"
7+
/>
8+
</template>

.vitepress/theme/components/Since.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<template>
2-
<Badge type="info" :text="`since ${of} ${version}`" :title="`This feature is only available as of ${of} version ${version} or higher.`" />
2+
<Badge
3+
type="tip"
4+
:text="`Since ${of} ${version}`"
5+
:title="`This feature is only available as of ${of} version ${version} or higher.`"
6+
/>
37
</template>
48

59
<script setup lang="ts">

.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import IndexList from './components/IndexList.vue';
55
import ImplVariantsHint from './components/implvariants/ImpVariantsHint.vue';
66
import Alpha from './components/Alpha.vue';
77
import Beta from './components/Beta.vue';
8+
import Gamma from './components/Gamma.vue';
89
import Concept from './components/Concept.vue'
910
import Since from './components/Since.vue';
1011
import UnderConstruction from './components/UnderConstruction.vue';
@@ -27,6 +28,7 @@ export default {
2728
ctx.app.component('ImplVariantsHint', ImplVariantsHint)
2829
ctx.app.component('Alpha', Alpha)
2930
ctx.app.component('Beta', Beta)
31+
ctx.app.component('Gamma', Gamma)
3032
ctx.app.component('Concept', Concept)
3133
ctx.app.component('Since', Since)
3234
ctx.app.component('UnderConstruction', UnderConstruction)

.vitepress/theme/styles.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,19 @@ a.learn-more, p.learn-more, .learn-more {
535535
}
536536
}
537537

538-
.VPBadge { white-space: nowrap; }
538+
.VPBadge {
539+
&.tip {
540+
background-color: #ced; color: #031; .dark & {
541+
background-color: #031; color: #9ca;
542+
}
543+
}
544+
margin-top: 3px !important;
545+
padding: 0 0.7em !important;
546+
font-size: 80%;
547+
line-height: 1.5em;
548+
border-radius: 1.5em;
549+
white-space: nowrap;
550+
}
539551

540552
html.java {
541553
& .node {

get-started/learning-sources.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ Within the docs, you find badges that indicate the status of a feature, or API.
3434
Here's a list of the badges and their meanings:
3535

3636
| Badge | Description |
37-
|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
37+
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3838
| <Since version="1.2.3" of="@sap/..." /> | The marked feature is available with the given version or higher |
39+
| <Concept /> | Concept features are ideas for potential future enhancements and an opportunity for you to give feedback. This is not a commitment to implement the feature though |
3940
| <Alpha /> | Alpha features are experimental. They may never be generally available. If released subsequently, the APIs and behavior might change |
4041
| <Beta /> | Beta features are planned to be generally available in subsequent releases, however, APIs and their behavior are not final and may change in the general release |
41-
| <Concept /> | Concept features are ideas for potential future enhancements and an opportunity for you to give feedback. This is not a commitment to implement the feature though |
42+
| <Gamma /> | Gamma features are finalized and ready to use, stable, and supported long term. Yet, as they have a broad scope and range, you should ensure to test them thoroughly. |
4243
| <Internal /> | SAP specific features, processes, or infrastructure. Examples are _Deploy with Confidence_, _SAP product standards_, or _xMake_ |
4344

4445

0 commit comments

Comments
 (0)