1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-16 00:04:40 +00:00

docs: add badge for experimental/beta/deprecated status next to version in backend docs

This commit is contained in:
albertony
2022-11-19 13:33:15 +01:00
parent 097be753ab
commit d05fd2a14f
5 changed files with 21 additions and 4 deletions

View File

@@ -26,7 +26,20 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-9">
{{ $statusMap := dict
"deprecated" "This feature is currently deprecated."
"experimental" "This feature is currently experimental and any use is at your own risk."
"beta" "This feature is currently in beta must be used with care."
}}
{{ if .Params.versionIntroduced }}<span class="badge badge-pill badge-secondary float-right" style="margin-top: 30px; font-size: 100%" title="This feature needs Rclone {{ .Params.versionIntroduced }} or later.">{{ .Params.versionIntroduced }}</span>{{ end }}
{{ with .Params.status | lower }}
{{ $statusCode := . }}
{{ $statusMessage := index $statusMap $statusCode }}
<span class="badge badge-pill badge-danger float-right" style="margin-top: 30px; font-size: 100%" title="{{ $statusMessage }}">{{ $statusCode }}</span>
{{ end }}
{{ block "main" . }}
{{ end }}
</div>