extended the children function and updated uses of the children function

pull/46/head
Scott Anderson 2019-02-06 09:03:32 -07:00
parent 56f1be7ac5
commit 8d5a7f3bee
12 changed files with 23 additions and 32 deletions

View File

@ -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). and via raw Flux scripts with the `influx` command line interface (CLI).
They also provide examples of commonly used tasks. They also provide examples of commonly used tasks.
[Write a task](/v2.0/process-data/write-a-task) {{< children >}}
[Manage Tasks](/v2.0/process-data/manage-tasks)
[Common Tasks](/v2.0/process-data/common-tasks)
[Task Options](/v2.0/process-data/task-options)

View File

@ -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). through the InfluxDB user interface (UI) or using the `influx` command line interface (CLI).
Both tools can perform all task CRUD operations. Both tools can perform all task CRUD operations.
[Create a task](/v2.0/process-data/manage-tasks/create-task) {{< children >}}
[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)

View File

@ -10,4 +10,4 @@ menu:
The following guides walk through common query uses cases. The following guides walk through common query uses cases.
{{% children %}} {{< children >}}

View File

@ -12,4 +12,4 @@ Flux functions primarily retrieve, shape and transform, then output data, howeve
there are functions available that serve other purposes. there are functions available that serve other purposes.
The following functions are are available but don't fit within other function categories: 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" >}}

View File

@ -11,4 +11,4 @@ menu:
Flux output functions yield results or send data to a specified output destination. Flux output functions yield results or send data to a specified output destination.
The following output functions are are available: The following output functions are are available:
{{< function-list category="Outputs" menu="v2_0_ref" >}} {{< children type="functions" >}}

View File

@ -11,4 +11,4 @@ menu:
Flux testing functions test piped-forward data in specific ways and return errors if the tests fail. Flux testing functions test piped-forward data in specific ways and return errors if the tests fail.
The following testing functions are available: The following testing functions are available:
{{< function-list category="Tests" menu="v2_0_ref" >}} {{< children type="functions" >}}

View File

@ -11,17 +11,8 @@ menu:
Flux transformation functions transform or shape your data in specific ways. Flux transformation functions transform or shape your data in specific ways.
There are different types of transformations categorized below: There are different types of transformations categorized below:
## [Aggregates](/v2.0/reference/flux/functions/transformations/aggregates) {{< children show="sections" >}}
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.
## Generic transformations ## Generic transformations
{{< function-list category="Transformations" menu="v2_0_ref" >}} {{< children type="functions" show="pages" >}}

View File

@ -32,7 +32,7 @@ It windows and aggregates the data, then combines windowed tables into a single
### Aggregate functions ### Aggregate functions
The following aggregate functions are available: The following aggregate functions are available:
{{< function-list category="Aggregates" menu="v2_0_ref" >}} {{< children type="functions" >}}
### Aggregate selectors ### Aggregate selectors
The following functions are both aggregates and selectors. The following functions are both aggregates and selectors.

View File

@ -13,7 +13,7 @@ The output table is different than the input table, but individual row values ar
The following selector functions are available: The following selector functions are available:
{{< function-list category="Selectors" menu="v2_0_ref" >}} {{< children type="functions" >}}
### Selectors and aggregates ### Selectors and aggregates

View File

@ -11,4 +11,4 @@ menu:
Flux type conversion functions convert columns of the input table into a specific data type. Flux type conversion functions convert columns of the input table into a specific data type.
The following type conversion functions are available: The following type conversion functions are available:
{{< function-list category="Type conversions" menu="v2_0_ref" >}} {{< children type="functions" >}}

View File

@ -13,8 +13,4 @@ menu:
Flux contains many preassigned values. Flux contains many preassigned values.
These preassigned values are defined in the source files for the various built-in packages. 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) {{< children >}}
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.

View File

@ -1,5 +1,15 @@
{{ $pages := union .Page.Pages .Page.Sections }}
{{ $type := .Get "type" | default "articles" }} {{ $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"> <div class="children-links">
{{ if eq $type "articles" }} {{ if eq $type "articles" }}