resolved merged conflicts for alpha-10

pull/250/head
Scott Anderson 2019-05-30 13:19:35 -06:00
commit c78f5648f6
19 changed files with 102 additions and 4 deletions

View File

@ -59,13 +59,16 @@ menu:
v2_0: v2_0:
name: # Article name that only appears in the left nav name: # Article name that only appears in the left nav
parent: # Specifies a parent group and nests navigation items parent: # Specifies a parent group and nests navigation items
weight: # Determines sort order in both the nav tree and in article lists. weight: # Determines sort order in both the nav tree and in article lists
draft: # If true, will not render page on build draft: # If true, will not render page on build
enterprise_all: # If true, specifies the doc as a whole is specific to InfluxDB Enterprise enterprise_all: # If true, specifies the doc as a whole is specific to InfluxDB Enterprise
enterprise_some: # If true, specifies the doc includes some content specific to InfluxDB Enterprise enterprise_some: # If true, specifies the doc includes some content specific to InfluxDB Enterprise
cloud_all: # If true, specifies the doc as a whole is specific to InfluxDB Cloud cloud_all: # If true, specifies the doc as a whole is specific to InfluxDB Cloud
cloud_some: # If true, specifies the doc includes some content specific to InfluxDB Cloud cloud_some: # If true, specifies the doc includes some content specific to InfluxDB Cloud
v2.x/tags: # Tags specific to each version (replace .x" with the appropriate minor version ) v2.x/tags: # Tags specific to each version (replace .x" with the appropriate minor version )
related: # Creates links to specific internal and external content at the bottom of the page
- /path/to/related/article
- https://external-link.com, This is an external link
``` ```
#### Title usage #### Title usage
@ -310,6 +313,20 @@ WHERE time > now() - 15m
{{< /code-tabs-wrapper >}} {{< /code-tabs-wrapper >}}
~~~ ~~~
### Related content
Use the `related` frontmatter to include links to specific articles at the bottom of an article.
- If the page exists inside of this documentation, just include the path to the page.
It will automatically detect the title of the page.
- If the page exists outside of this documentation, include the full URL and a title for the link.
The link and title must be in that order and must be separated by a comma and a space.
```yaml
related:
- /v2.0/write-data/quick-start
- https://influxdata.com, This is an external link
```
### High-resolution images ### High-resolution images
In many cases, screenshots included in the docs are taken from high-resolution (retina) screens. In many cases, screenshots included in the docs are taken from high-resolution (retina) screens.
Because of this, the actual pixel dimension is 2x larger than it needs to be and is rendered 2x bigger than it should be. Because of this, the actual pixel dimension is 2x larger than it needs to be and is rendered 2x bigger than it should be.

View File

@ -106,6 +106,7 @@
"article/lists", "article/lists",
"article/note", "article/note",
"article/pagination-btns", "article/pagination-btns",
"article/related",
"article/scrollbars", "article/scrollbars",
"article/tabbed-content", "article/tabbed-content",
"article/tables", "article/tables",

View File

@ -0,0 +1,15 @@
.related {
border-top: 1px solid $article-hr;
padding-top: 1.5rem;
h4 { font-size: 1.15rem; }
ul {
list-style: none;
padding: 0;
margin-top: 0;
}
li {
margin: .5rem 0;
line-height: 1.25rem;
}
}

View File

@ -2,8 +2,8 @@
.tags { .tags {
border-top: 1px solid $article-hr; border-top: 1px solid $article-hr;
padding-top: 1.5rem; padding-top: 1.75rem;
margin-top: 2rem; margin: 2rem 0 1rem;
.tag { .tag {
background: $body-bg; background: $body-bg;
@ -15,3 +15,9 @@
font-size: .8rem; font-size: .8rem;
} }
} }
.related + .tags {
border: none;
padding-top: 0;
margin: 1.5rem 0 1rem;
}

View File

@ -7,6 +7,7 @@ menu:
v2_0_cloud: v2_0_cloud:
name: Get started with InfluxDB Cloud name: Get started with InfluxDB Cloud
--- ---
{{< cloud-name >}} is a fully managed and hosted version of the InfluxDB 2.0. {{< cloud-name >}} is a fully managed and hosted version of the InfluxDB 2.0.
To get started, complete the tasks below. To get started, complete the tasks below.

View File

@ -10,7 +10,11 @@ enterprise_all: true
#cloud_all: true #cloud_all: true
cloud_some: true cloud_some: true
draft: true draft: true
"v2.0/tags": [influxdb] "v2.0/tags": [influxdb, functions]
related:
- /v2.0/write-data/
- /v2.0/write-data/quick-start
- https://influxdata.com, This is an external link
--- ---
This is a paragraph. Lorem ipsum dolor ({{< icon "trash" >}}) sit amet, consectetur adipiscing elit. Nunc rutrum, metus id scelerisque euismod, erat ante suscipit nibh, ac congue enim risus id est. Etiam tristique nisi et tristique auctor. Morbi eu bibendum erat. Sed ullamcorper, dui id lobortis efficitur, mauris odio pharetra neque, vel tempor odio dolor blandit justo. This is a paragraph. Lorem ipsum dolor ({{< icon "trash" >}}) sit amet, consectetur adipiscing elit. Nunc rutrum, metus id scelerisque euismod, erat ante suscipit nibh, ac congue enim risus id est. Etiam tristique nisi et tristique auctor. Morbi eu bibendum erat. Sed ullamcorper, dui id lobortis efficitur, mauris odio pharetra neque, vel tempor odio dolor blandit justo.

View File

@ -36,7 +36,11 @@ _**Note:** The following commands are examples. Adjust the file paths to your ow
```sh ```sh
# Unpackage contents to the current working directory # Unpackage contents to the current working directory
<<<<<<< HEAD
gunzip -c ~/Downloads/influxdb_2.0.0-alpha.10_darwin_amd64.tar.gz | tar xopf - gunzip -c ~/Downloads/influxdb_2.0.0-alpha.10_darwin_amd64.tar.gz | tar xopf -
=======
gunzip -c ~/Downloads/influxdb_2.0.0-alpha.9_darwin_amd64.tar.gz | tar xopf -
>>>>>>> master
``` ```
If you choose, you can place `influx` and `influxd` in your `$PATH`. If you choose, you can place `influx` and `influxd` in your `$PATH`.
@ -44,7 +48,11 @@ You can also prefix the executables with `./` to run then in place.
```sh ```sh
# (Optional) Copy the influx and influxd binary to your $PATH # (Optional) Copy the influx and influxd binary to your $PATH
<<<<<<< HEAD
sudo cp influxdb_2.0.0-alpha.10_darwin_amd64/{influx,influxd} /usr/local/bin/ sudo cp influxdb_2.0.0-alpha.10_darwin_amd64/{influx,influxd} /usr/local/bin/
=======
sudo cp influxdb_2.0.0-alpha.9_darwin_amd64/{influx,influxd} /usr/local/bin/
>>>>>>> master
``` ```
{{% note %}} {{% note %}}

View File

@ -8,6 +8,8 @@ menu:
name: Create a task name: Create a task
parent: Manage tasks parent: Manage tasks
weight: 201 weight: 201
related:
- /v2.0/reference/cli/influx/task/create
--- ---
InfluxDB provides multiple ways to create tasks both in the InfluxDB user interface (UI) InfluxDB provides multiple ways to create tasks both in the InfluxDB user interface (UI)

View File

@ -8,6 +8,8 @@ menu:
name: Delete a task name: Delete a task
parent: Manage tasks parent: Manage tasks
weight: 206 weight: 206
related:
- /v2.0/reference/cli/influx/task/delete
--- ---
## Delete a task in the InfluxDB UI ## Delete a task in the InfluxDB UI

View File

@ -8,6 +8,9 @@ menu:
name: Run a task name: Run a task
parent: Manage tasks parent: Manage tasks
weight: 203 weight: 203
related:
- /v2.0/reference/cli/influx/task/run
- /v2.0/reference/cli/influx/task/retry
--- ---
InfluxDB data processing tasks generally run in defined intervals or at a specific time, InfluxDB data processing tasks generally run in defined intervals or at a specific time,

View File

@ -7,6 +7,8 @@ menu:
name: View run history name: View run history
parent: Manage tasks parent: Manage tasks
weight: 203 weight: 203
related:
- /v2.0/reference/cli/influx/task/run/find
--- ---
When an InfluxDB task runs, a "run" record is created in the task's history. When an InfluxDB task runs, a "run" record is created in the task's history.

View File

@ -8,6 +8,8 @@ menu:
name: Update a task name: Update a task
parent: Manage tasks parent: Manage tasks
weight: 204 weight: 204
related:
- /v2.0/reference/cli/influx/task/update
--- ---
## Update a task in the InfluxDB UI ## Update a task in the InfluxDB UI

View File

@ -8,6 +8,8 @@ menu:
name: View tasks name: View tasks
parent: Manage tasks parent: Manage tasks
weight: 202 weight: 202
related:
- /v2.0/reference/cli/influx/task/find
--- ---
## View tasks in the InfluxDB UI ## View tasks in the InfluxDB UI

View File

@ -9,6 +9,9 @@ menu:
v2_0: v2_0:
name: Get started with Flux name: Get started with Flux
parent: Query data parent: Query data
related:
- /v2.0/reference/flux/
- /v2.0/reference/flux/functions/
--- ---
Flux is InfluxData's functional data scripting language designed for querying, Flux is InfluxData's functional data scripting language designed for querying,

View File

@ -7,6 +7,11 @@ menu:
name: Query InfluxDB name: Query InfluxDB
parent: Get started with Flux parent: Get started with Flux
weight: 201 weight: 201
related:
- /v2.0/query-data/guides/
- /v2.0/reference/flux/functions/built-in/inputs/from
- /v2.0/reference/flux/functions/built-in/transformations/range
- /v2.0/reference/flux/functions/built-in/transformations/filter
--- ---
This guide walks through the basics of using Flux to query data from InfluxDB. This guide walks through the basics of using Flux to query data from InfluxDB.

View File

@ -7,6 +7,8 @@ menu:
name: Syntax basics name: Syntax basics
parent: Get started with Flux parent: Get started with Flux
weight: 203 weight: 203
related:
- /v2.0/reference/flux/language/types/
--- ---

View File

@ -7,6 +7,9 @@ menu:
name: Transform data name: Transform data
parent: Get started with Flux parent: Get started with Flux
weight: 202 weight: 202
related:
- /v2.0/reference/flux/functions/built-in/transformations/aggregates/aggregatewindow
- /v2.0/reference/flux/functions/built-in/transformations/window
--- ---
When [querying data from InfluxDB](/v2.0/query-data/get-started/query-influxdb), When [querying data from InfluxDB](/v2.0/query-data/get-started/query-influxdb),

View File

@ -5,6 +5,7 @@
{{ partial "article/enterprise.html" . }} {{ partial "article/enterprise.html" . }}
{{ partial "article/cloud.html" . }} {{ partial "article/cloud.html" . }}
{{ .Content }} {{ .Content }}
{{ partial "article/related.html" . }}
{{ partial "article/tags.html" . }} {{ partial "article/tags.html" . }}
{{ if in .RelPermalink "/cloud/"}} {{ if in .RelPermalink "/cloud/"}}

View File

@ -0,0 +1,19 @@
{{ if .Params.related }}
<div class="related">
<h4 id="related-articles">Related articles</h4>
<ul>
{{ range .Params.related }}
{{ if in . "http" }}
{{ $link := replaceRE `\,\s(...)*$` "" . }}
{{ $title := replaceRE `^(\S*\,\s)` "" . }}
<li><a href="{{ $link }}" target="_blank">{{ $title }}</a></li>
{{ else }}
{{ $sanitizedPath := replaceRE `\/$` "" (print .) }}
{{ with $.Page.GetPage $sanitizedPath }}
<li><a href="{{ .RelPermalink }}" >{{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}