Merge branch 'master' into feat-oss-2.7.12-release
commit
fae826f6ef
|
@ -1,56 +0,0 @@
|
||||||
---
|
|
||||||
title: Revoke a database token
|
|
||||||
description: >
|
|
||||||
Use the [`influxctl token revoke` command](/influxdb3/clustered/reference/cli/influxctl/token/revoke/)
|
|
||||||
to revoke a token from your InfluxDB cluster and disable all
|
|
||||||
permissions associated with the token.
|
|
||||||
Provide the ID of the token you want to revoke.
|
|
||||||
menu:
|
|
||||||
influxdb3_clustered:
|
|
||||||
parent: Database tokens
|
|
||||||
weight: 203
|
|
||||||
list_code_example: |
|
|
||||||
```sh
|
|
||||||
influxctl token revoke <TOKEN_ID>
|
|
||||||
```
|
|
||||||
aliases:
|
|
||||||
- /influxdb3/clustered/admin/tokens/delete/
|
|
||||||
- /influxdb3/clustered/admin/tokens/database/delete/
|
|
||||||
---
|
|
||||||
|
|
||||||
Use the [`influxctl token revoke` command](/influxdb3/clustered/reference/cli/influxctl/token/revoke/)
|
|
||||||
to revoke a database token from your {{< product-name omit=" Clustered" >}} cluster and disable
|
|
||||||
all permissions associated with the token.
|
|
||||||
|
|
||||||
1. If you haven't already, [download and install the `influxctl` CLI](/influxdb3/clustered/reference/cli/influxctl/#download-and-install-influxctl).
|
|
||||||
2. Run the [`influxctl token list` command](/influxdb3/clustered/reference/cli/influxctl/token/list)
|
|
||||||
to output tokens with their IDs.
|
|
||||||
Copy the **token ID** of the token you want to delete.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
influxctl token list
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Run the `influxctl token revoke` command and provide the following:
|
|
||||||
|
|
||||||
- Token ID to revoke
|
|
||||||
|
|
||||||
4. Confirm that you want to revoke the token.
|
|
||||||
|
|
||||||
{{% code-placeholders "TOKEN_ID" %}}
|
|
||||||
```sh
|
|
||||||
influxctl token revoke TOKEN_ID
|
|
||||||
```
|
|
||||||
{{% /code-placeholders %}}
|
|
||||||
|
|
||||||
> [!Warning]
|
|
||||||
> #### Revoking a token is immediate and cannot be undone
|
|
||||||
>
|
|
||||||
> Revoking a database token is a destructive action that takes place immediately
|
|
||||||
> and cannot be undone.
|
|
||||||
>
|
|
||||||
> #### Rotate revoked tokens
|
|
||||||
>
|
|
||||||
> After revoking a database token, any clients using the revoked token need to
|
|
||||||
> be updated with a new database token to continue to interact with your
|
|
||||||
> {{% product-name omit=" Clustered" %}} cluster.
|
|
|
@ -19,7 +19,7 @@ aliases:
|
||||||
---
|
---
|
||||||
|
|
||||||
Use the [`influxctl token revoke` command](/influxdb3/clustered/reference/cli/influxctl/token/revoke/)
|
Use the [`influxctl token revoke` command](/influxdb3/clustered/reference/cli/influxctl/token/revoke/)
|
||||||
to revoke a database token from your InfluxDB cluster and disable
|
to revoke a database token from your {{< product-name omit=" Clustered" >}} cluster and disable
|
||||||
all permissions associated with the token.
|
all permissions associated with the token.
|
||||||
|
|
||||||
1. If you haven't already, [download and install the `influxctl` CLI](/influxdb3/clustered/reference/cli/influxctl/#download-and-install-influxctl).
|
1. If you haven't already, [download and install the `influxctl` CLI](/influxdb3/clustered/reference/cli/influxctl/#download-and-install-influxctl).
|
||||||
|
|
|
@ -16,7 +16,7 @@ list_code_example: |
|
||||||
```
|
```
|
||||||
#### HTTP API
|
#### HTTP API
|
||||||
```bash
|
```bash
|
||||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \
|
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
|
||||||
--header 'Accept: application/json' \
|
--header 'Accept: application/json' \
|
||||||
--header 'Content-Type: application/json'
|
--header 'Content-Type: application/json'
|
||||||
```
|
```
|
||||||
|
|
|
@ -35,7 +35,6 @@ across sessions, assign the token string to the `INFLUXDB3_AUTH_TOKEN` environme
|
||||||
{{% tab-content %}}
|
{{% tab-content %}}
|
||||||
Use the following endpoint to create an admin token:
|
Use the following endpoint to create an admin token:
|
||||||
|
|
||||||
{{% show-in "core" %}}
|
|
||||||
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
|
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -43,15 +42,5 @@ curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
|
||||||
--header 'Accept: application/json' \
|
--header 'Accept: application/json' \
|
||||||
--header 'Content-Type: application/json'
|
--header 'Content-Type: application/json'
|
||||||
```
|
```
|
||||||
{{% /show-in %}}
|
|
||||||
{{% show-in "enterprise" %}}
|
|
||||||
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/{{< product-key >}}/configure/token/admin" \
|
|
||||||
--header 'Accept: application/json' \
|
|
||||||
--header 'Content-Type: application/json'
|
|
||||||
```
|
|
||||||
{{% /show-in %}}
|
|
||||||
{{% /tab-content %}}
|
{{% /tab-content %}}
|
||||||
{{< /tabs-wrapper >}}
|
{{< /tabs-wrapper >}}
|
||||||
|
|
|
@ -56,36 +56,18 @@ The output contains the new token string and InfluxDB deactivates the previous t
|
||||||
<!----------------------------BEGIN HTTP API----------------------------------->
|
<!----------------------------BEGIN HTTP API----------------------------------->
|
||||||
Use the following HTTP API endpoint:
|
Use the following HTTP API endpoint:
|
||||||
|
|
||||||
{{% show-in "core" %}}
|
|
||||||
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/configure/token/admin/regenerate" %}}
|
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/configure/token/admin/regenerate" %}}
|
||||||
{{% /show-in %}}
|
|
||||||
|
|
||||||
{{% show-in "enterprise" %}}
|
|
||||||
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/enterprise/configure/token/admin" %}}
|
|
||||||
{{% /show-in %}}
|
|
||||||
|
|
||||||
In your request, send an `Authorization` header with your current admin token string
|
In your request, send an `Authorization` header with your current admin token string
|
||||||
--for example:
|
--for example:
|
||||||
|
|
||||||
{{% show-in "core" %}}
|
|
||||||
{{% code-placeholders "ADMIN_TOKEN" %}}
|
{{% code-placeholders "ADMIN_TOKEN" %}}
|
||||||
```bash
|
```bash
|
||||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
|
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin/regenerate" \
|
||||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||||
--header "Accept: application/json"
|
--header "Accept: application/json"
|
||||||
```
|
```
|
||||||
{{% /code-placeholders %}}
|
{{% /code-placeholders %}}
|
||||||
{{% /show-in %}}
|
|
||||||
|
|
||||||
{{% show-in "enterprise" %}}
|
|
||||||
{{% code-placeholders "ADMIN_TOKEN" %}}
|
|
||||||
```bash
|
|
||||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \
|
|
||||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
|
||||||
--header "Accept: application/json"
|
|
||||||
```
|
|
||||||
{{% /code-placeholders %}}
|
|
||||||
{{% /show-in %}}
|
|
||||||
|
|
||||||
In your command, replace {{% code-placeholder-key %}}`ADMIN_TOKEN`{{% /code-placeholder-key %}} with the current token string.
|
In your command, replace {{% code-placeholder-key %}}`ADMIN_TOKEN`{{% /code-placeholder-key %}} with the current token string.
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ influxdb3_core:
|
||||||
versions: [core]
|
versions: [core]
|
||||||
list_order: 2
|
list_order: 2
|
||||||
latest: core
|
latest: core
|
||||||
latest_patch: 3.0.1
|
latest_patch: 3.0.3
|
||||||
placeholder_host: localhost:8181
|
placeholder_host: localhost:8181
|
||||||
ai_sample_questions:
|
ai_sample_questions:
|
||||||
- How do I install and run InfluxDB 3 Core?
|
- How do I install and run InfluxDB 3 Core?
|
||||||
|
@ -21,7 +21,7 @@ influxdb3_enterprise:
|
||||||
versions: [enterprise]
|
versions: [enterprise]
|
||||||
list_order: 2
|
list_order: 2
|
||||||
latest: enterprise
|
latest: enterprise
|
||||||
latest_patch: 3.0.1
|
latest_patch: 3.0.3
|
||||||
placeholder_host: localhost:8181
|
placeholder_host: localhost:8181
|
||||||
ai_sample_questions:
|
ai_sample_questions:
|
||||||
- How do I install and run InfluxDB 3 Enterprise?
|
- How do I install and run InfluxDB 3 Enterprise?
|
||||||
|
|
|
@ -8,49 +8,49 @@
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{- range $index, $entry := .Children -}}
|
{{- range $index, $entry := .Children -}}
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{- range $index, $entry := .Children -}}
|
{{- range $index, $entry := .Children -}}
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{- range $index, $entry := .Children -}}
|
{{- range $index, $entry := .Children -}}
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{- range $index, $entry := .Children -}}
|
{{- range $index, $entry := .Children -}}
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{- range $index, $entry := .Children -}}
|
{{- range $index, $entry := .Children -}}
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{- range $index, $entry := .Children -}}
|
{{- range $index, $entry := .Children -}}
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{- range $index, $entry := .Children -}}
|
{{- range $index, $entry := .Children -}}
|
||||||
{{- if $index -}},{{- end }}
|
{{- if $index -}},{{- end }}
|
||||||
{
|
{
|
||||||
"name": {{ .Name | jsonify }},
|
"name": {{ .Name | jsonify }},
|
||||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||||
"children": [
|
"children": [
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{ else if eq .Kind "section" }}
|
{{ else if eq .Kind "section" }}
|
||||||
<div class="important block">
|
<div class="important block">
|
||||||
{{ $packageTitle := cond (isset .Params "list_title") $.Params.list_title .Title }}
|
{{ $packageTitle := default .Title .Params.list_title }}
|
||||||
{{ $packageName := replaceRE `^(.*)( package)` "<code>$1</code>$2" $packageTitle }}
|
{{ $packageName := replaceRE `^(.*)( package)` "<code>$1</code>$2" $packageTitle }}
|
||||||
<p>
|
<p>
|
||||||
The {{ $packageName | safeHTML }} is a user-contributed package
|
The {{ $packageName | safeHTML }} is a user-contributed package
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{ else if eq .Kind "section" }}
|
{{ else if eq .Kind "section" }}
|
||||||
<div class="important block">
|
<div class="important block">
|
||||||
{{ $packageTitle := cond (isset .Params "list_title") $.Params.list_title .Title }}
|
{{ $packageTitle := default .Title .Params.list_title }}
|
||||||
{{ $packageName := replaceRE `^(.*)( package)` "<code>$1</code>$2" $packageTitle }}
|
{{ $packageName := replaceRE `^(.*)( package)` "<code>$1</code>$2" $packageTitle }}
|
||||||
<p>
|
<p>
|
||||||
The {{ $packageName | safeHTML }} is experimental and <a href="{{ $expRiskURL }}">subject to change at any time</a>.
|
The {{ $packageName | safeHTML }} is experimental and <a href="{{ $expRiskURL }}">subject to change at any time</a>.
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
{{ $product := index $productPathData 0 }}
|
{{ $product := index $productPathData 0 }}
|
||||||
{{ $version := index $productPathData 1 }}
|
{{ $version := index $productPathData 1 }}
|
||||||
{{ $tagSet := print $product "/" $version "/tags" }}
|
{{ $tagSet := print $product "/" $version "/tags" }}
|
||||||
{{ if isset .Params $tagSet }}
|
{{ with .Param $tagSet }}
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
{{ range .Param $tagSet }}
|
{{ range . }}
|
||||||
{{ $name := . }}
|
{{ $name := . }}
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" $tagSet ($name | urlize)) }}
|
{{ with $.Site.GetPage (printf "/%s/%s" $tagSet ($name | urlize)) }}
|
||||||
<a class="tag btn" href="{{ .RelPermalink }}">{{ $name }}</a>
|
<a class="tag btn" href="{{ .RelPermalink }}">{{ $name }}</a>
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
{{ else if eq $currentVersion nil}}
|
{{ else if eq $currentVersion nil}}
|
||||||
{{ $scratch.Set "siteTitle" (print (index .Site.Data.products $product).name " Documentation") }}
|
{{ $scratch.Set "siteTitle" (print (index .Site.Data.products $product).name " Documentation") }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if (isset (index .Site.Data.products $product) "altname" ) }}
|
{{ with (index .Site.Data.products $product).altname }}
|
||||||
{{ $scratch.Set "siteTitle" (print (index .Site.Data.products $product).altname " Documentation") }}
|
{{ $scratch.Set "siteTitle" (print . " Documentation") }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $scratch.Set "siteTitle" (print (index .Site.Data.products $product).name " Documentation") }}
|
{{ $scratch.Set "siteTitle" (print (index $.Site.Data.products $product).name " Documentation") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -4,37 +4,37 @@
|
||||||
{{ range $menu }}
|
{{ range $menu }}
|
||||||
<li class="nav-category {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
<li class="nav-category {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||||
|
|
||||||
<!-- Begin nested block -->
|
<!-- Begin nested block -->
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||||
<!-- To add more nested layers, copy the nested block and paste it here -->
|
<!-- To add more nested layers, copy the nested block and paste it here -->
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
{{ if eq $type "articles" }}
|
{{ if eq $type "articles" }}
|
||||||
<div class="children-links">
|
<div class="children-links">
|
||||||
{{ range $pages.ByWeight }}
|
{{ range $pages.ByWeight }}
|
||||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString) }}
|
{{ $title := default .Title .Params.list_title | .RenderString }}
|
||||||
{{ $url := cond ( isset .Params "external_url" ) .Params.external_url .RelPermalink }}
|
{{ $url := default .RelPermalink .Params.external_url }}
|
||||||
{{ $target := cond ( isset .Params "external_url" ) "_blank" "" }}
|
{{ $target := cond (ne .Params.external_url nil) "_blank" "" }}
|
||||||
{{ if eq $hlevel "h2"}} <h2 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h2>
|
{{ if eq $hlevel "h2"}} <h2 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h2>
|
||||||
{{ else if eq $hlevel "h3"}} <h3 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h3>
|
{{ else if eq $hlevel "h3"}} <h3 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h3>
|
||||||
{{ else if eq $hlevel "h4"}} <h4 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h4>
|
{{ else if eq $hlevel "h4"}} <h4 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h4>
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (eq $readMore true) ( or (isset .Params "list_query_example") (isset .Params "list_code_example") ) }}
|
{{ if and (eq $readMore true) (or .Params.list_query_example .Params.list_code_example) }}
|
||||||
<p class="read-more"><a href="{{ $url }}" target="{{ $target }}">Read more <span class="icon-chevron-right"></span></a></p>
|
<p class="read-more"><a href="{{ $url }}" target="{{ $target }}">Read more <span class="icon-chevron-right"></span></a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if eq $hr true }}
|
{{ if eq $hr true }}
|
||||||
|
@ -94,10 +94,10 @@
|
||||||
<div class="children-links">
|
<div class="children-links">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range $pages.ByWeight }}
|
{{ range $pages.ByWeight }}
|
||||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString) }}
|
{{ $title := default .Title .Params.list_title | .RenderString }}
|
||||||
{{ $url := cond ( isset .Params "external_url" ) .Params.external_url .RelPermalink }}
|
{{ $url := default .RelPermalink .Params.external_url }}
|
||||||
{{ $target := cond ( isset .Params "external_url" ) "_blank" "" }}
|
{{ $target := cond (ne .Params.external_url nil) "_blank" "" }}
|
||||||
{{ $note := cond ( isset .Params "list_note" ) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
{{ $note := cond (ne .Params.list_note nil) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
||||||
<li><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a> {{ $note | markdownify }}</li>
|
<li><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a> {{ $note | markdownify }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -108,10 +108,10 @@
|
||||||
<div class="children-links">
|
<div class="children-links">
|
||||||
<ol>
|
<ol>
|
||||||
{{ range $pages.ByWeight }}
|
{{ range $pages.ByWeight }}
|
||||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString)}}
|
{{ $title := default .Title .Params.list_title | .RenderString}}
|
||||||
{{ $url := cond ( isset .Params "external_url" ) .Params.external_url .RelPermalink }}
|
{{ $url := default .RelPermalink .Params.external_url }}
|
||||||
{{ $target := cond ( isset .Params "external_url" ) "_blank" "" }}
|
{{ $target := cond (ne .Params.external_url nil) "_blank" "" }}
|
||||||
{{ $note := cond ( isset .Params "list_note" ) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
{{ $note := cond (ne .Params.list_note nil) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
||||||
<li><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a> {{ $note | markdownify }}</li>
|
<li><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a> {{ $note | markdownify }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ol>
|
</ol>
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
|
|
||||||
<ul class="children-list">
|
<ul class="children-list">
|
||||||
{{ range $pages.ByWeight }}
|
{{ range $pages.ByWeight }}
|
||||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString) }}
|
{{ $title := default .Title .Params.list_title | .RenderString }}
|
||||||
<li><a href="#{{ anchorize $title }}">{{ $title }}</a></li>
|
<li><a href="#{{ anchorize $title }}">{{ $title }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
||||||
{{- $product := index $productPathData 0 -}}
|
{{- $product := index $productPathData 0 -}}
|
||||||
{{- $productVersion := index $productPathData 1 | default "v0.0" -}}
|
{{- $productVersion := index $productPathData 1 | default "v0.0" -}}
|
||||||
{{- $defaultClockface := cond (isset (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) "default") }}
|
|
||||||
|
{{- $defaultClockface := "" -}}
|
||||||
|
{{- with (index .Site.Data.clockface $product) -}}
|
||||||
|
{{- $defaultClockface = index . (cond (isset . $productVersion) $productVersion "default") -}}
|
||||||
|
{{- end -}}
|
||||||
{{- $version := .Get 1 | default $defaultClockface -}}
|
{{- $version := .Get 1 | default $defaultClockface -}}
|
||||||
|
|
||||||
{{- if eq $version "v2" -}}
|
{{- if eq $version "v2" -}}
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
||||||
{{- $product := index $productPathData 0 -}}
|
{{- $product := index $productPathData 0 -}}
|
||||||
{{- $productVersion := index $productPathData 1 | default "v0" -}}
|
{{- $productVersion := index $productPathData 1 | default "v0" -}}
|
||||||
{{- $defaultClockface := cond (isset (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) "default") }}
|
{{- $defaultClockface := "" -}}
|
||||||
|
{{- with (index .Site.Data.clockface $product) -}}
|
||||||
|
{{- $defaultClockface = default (index . "default") (index . $productVersion) -}}
|
||||||
|
{{- end -}}
|
||||||
{{- $version := .Get 1 | default $defaultClockface -}}
|
{{- $version := .Get 1 | default $defaultClockface -}}
|
||||||
|
|
||||||
{{ if eq $version "v2" }}
|
{{ if eq $version "v2" }}
|
||||||
|
|
Loading…
Reference in New Issue