extended the children function and updated uses of the children function
parent
56f1be7ac5
commit
8d5a7f3bee
|
@ -23,7 +23,4 @@ The following articles explain how to configure and build tasks using the Influx
|
|||
and via raw Flux scripts with the `influx` command line interface (CLI).
|
||||
They also provide examples of commonly used tasks.
|
||||
|
||||
[Write a task](/v2.0/process-data/write-a-task)
|
||||
[Manage Tasks](/v2.0/process-data/manage-tasks)
|
||||
[Common Tasks](/v2.0/process-data/common-tasks)
|
||||
[Task Options](/v2.0/process-data/task-options)
|
||||
{{< children >}}
|
||||
|
|
|
@ -15,7 +15,4 @@ InfluxDB provides two options for managing the creation, reading, updating, and
|
|||
through the InfluxDB user interface (UI) or using the `influx` command line interface (CLI).
|
||||
Both tools can perform all task CRUD operations.
|
||||
|
||||
[Create a task](/v2.0/process-data/manage-tasks/create-task)
|
||||
[View tasks](/v2.0/process-data/manage-tasks/view-tasks)
|
||||
[Update a task](/v2.0/process-data/manage-tasks/update-task)
|
||||
[Delete a task](/v2.0/process-data/manage-tasks/delete-task)
|
||||
{{< children >}}
|
||||
|
|
|
@ -10,4 +10,4 @@ menu:
|
|||
|
||||
The following guides walk through common query uses cases.
|
||||
|
||||
{{% children %}}
|
||||
{{< children >}}
|
||||
|
|
|
@ -12,4 +12,4 @@ Flux functions primarily retrieve, shape and transform, then output data, howeve
|
|||
there are functions available that serve other purposes.
|
||||
The following functions are are available but don't fit within other function categories:
|
||||
|
||||
{{< function-list category="Miscellaneous" menu="v2_0_ref" >}}
|
||||
{{< children type="functions" >}}
|
||||
|
|
|
@ -11,4 +11,4 @@ menu:
|
|||
Flux output functions yield results or send data to a specified output destination.
|
||||
The following output functions are are available:
|
||||
|
||||
{{< function-list category="Outputs" menu="v2_0_ref" >}}
|
||||
{{< children type="functions" >}}
|
||||
|
|
|
@ -11,4 +11,4 @@ menu:
|
|||
Flux testing functions test piped-forward data in specific ways and return errors if the tests fail.
|
||||
The following testing functions are available:
|
||||
|
||||
{{< function-list category="Tests" menu="v2_0_ref" >}}
|
||||
{{< children type="functions" >}}
|
||||
|
|
|
@ -11,17 +11,8 @@ menu:
|
|||
Flux transformation functions transform or shape your data in specific ways.
|
||||
There are different types of transformations categorized below:
|
||||
|
||||
## [Aggregates](/v2.0/reference/flux/functions/transformations/aggregates)
|
||||
Aggregate functions take values from an input table and aggregate them in some way.
|
||||
The output table contains is a single row with the aggregated value.
|
||||
|
||||
## [Selectors](/v2.0/reference/flux/functions/transformations/selectors)
|
||||
Selector functions return one or more records based on function logic.
|
||||
The output table is different than the input table, but individual row values are not.
|
||||
|
||||
## [Type conversions](/v2.0/reference/flux/functions/transformations/type-conversions)
|
||||
Type conversion functions convert the `_value` column of the input table into a specific data type.
|
||||
{{< children show="sections" >}}
|
||||
|
||||
## Generic transformations
|
||||
|
||||
{{< function-list category="Transformations" menu="v2_0_ref" >}}
|
||||
{{< children type="functions" show="pages" >}}
|
||||
|
|
|
@ -32,7 +32,7 @@ It windows and aggregates the data, then combines windowed tables into a single
|
|||
### Aggregate functions
|
||||
The following aggregate functions are available:
|
||||
|
||||
{{< function-list category="Aggregates" menu="v2_0_ref" >}}
|
||||
{{< children type="functions" >}}
|
||||
|
||||
### Aggregate selectors
|
||||
The following functions are both aggregates and selectors.
|
||||
|
|
|
@ -13,7 +13,7 @@ The output table is different than the input table, but individual row values ar
|
|||
|
||||
The following selector functions are available:
|
||||
|
||||
{{< function-list category="Selectors" menu="v2_0_ref" >}}
|
||||
{{< children type="functions" >}}
|
||||
|
||||
|
||||
### Selectors and aggregates
|
||||
|
|
|
@ -11,4 +11,4 @@ menu:
|
|||
Flux type conversion functions convert columns of the input table into a specific data type.
|
||||
The following type conversion functions are available:
|
||||
|
||||
{{< function-list category="Type conversions" menu="v2_0_ref" >}}
|
||||
{{< children type="functions" >}}
|
||||
|
|
|
@ -13,8 +13,4 @@ menu:
|
|||
Flux contains many preassigned values.
|
||||
These preassigned values are defined in the source files for the various built-in packages.
|
||||
|
||||
## [System built-ins](/v2.0/reference/flux/language/built-ins/system-built-ins)
|
||||
When a built-in value is not expressible in Flux, its value may be defined by the hosting environment.
|
||||
|
||||
## [Time constants](/v2.0/reference/flux/language/built-ins/time-constants)
|
||||
When a built-in value is not expressible in Flux, its value may be defined by the hosting environment.
|
||||
{{< children >}}
|
||||
|
|
|
@ -1,5 +1,15 @@
|
|||
{{ $pages := union .Page.Pages .Page.Sections }}
|
||||
{{ $type := .Get "type" | default "articles" }}
|
||||
{{ $show := .Get "show" | default "all" }}
|
||||
|
||||
{{ if eq $show "all" }}
|
||||
{{ .Scratch.Set "pages" (union .Page.Pages .Page.Sections) }}
|
||||
{{ else if (eq $show "sections") }}
|
||||
{{ .Scratch.Set "pages" .Page.Sections }}
|
||||
{{ else if (eq $show "pages") }}
|
||||
{{ .Scratch.Set "pages" .Page.Pages }}
|
||||
{{ end }}
|
||||
|
||||
{{ $pages := .Scratch.Get "pages" }}
|
||||
|
||||
<div class="children-links">
|
||||
{{ if eq $type "articles" }}
|
||||
|
|
Loading…
Reference in New Issue