Base updates for beta (#5893)
* base changes for beta * updated beta notification slugpull/5901/head
parent
8526d7dc1b
commit
25e349b5ea
|
@ -120,9 +120,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.alpha {
|
||||
&.beta {
|
||||
.product-info h3::after {
|
||||
content: "alpha";
|
||||
content: "beta";
|
||||
margin-left: .5rem;
|
||||
font-size: 1rem;
|
||||
padding: .25em .5em .25em .4em;
|
||||
|
|
|
@ -97,4 +97,4 @@ blockquote {
|
|||
"blocks/important",
|
||||
"blocks/warning",
|
||||
"blocks/caution",
|
||||
"blocks/alpha";
|
||||
"blocks/beta";
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
.block.alpha {
|
||||
.block.beta {
|
||||
@include gradient($grad-burningDusk);
|
||||
padding: 4px;
|
||||
border: none;
|
||||
border-radius: 25px !important;
|
||||
|
||||
.alpha-content {
|
||||
.beta-content {
|
||||
background: $article-bg;
|
||||
border-radius: 21px;
|
||||
padding: calc(1.65rem - 4px) calc(2rem - 4px) calc(.1rem + 4px) calc(2rem - 4px);
|
|
@ -7,7 +7,7 @@ Provide the following:
|
|||
- {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
|
||||
<!--Allow fail for database create and delete: namespaces aren't reusable-->
|
||||
<!--pytest.mark.skip-->
|
||||
|
|
|
@ -14,7 +14,7 @@ Provide the following:
|
|||
- {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
|
||||
{{% code-placeholders "DATABASE_NAME" %}}
|
||||
```sh
|
||||
|
|
|
@ -9,7 +9,7 @@ Provide the following:
|
|||
- {{< product-name >}} authorization token with the `-t`, `--token` option
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
|
||||
```sh
|
||||
influxdb3 show databases
|
||||
|
|
|
@ -23,7 +23,7 @@ Provide the following with your request:
|
|||
- **Authorization:** `Bearer AUTH_TOKEN`
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization
|
||||
> While in beta, {{< product-name >}} does not require an authorization
|
||||
> token. You can either omit this header or include it with an arbitrary
|
||||
> token string.
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ Replace the following in the sample script:
|
|||
your {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> You can either omit the CLI `--token` option or the HTTP `Authorization` header or
|
||||
> you can provide an arbitrary token string.
|
||||
|
||||
|
@ -374,7 +374,7 @@ Replace the following in the sample script:
|
|||
your {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> You can either omit the CLI `--token` option or the HTTP `Authorization` header or
|
||||
> you can provide an arbitrary token string.
|
||||
|
||||
|
@ -481,7 +481,7 @@ Replace the following in the sample script:
|
|||
your {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> You can either omit the CLI `--token` option or the HTTP `Authorization` header or
|
||||
> you can provide an arbitrary token string.
|
||||
|
||||
|
@ -578,7 +578,7 @@ Replace the following in the sample script:
|
|||
your {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> You can either omit the CLI `--token` option or the HTTP `Authorization` header or
|
||||
> you can provide an arbitrary token string.
|
||||
|
||||
|
@ -677,7 +677,7 @@ Replace the following in the sample script:
|
|||
your {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> You can either omit the CLI `--token` option or the HTTP `Authorization` header or
|
||||
> you can provide an arbitrary token string.
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ When creating an InfluxDB data source that uses SQL to query data:
|
|||
- **Token**: Provide an arbitrary string.
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
|
||||
- **Insecure Connection**: If _not_ using HTTPS, enable this option.
|
||||
|
||||
|
@ -102,7 +102,7 @@ When creating an InfluxDB data source that uses InfluxQL to query data:
|
|||
- **Password**: Provide an arbitrary string.
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization
|
||||
> While in beta, {{< product-name >}} does not require an authorization
|
||||
> token, but the **Password** field does require a value.
|
||||
|
||||
- **HTTP Method**: Choose one of the available HTTP request methods to use when querying data:
|
||||
|
|
|
@ -215,7 +215,7 @@ a database connection.
|
|||
- **`?token`**: InfluxDB authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
|
||||
{{< code-callout "<(domain|port|database-name|token)>" >}}
|
||||
{{< code-callout "localhost|8181|example-database|example-token" >}}
|
||||
|
|
|
@ -69,7 +69,7 @@ the **Flight SQL JDBC driver**.
|
|||
- **Password**: _Leave empty_
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require authorization tokens.
|
||||
> While in beta, {{< product-name >}} does not require authorization tokens.
|
||||
|
||||
- **Properties File**: _Leave empty_
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ Replace the following:
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> You can either omit the `Authorization` header or you can provide an
|
||||
> arbitrary token string.
|
||||
|
||||
|
@ -224,7 +224,7 @@ EOF
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an empty or arbitrary token string.
|
||||
|
||||
2. To test the input and processor, enter the following command:
|
||||
|
@ -337,7 +337,7 @@ EOF
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an empty or arbitrary token string.
|
||||
|
||||
3. To test the input and processor, enter the following command:
|
||||
|
@ -439,7 +439,7 @@ table, tag set, and timestamp), and then merges points in each series:
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an empty or arbitrary token string.
|
||||
|
||||
3. To test the input and aggregator, enter the following command:
|
||||
|
@ -542,7 +542,7 @@ field values, and then write the data to InfluxDB:
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an empty or arbitrary token string.
|
||||
|
||||
3. To test the input and processor, enter the following command:
|
||||
|
@ -781,7 +781,7 @@ EOF
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an empty or arbitrary token string.
|
||||
|
||||
5. To test the input and processor, enter the following command:
|
||||
|
|
|
@ -51,7 +51,7 @@ After setting up {{< product-name >}} and your project, you should have the foll
|
|||
- Authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
|
||||
- {{% product-name %}} URL
|
||||
|
||||
|
|
|
@ -190,4 +190,4 @@ Replace the following:
|
|||
your {{< product-name >}} authorization token
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
|
|
|
@ -50,7 +50,7 @@ Replace the following:
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an arbitrary, non-empty token string.
|
||||
|
||||
_See how to [Configure Telegraf to write to {{% product-name %}}](/influxdb3/version/write-data/use-telegraf/configure/)._
|
||||
|
|
|
@ -69,7 +69,7 @@ Replace the following:
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an arbitrary, non-empty token string.
|
||||
|
||||
The InfluxDB output plugin configuration contains the following options:
|
||||
|
@ -88,7 +88,7 @@ To write to {{% product-name %}}, include your {{% product-name %}} URL:
|
|||
Your {{% product-name %}} authorization token.
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an arbitrary, non-empty token string.
|
||||
|
||||
> [!Tip]
|
||||
|
|
|
@ -99,7 +99,7 @@ Replace the following:
|
|||
_Store this in a secret store or environment variable to avoid exposing the raw token string._
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an arbitrary, non-empty token string.
|
||||
|
||||
> [!Tip]
|
||||
|
|
|
@ -15,7 +15,7 @@ The following example configures Telegraf for dual writing to {{% product-name %
|
|||
in your Telegraf configuration file to reference each environment variable.
|
||||
|
||||
> [!Note]
|
||||
> While in alpha, {{< product-name >}} does not require an authorization token.
|
||||
> While in beta, {{< product-name >}} does not require an authorization token.
|
||||
> For the `token` option, provide an arbitrary, non-empty token string.
|
||||
|
||||
|
||||
|
|
|
@ -39,25 +39,25 @@
|
|||
# - [The plan for InfluxDB 3.0 Open Source](https://influxdata.com/blog/the-plan-for-influxdb-3-0-open-source)
|
||||
# - [InfluxDB 3.0 benchmarks](https://influxdata.com/blog/influxdb-3-0-is-2.5x-45x-faster-compared-to-influxdb-open-source/)
|
||||
|
||||
- id: influxdb3-alpha
|
||||
- id: influxdb3-beta
|
||||
level: note
|
||||
scope:
|
||||
- /
|
||||
title: InfluxDB 3 Open Source Now in Public Alpha
|
||||
|
||||
title: InfluxDB 3 Core and Enterprise are now in Beta
|
||||
slug: |
|
||||
InfluxDB 3 Open Source is now available for alpha testing, licensed under MIT or Apache 2 licensing.
|
||||
InfluxDB 3 Core and Enterprise are now available for beta testing, available
|
||||
under MIT or Apache 2 license.
|
||||
message: |
|
||||
We are releasing two products as part of the alpha.
|
||||
InfluxDB 3 Core is a high-speed, recent-data engine that collects and
|
||||
processes data in real-time, while persisting it to local disk or object
|
||||
storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s
|
||||
foundation, adding high availability, read replicas, enhanced security, and
|
||||
data compaction for faster queries. A free tier of InfluxDB 3 Enterprise
|
||||
will also be available for at-home, non-commercial use for hobbyists to get
|
||||
the full historical time series database set of capabilities.
|
||||
|
||||
InfluxDB 3 Core, is our new open source product.
|
||||
It is a recent-data engine for time series and event data.
|
||||
InfluxDB 3 Enterprise is a commercial version that builds on Core’s
|
||||
foundation, adding historical query capability, read replicas, high
|
||||
availability, scalability, and fine-grained security.
|
||||
|
||||
For more information on how to get started, check out:
|
||||
For more information, check out:
|
||||
|
||||
- [Announcement blog from InfluxData Founder & CTO Paul Dix](https://www.influxdata.com/blog/influxdb3-open-source-public-alpha)
|
||||
- [Beta announcement blog from Paul Dix](https://www.influxdata.com/blog/influxdb3-open-source-public-beta/)
|
||||
- [Get Started with InfluxDB 3 Core](https://docs.influxdata.com/influxdb3/core/get-started/)
|
||||
- [Get Started with InfluxDB 3 Enterprise](https://docs.influxdata.com/influxdb3/enterprise/get-started/)
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<h4>Self-managed</h4>
|
||||
</div>
|
||||
<div class="products">
|
||||
<div class="product alpha">
|
||||
<div class="product beta">
|
||||
<div class="product-info">
|
||||
<h3><a href="/influxdb3/core/">InfluxDB 3 Core</a></h3>
|
||||
<p>The open source recent data engine optimized for time series and event data.</p>
|
||||
|
@ -46,7 +46,7 @@
|
|||
<li><a href="/influxdb3/core/">View documentation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product alpha">
|
||||
<div class="product beta">
|
||||
<div class="product-info">
|
||||
<h3><a href="/influxdb3/enterprise/">InfluxDB 3 Enterprise</a></h3>
|
||||
<p>The scalable data engine built for recent and historical time series and event data.</p>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{ partial "article/supported-versions.html" . }}
|
||||
{{ partial "article/page-meta.html" . }}
|
||||
</div>
|
||||
{{ partial "article/alpha.html" . }}
|
||||
{{ partial "article/beta.html" . }}
|
||||
{{ partial "article/stable-version.html" . }}
|
||||
{{ partial "article/flux-experimental.html" . }}
|
||||
{{ partial "article/flux-contrib.html" . }}
|
||||
|
|
|
@ -1,58 +0,0 @@
|
|||
<!-- This partial is no longer used but may be repurposed later for other InfluxDB products -->
|
||||
{{ $productPathData := findRE "[^/]+.*?" .RelPermalink }}
|
||||
{{ $product := index $productPathData 0 }}
|
||||
{{ $version := index $productPathData 1 }}
|
||||
{{ $productKey := cond (eq $product "influxdb3") (print "influxdb3_" (replaceRE "-" "_" $version)) $product }}
|
||||
{{ $productData := index $.Site.Data.products $productKey }}
|
||||
{{ $displayName := $productData.altname }}
|
||||
{{ $earlyAccessList := slice "influxdb3/core" "influxdb3/enterprise" }}
|
||||
|
||||
{{ if in $earlyAccessList (print $product "/" $version )}}
|
||||
<div class="block alpha">
|
||||
<div class="alpha-content">
|
||||
<h4>{{ $displayName }} is in Public Alpha</h4>
|
||||
<p>
|
||||
{{ $displayName }} is in public alpha and available for testing and feedback,
|
||||
but is <strong>not meant for production use</strong>.
|
||||
Both the product and this documentation are works in progress.
|
||||
We welcome and encourage your input about your experience with the alpha and
|
||||
invite you to <strong>join our public channels</strong> for updates and to share feedback.
|
||||
</p>
|
||||
<div class="expand-wrapper">
|
||||
<div class="expand" id="alpha-expecations">
|
||||
<p class="expand-label">
|
||||
<span class="expand-toggle"></span><span>Alpha expectations and recommendations</span>
|
||||
</p>
|
||||
<div class="expand-content" style="display: none;" >
|
||||
<ul>
|
||||
<li>
|
||||
During the alpha period, we may make breaking changes that require
|
||||
you to delete your data and start over.
|
||||
If the data you're using is important, keep backup copies in other
|
||||
places.
|
||||
</li>
|
||||
<li>
|
||||
During the alpha period, we generate new builds on every merge
|
||||
into into the InfluxDB <code>main</code> branch. Changes are
|
||||
frequent and relevant updates are posted to our public channels.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="expand" id="alpha-feedback-channels">
|
||||
<p class="expand-label">
|
||||
<span class="expand-toggle"></span><span>Join our public channels</span>
|
||||
</p>
|
||||
<div class="expand-content" style="display: none;" >
|
||||
<ul class="feedback-channels">
|
||||
<li><a href="https://discord.gg/9zaNCW2PRT" target="_blank" class="discord">InfluxDB Discord Server <em style="opacity:.5">(Preferred)</em></a></li>
|
||||
<li><a href="https://community.influxdata.com" target="_blank" class="community">InfluxData Community</a></li>
|
||||
<li><a href="https://influxdata.com/slack" target="_blank" class="slack">InfluxDB Community Slack</a></li>
|
||||
<li><a href="https://reddit.com/r/influxdb" target="_blank" class="reddit">InfluxDB Subreddit</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -0,0 +1,80 @@
|
|||
<!-- This partial is no longer used but may be repurposed later for other InfluxDB products -->
|
||||
{{ $productPathData := findRE "[^/]+.*?" .RelPermalink }}
|
||||
{{ $product := index $productPathData 0 }}
|
||||
{{ $version := index $productPathData 1 }}
|
||||
{{ $productKey := cond (eq $product "influxdb3") (print "influxdb3_" (replaceRE "-" "_" $version)) $product }}
|
||||
{{ $productData := index $.Site.Data.products $productKey }}
|
||||
{{ $displayName := $productData.altname }}
|
||||
{{ $earlyAccessList := slice "influxdb3/core" "influxdb3/enterprise" }}
|
||||
|
||||
{{ if in $earlyAccessList (print $product "/" $version )}}
|
||||
<div class="block beta">
|
||||
<div class="beta-content">
|
||||
<h4>{{ $displayName }} is in Public Beta</h4>
|
||||
<p>
|
||||
{{ $displayName }} is in public beta and available for testing and feedback,
|
||||
but is <strong>not meant for production use yet</strong>.
|
||||
Both the product and this documentation are works in progress.
|
||||
We welcome and encourage your input about your experience with the beta and
|
||||
invite you to <strong>join our public channels</strong> for updates and to
|
||||
share feedback.
|
||||
</p>
|
||||
<div class="expand-wrapper">
|
||||
<div class="expand" id="beta-expecations">
|
||||
<p class="expand-label">
|
||||
<span class="expand-toggle"></span><span>Beta expectations and recommendations</span>
|
||||
</p>
|
||||
<div class="expand-content" style="display: none;" >
|
||||
<ul>
|
||||
<li>
|
||||
<strong>No more breaking changes</strong> <br/>
|
||||
While in beta, we will no longer make breaking changes to the
|
||||
{{ $displayName }} API. Any updates to file formats or organization
|
||||
will have in-place upgrade paths for beta builds. Use the Beta
|
||||
for testing and validation purposes, knowing that when you upgrade,
|
||||
your data will come with it, and your APIs will all work the same.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Weekly releases</strong> <br/>
|
||||
While in beta, we’ll be making weekly {{ $displayName }} releases
|
||||
and providing release notes to make it easy to track updates.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Processing engine is still in alpha</strong> <br/>
|
||||
The embedded Python VM that is the processing engine should still
|
||||
be considered alpha software. It is fully functional and allows
|
||||
users to create and share plugins that trigger off of writes, a
|
||||
schedule, or requests to an HTTP endpoint. However, we want to
|
||||
continue iterating on user feedback and making changes where they
|
||||
make sense. While we don't anticipate any breaking changes,
|
||||
we're not yet committed to the current API as the long term
|
||||
support target. Feedback we get during this phase will be important
|
||||
to fine-tune the API for our users' needs.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Object store file organization and format</strong> <br/>
|
||||
{{ $displayName }} supports a "diskless" architecture, keeping all
|
||||
state in object storage. The specific file organization and format
|
||||
are <em>not</em> part of a stable API. Only the HTTP and Apache
|
||||
Arrow Flight APIs are considered stable.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="expand" id="beta-feedback-channels">
|
||||
<p class="expand-label">
|
||||
<span class="expand-toggle"></span><span>Join our public channels</span>
|
||||
</p>
|
||||
<div class="expand-content" style="display: none;" >
|
||||
<ul class="feedback-channels">
|
||||
<li><a href="https://discord.gg/9zaNCW2PRT" target="_blank" class="discord">InfluxDB Discord Server <em style="opacity:.5">(Preferred)</em></a></li>
|
||||
<li><a href="https://community.influxdata.com" target="_blank" class="community">InfluxData Community</a></li>
|
||||
<li><a href="https://influxdata.com/slack" target="_blank" class="slack">InfluxDB Community Slack</a></li>
|
||||
<li><a href="https://reddit.com/r/influxdb" target="_blank" class="reddit">InfluxDB Subreddit</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -36,8 +36,8 @@ Identify products by their product path. Dictionary schema:
|
|||
{{ $productAltLinkKey := index (index $.productInfo .productPath) 1 }}
|
||||
{{ $isCurrentProduct := in $.context.RelPermalink .productPath }}
|
||||
{{ $link := cond .useRootProductLink (print "/" .productPath "/") (cond (isset .altLinks $productAltLinkKey) (index .altLinks $productAltLinkKey) (cond $defaultAltProductPageExists $defaultAltProductPage.RelPermalink (print "/" .productPath "/"))) }}
|
||||
{{ $isAlpha := in (slice "influxdb3/core" "influxdb3/enterprise") .productPath }}
|
||||
<a href='{{ $link }}' {{ if $isCurrentProduct }}class="active"{{ end }}>{{ index (index $.productInfo .productPath) 0 }}{{ if $isAlpha }} <span class="state">alpha</span>{{ end }}</a>
|
||||
{{ $isBeta := in (slice "influxdb3/core" "influxdb3/enterprise") .productPath }}
|
||||
<a href='{{ $link }}' {{ if $isCurrentProduct }}class="active"{{ end }}>{{ index (index $.productInfo .productPath) 0 }}{{ if $isBeta }} <span class="state">beta</span>{{ end }}</a>
|
||||
{{ end }}
|
||||
|
||||
{{ $templateDefaults := dict "context" . "productInfo" $productInfo "altLinks" $altLinks "pageRoot" $pageRoot "useRootProductLink" $useRootProductLink }}
|
||||
|
|
Loading…
Reference in New Issue