added tag layouts and functionality

pull/67/head
Scott Anderson 2019-02-05 11:39:00 -07:00
parent 9b4b49de6b
commit e6844bb0e4
19 changed files with 105 additions and 4 deletions

View File

@ -15,7 +15,8 @@ var elementWhiteList = [
".tabs p a", ".tabs p a",
".code-tabs p a", ".code-tabs p a",
".truncate-toggle", ".truncate-toggle",
".children-links a" ".children-links a",
".list-links a"
] ]
$('.article a[href^="#"]:not(' + elementWhiteList + ')').click(function (e) { $('.article a[href^="#"]:not(' + elementWhiteList + ')').click(function (e) {

View File

@ -243,7 +243,7 @@
///////////////////////// Landing Page Article Links ///////////////////////// ///////////////////////// Landing Page Article Links /////////////////////////
.children-links { .children-links, .list-links {
h2,h3,h4 { h2,h3,h4 {
margin-top: -.5rem; margin-top: -.5rem;
@ -642,6 +642,24 @@
} }
} }
} }
//////////////////////////////////// Tags ////////////////////////////////////
.tags {
border-top: 1px solid $article-hr;
padding-top: 1.5rem;
margin-top: 2rem;
.tag {
background: $body-bg;
margin: .12rem 0;
padding: .35rem .6rem;
font-style: italic;
font-weight: bold;
color: rgba($article-text, .65);
font-size: .8rem;
}
}
} }

View File

@ -9,6 +9,9 @@ enableGitInfo = true
pygmentsCodefences = true pygmentsCodefences = true
pygmentsUseClasses = true pygmentsUseClasses = true
# Preserve case in article tags
preserveTaxonomyNames = true
# Markdown rendering options # Markdown rendering options
[blackfriday] [blackfriday]
hrefTargetBlank = true hrefTargetBlank = true
@ -18,3 +21,6 @@ hrefTargetBlank = true
[[menu.versions]] [[menu.versions]]
name = "v1.x" name = "v1.x"
url = "https://docs.influxdata.com" url = "https://docs.influxdata.com"
[taxonomies]
"v2.0/tag" = "v2.0/tags"

View File

@ -8,6 +8,7 @@ menu:
#enterprise_all: true #enterprise_all: true
enterprise_some: true enterprise_some: true
draft: true draft: true
"v2.0/tags": [influxdb]
--- ---
This is a paragraph. Lorem ipsum dolor 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 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

@ -8,6 +8,7 @@ menu:
v2_0: v2_0:
name: Process data name: Process data
weight: 5 weight: 5
v2.0/tags: [tasks]
--- ---
InfluxDB's _**task engine**_ is designed for processing and analyzing data. InfluxDB's _**task engine**_ is designed for processing and analyzing data.

View File

@ -4,6 +4,7 @@ seotitle: Common data processing tasks performed with with InfluxDB
description: > description: >
InfluxDB Tasks process data on specified schedules. InfluxDB Tasks process data on specified schedules.
This collection of articles walks through common use cases for InfluxDB tasks. This collection of articles walks through common use cases for InfluxDB tasks.
v2.0/tags: [tasks]
menu: menu:
v2_0: v2_0:
name: Common tasks name: Common tasks

View File

@ -9,6 +9,7 @@ menu:
name: Downsample data name: Downsample data
parent: Common tasks parent: Common tasks
weight: 4 weight: 4
v2.0/tags: [tasks]
--- ---
One of the most common use cases for InfluxDB tasks is downsampling data to reduce One of the most common use cases for InfluxDB tasks is downsampling data to reduce

View File

@ -4,6 +4,7 @@ seotitle: Manage data processing tasks in InfluxDB
description: > description: >
InfluxDB provides options for managing the creation, reading, updating, and deletion InfluxDB provides options for managing the creation, reading, updating, and deletion
of tasks using both the 'influx' CLI and the InfluxDB UI. of tasks using both the 'influx' CLI and the InfluxDB UI.
v2.0/tags: [tasks]
menu: menu:
v2_0: v2_0:
name: Manage tasks name: Manage tasks

View File

@ -4,6 +4,7 @@ seotitle: Create a task for processing data in InfluxDB
description: > description: >
How to create a task that processes data in InfluxDB using the InfluxDB user How to create a task that processes data in InfluxDB using the InfluxDB user
interface or the 'influx' command line interface. interface or the 'influx' command line interface.
v2.0/tags: [tasks]
menu: menu:
v2_0: v2_0:
name: Create a task name: Create a task

View File

@ -4,6 +4,7 @@ seotitle: Delete a task for processing data in InfluxDB
description: > description: >
How to delete a task in InfluxDB using the InfluxDB user interface or using How to delete a task in InfluxDB using the InfluxDB user interface or using
the 'influx' command line interface. the 'influx' command line interface.
v2.0/tags: [tasks]
menu: menu:
v2_0: v2_0:
name: Delete a task name: Delete a task

View File

@ -4,6 +4,7 @@ seotitle: Update a task for processing data in InfluxDB
description: > description: >
How to update a task that processes data in InfluxDB using the InfluxDB user How to update a task that processes data in InfluxDB using the InfluxDB user
interface or the 'influx' command line interface. interface or the 'influx' command line interface.
v2.0/tags: [tasks]
menu: menu:
v2_0: v2_0:
name: Update a task name: Update a task

View File

@ -4,6 +4,7 @@ seotitle: View created tasks that process data in InfluxDB
description: > description: >
How to view all created data processing tasks using the InfluxDB user interface How to view all created data processing tasks using the InfluxDB user interface
or the 'influx' command line interface. or the 'influx' command line interface.
v2.0/tags: [tasks]
menu: menu:
v2_0: v2_0:
name: View tasks name: View tasks

View File

@ -9,6 +9,7 @@ menu:
name: Task options name: Task options
parent: Process data parent: Process data
weight: 5 weight: 5
v2.0/tags: [tasks, flux]
--- ---
Task options define specific information about the task and are specified in your Task options define specific information about the task and are specified in your

View File

@ -4,6 +4,7 @@ seotitle: Write an InfluxDB task that processes data
description: > description: >
How to write an InfluxDB task that processes data in some way, then performs an action How to write an InfluxDB task that processes data in some way, then performs an action
such as storing the modified data in a new bucket or sending an alert. such as storing the modified data in a new bucket or sending an alert.
v2.0/tags: [tasks]
menu: menu:
v2_0: v2_0:
name: Write a task name: Write a task

View File

@ -0,0 +1,4 @@
---
title: Tags and related content
layout: tags-landing
---

View File

@ -1,7 +1,28 @@
{{ partial "header.html" . }} {{ partial "header.html" . }}
<h1>{{ .Title }}</h1> <div class="page-wrapper">
{{ partial "sidebar.html" . }}
<div class="content-wrapper">
<div class="sidebar-toggle" onclick="toggle_sidebar('sidebar-open');return false;"><a href="#">&#59675;</a></div>
{{ .Content }} <div class="article">
<article class="article--content">
<h1>Related to "{{ .Title }}"</h1>
<div class="list-links">
{{ range .Pages }}
<h3><a href="{{.RelPermalink}}">{{ .Title }}</a></h3>
{{ if .Description }}
<p>{{ .Description }}</p>
{{ end }}
{{ end }}
</div>
</article>
</div>
<div class="copyright">© {{ now.Year }} InfluxData, Inc.</div>
</div>
</div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

View File

@ -0,0 +1,27 @@
{{ partial "header.html" . }}
<div class="page-wrapper">
{{ partial "sidebar.html" . }}
<div class="content-wrapper">
<div class="sidebar-toggle" onclick="toggle_sidebar('sidebar-open');return false;"><a href="#">&#59675;</a></div>
<div class="article">
<article class="article--content">
<h1>{{ .Title }}</h1>
<ul class="list-links">
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) .RelPermalink }}
{{ $tagSet := print $currentVersion "/tags" }}
{{ range $key, $value := index .Site.Taxonomies $tagSet }}
<li><a href="{{ $key | urlize }}">{{ $key }}</a> ({{ len $value }})</li>
{{ end }}
</ul>
</article>
</div>
<div class="copyright">© {{ now.Year }} InfluxData, Inc.</div>
</div>
</div>
{{ partial "footer.html" . }}

View File

@ -4,6 +4,7 @@
{{ partial "article/latest-version.html" . }} {{ partial "article/latest-version.html" . }}
{{ partial "article/enterprise.html" . }} {{ partial "article/enterprise.html" . }}
{{ .Content }} {{ .Content }}
{{ partial "article/tags.html" . }}
{{ partial "article/_alpha-feedback.html"}} {{ partial "article/_alpha-feedback.html"}}
</article> </article>
</div> </div>

View File

@ -0,0 +1,12 @@
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) .RelPermalink }}
{{ $tagSet := print $currentVersion "/tags" }}
{{ if isset .Params $tagSet }}
<div class="tags">
{{ range .Param $tagSet }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $tagSet ($name | urlize)) }}
<a class="tag btn" href="{{ .RelPermalink }}">{{ $name }}</a>
{{ end }}
{{ end }}
</div>
{{ end }}