upgraded hugo to 0.81.0, fixed isset build error, fixed formatting in grafana doc (#2218)

pull/2222/head
Scott Anderson 2021-02-26 21:54:41 -07:00 committed by GitHub
parent 368dd4ebc4
commit 46d0f16dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 16 deletions

View File

@ -4,7 +4,7 @@ jobs:
docker: docker:
- image: circleci/node:erbium - image: circleci/node:erbium
environment: environment:
HUGO_VERSION: "0.59.1" HUGO_VERSION: "0.81.0"
S3DEPLOY_VERSION: "2.3.5" S3DEPLOY_VERSION: "2.3.5"
steps: steps:
- checkout - checkout

View File

@ -23,17 +23,23 @@ including our GPG key, can be found at https://www.influxdata.com/how-to-report-
2. **Install Hugo** 2. **Install Hugo**
The InfluxData documentation uses [Hugo](https://gohugo.io/), a static site generator built in Go. The InfluxData documentation uses [Hugo](https://gohugo.io/), a static site generator built in Go.
The InfluxData documentation utilizes Hugo's asset pipeline and requires the extended version of Hugo.
See the Hugo documentation for information about how to [download and install Hugo](https://gohugo.io/getting-started/installing/). See the Hugo documentation for information about how to [download and install Hugo](https://gohugo.io/getting-started/installing/).
3. **Install NodeJS & Asset Pipeline Tools** _**Note:** The most recent version of Hugo tested with this documentation is **0.81.0**._
3. **Install NodeJS, Yarn, & Asset Pipeline Tools**
This project uses tools written in NodeJS to build and process stylesheets and javascript. This project uses tools written in NodeJS to build and process stylesheets and javascript.
In order for assets to build correctly, [install NodeJS](https://nodejs.org/en/download/) To successfully build assets:
and run the following command to install the necessary tools:
``` 1. [Install NodeJS](https://nodejs.org/en/download/)
npm i -g postcss-cli autoprefixer 2. [Install Yarn](https://classic.yarnpkg.com/en/docs/install/)
``` 3. Run the following command to install the necessary tools:
```sh
sudo yarn global add postcss-cli@8.3.0 autoprefixer@9.8.6
```
4. **Start the Hugo server** 4. **Start the Hugo server**

View File

@ -182,15 +182,15 @@ With **InfluxQL** selected as the query language in your InfluxDB data source se
- ##### Token authentication - ##### Token authentication
Under **Custom HTTP Headers**, select **Add Header**. Provide your InfluxDB authentication token: Under **Custom HTTP Headers**, select **Add Header**. Provide your InfluxDB authentication token:
- **Header**: Enter `Authorization` - **Header**: Enter `Authorization`
- **Value**: Use the `Token` schema and provide your [InfluxDB authentication token](/influxdb/v2.0/security/tokens/). - **Value**: Use the `Token` schema and provide your [InfluxDB authentication token](/influxdb/v2.0/security/tokens/).
For example: For example:
``` ```
Token y0uR5uP3rSecr3tT0k3n Token y0uR5uP3rSecr3tT0k3n
``` ```
- ##### Authenticate with username and password - ##### Authenticate with username and password

View File

@ -12,7 +12,7 @@
<p class="selected">{{ index .Site.Data.products.influxdb_cloud.altname }}</p> <p class="selected">{{ index .Site.Data.products.influxdb_cloud.altname }}</p>
{{ else }} {{ else }}
{{ $productData := (index .Site.Data.products $product) }} {{ $productData := (index .Site.Data.products $product) }}
<p class="selected">{{ cond (isset $productData "altname") $productData.altname $productData.name }}</p> <p class="selected">{{ if $productData.altname }}{{ $productData.altname }}{{ else }}{{ $productData.name }}{{ end }}</p>
{{ end }} {{ end }}
<ul class="item-list"> <ul class="item-list">
{{ range sort .Site.Data.products "list_order" "desc" }} {{ range sort .Site.Data.products "list_order" "desc" }}
@ -30,7 +30,7 @@
{{ end }} {{ end }}
{{ $link := $scratch.Get "link" }} {{ $link := $scratch.Get "link" }}
<li> <li>
<a href='{{ $link }}' {{ if and (eq .namespace $product) (in .versions $currentVersion) }}class="active"{{ end }}>{{ cond (isset . "altname") .altname .name }}</a> <a href='{{ $link }}' {{ if and (eq .namespace $product) (in .versions $currentVersion) }}class="active"{{ end }}>{{ if .altname }}{{.altname}}{{ else }}{{ .name }}{{ end }}</a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>