Skip to content
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

Fixes for expiry and alpha shortcode #1

Merged
merged 1 commit into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions site/content/en/docs/Guides/Client SDKs/unity.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Check the [Client SDK Documentation]({{< relref "_index.md" >}}) for more detail
| Player Tracking | PlayerDisconnect | ❌️ |
| Player Tracking | SetPlayerCapacity | ❌️ |
{{% /feature %}}
{{% feature publishVersion="1.24.0" %}}
{{% feature publishVersion="1.25.0" %}}
| Area | Action | Implemented |
|----------------------|--------------------------|-------------------------------|
| Lifecycle | Ready | ✔️ |
Expand Down Expand Up @@ -141,11 +141,11 @@ configuration changes.
agones.WatchGameServer(gameServer => Debug.Log($"Server - Watch {gameServer}"));
```

{{% feature publishVersion="1.24.0" %}}
{{% feature publishVersion="1.25.0" %}}

## Player Tracking

{{% alpha title="Player Tracking" gate="PlayerTracking" %}}
{{< alpha title="Player Tracking" gate="PlayerTracking" >}}

To use alpha features use the AgonesAlphaSDK class.

Expand Down
12 changes: 3 additions & 9 deletions site/layouts/shortcodes/alpha.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@
{{- $title := .Get "title" }}
<div class="alert alert-warning" role="alert">
<h4 class="alert-heading">Warning</h4>
<p>The {{ $title }} {{ if gt $len_gate 1 }}features are{{ else }}feature is{{ end }} currently <strong><a href="{{ ref . "/docs/Guides/feature-stages.md#alpha" }}">Alpha</a></strong>,
<p>The {{ $title }} {{- if gt $len_gate 1 }}features are{{ else }}feature is{{ end }} currently <strong><a href="{{ ref . "/docs/Guides/feature-stages.md#alpha" }}">Alpha</a></strong>,
not enabled by default, and may change in the future.</p>
<p>Use the Feature
{{ if gt $len_gate 1 }}Gates{{else}}Gate{{ end }}
{{- range $index, $value := first (sub $len_gate 1) $gate }} <code>{{ $value }}</code>, {{- end}}
{{ if gt $len_gate 1 }}and{{ end }}
{{ range (last 1 $gate) }}
<code>{{ . }}</code>
{{ end }}
to enable and test {{ if gt $len_gate 1 }}these features{{else}}this feature{{ end }}.</p>
<p>Use the Feature {{- if gt $len_gate 1 }}Gates{{- else}}Gate{{- end }} {{ range $index, $value := first (sub $len_gate 1) $gate }} <code>{{- $value }}</code>, {{ end }}{{ if gt $len_gate 1 }}and{{ end }}{{ range (last 1 $gate) }} <code>{{ . }}</code>{{ end }}
to enable and test {{ if gt $len_gate 1 }}these features{{else}}this feature{{ end }}.</p>
<p>See the <a href="{{ ref . "/docs/Guides/feature-stages.md#feature-gates" }}">Feature Gate documentation</a> for details on how to enable features.</p>
</div>