2021-10-11 21:15:39 +00:00
|
|
|
#!/bin/bash
|
2019-09-30 16:00:22 +00:00
|
|
|
|
2021-10-07 19:21:05 +00:00
|
|
|
set -e
|
|
|
|
|
2022-07-08 21:30:02 +00:00
|
|
|
function showHelp {
|
|
|
|
echo "Usage: generate.sh <options>"
|
|
|
|
echo "Commands:"
|
|
|
|
echo "-c) Regenerate changed files. To save time in development, only regenerates files that differ from the master branch."
|
|
|
|
echo "-h) Show this help message."
|
|
|
|
}
|
|
|
|
|
|
|
|
# Get arguments
|
|
|
|
|
|
|
|
generate_changed=1
|
|
|
|
|
|
|
|
while getopts "hc" opt; do
|
|
|
|
case ${opt} in
|
|
|
|
h)
|
|
|
|
showHelp
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
c)
|
|
|
|
generate_changed=0
|
|
|
|
;;
|
|
|
|
\?)
|
|
|
|
echo "Invalid option: $OPTARG" 1>&2
|
|
|
|
showHelp
|
|
|
|
exit 22
|
|
|
|
;;
|
|
|
|
:)
|
|
|
|
echo "Invalid option: $OPTARG requires an argument" 1>&2
|
|
|
|
showHelp
|
|
|
|
exit 22
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2024-04-09 23:02:12 +00:00
|
|
|
function generateHtml {
|
|
|
|
specPath="$1"
|
|
|
|
product="$2"
|
|
|
|
productName="$3"
|
|
|
|
api="$4"
|
|
|
|
configPath="$5"
|
|
|
|
isDefault=$6
|
|
|
|
|
|
|
|
# Use the product name to define the menu for the Hugo template
|
|
|
|
menu="influxdb_$(echo $product | sed 's/\./_/g;s/-/_/g;')"
|
|
|
|
# Extract the API name--for example, "management" from "management@v2".
|
|
|
|
apiName=$(echo $api | sed 's/@.*//g;')
|
|
|
|
# Extract the API version--for example, "v0" from "management@v0".
|
|
|
|
version=$(echo $api | sed 's/.*@//g;')
|
|
|
|
# Use the title and summary defined in the product API's info.yml file.
|
|
|
|
title=$(yq '.title' $product/$apiName/content/info.yml)
|
2024-04-16 21:29:27 +00:00
|
|
|
menuTitle=$(yq '.x-influxdata-short-title' $product/$apiName/content/info.yml)
|
2024-04-09 23:02:12 +00:00
|
|
|
description=$(yq '.summary' $product/$apiName/content/info.yml)
|
|
|
|
# Define the file name for the Redoc HTML output.
|
|
|
|
specbundle=redoc-static_index.html
|
|
|
|
# Define the temporary file for the Hugo template and Redoc HTML.
|
|
|
|
tmpfile="${product}-${api}_index.tmp"
|
|
|
|
|
|
|
|
echo "Bundling $specPath"
|
2023-09-13 05:33:31 +00:00
|
|
|
|
2024-04-09 23:02:12 +00:00
|
|
|
# Use npx to install and run the specified version of redoc-cli.
|
|
|
|
# npm_config_yes=true npx overrides the prompt
|
|
|
|
# and (vs. npx --yes) is compatible with npm@6 and npm@7.
|
|
|
|
npx --version && \
|
|
|
|
npm_config_yes=true npx redoc-cli@0.12.3 bundle $specPath \
|
|
|
|
--config $configPath \
|
|
|
|
-t template.hbs \
|
|
|
|
--title=$title \
|
|
|
|
--options.sortPropsAlphabetically \
|
|
|
|
--options.menuToggle \
|
|
|
|
--options.hideDownloadButton \
|
|
|
|
--options.hideHostname \
|
|
|
|
--options.noAutoAuth \
|
|
|
|
--output=$specbundle \
|
|
|
|
--templateOptions.description=$description \
|
|
|
|
--templateOptions.product="$product" \
|
|
|
|
--templateOptions.productName="$productName"
|
|
|
|
|
2024-04-16 21:29:27 +00:00
|
|
|
if [[ $apiName == "v1-compatibility" ]]; then
|
2024-04-09 23:02:12 +00:00
|
|
|
frontmatter="---
|
|
|
|
title: $title
|
|
|
|
description: $description
|
2019-09-30 16:00:22 +00:00
|
|
|
layout: api
|
|
|
|
menu:
|
|
|
|
$menu:
|
2024-04-16 21:29:27 +00:00
|
|
|
parent: InfluxDB HTTP API
|
|
|
|
name: $menuTitle
|
|
|
|
identifier: api-reference-$apiName
|
2024-04-09 23:02:12 +00:00
|
|
|
weight: 304
|
2024-04-16 21:29:27 +00:00
|
|
|
aliases:
|
|
|
|
- /influxdb/$product/api/v1/
|
2024-04-09 23:02:12 +00:00
|
|
|
---
|
|
|
|
"
|
|
|
|
elif [[ $version == "0" ]]; then
|
|
|
|
echo $productName $apiName
|
|
|
|
frontmatter="---
|
|
|
|
title: $title
|
|
|
|
description: $description
|
|
|
|
layout: api
|
2019-09-30 16:00:22 +00:00
|
|
|
weight: 102
|
2024-04-09 23:02:12 +00:00
|
|
|
menu:
|
|
|
|
$menu:
|
|
|
|
parent: InfluxDB HTTP API
|
2024-04-16 21:29:27 +00:00
|
|
|
name: $menuTitle
|
|
|
|
identifier: api-reference-$apiName
|
2019-09-30 16:00:22 +00:00
|
|
|
---
|
2.0 GA and separate Cloud from OSS (#1805)
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* create separate pages for querying data
* update weight
* Update flux-repl.md
* Update influx-query.md
* edits f Scott
* move content from explore-metrics to data-explorer
* edits; delete explore-metrics
* edits
* delete file
* remove duplicate content
* add InfluxQLquery examples
* Remove references to "security script"
* draft updates for Band Plot vis
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* URL validation on custom URL (#1763)
* added url validation to custom url form, resolves #1739
* removed placeholder message from custom url form
* updated styles for url selector modal
* Move restore command to `influx` cli, update flags
* Update table for backup
* Remove RC information, update paths for restore, change `backup-path` flag to `input`
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* URL validation on custom URL (#1763)
* added url validation to custom url form, resolves #1739
* removed placeholder message from custom url form
* updated styles for url selector modal
* WIP updating InfluxDB OSS naming throughout
* updated canonical shortcode for oss vs cloud, updated 2.0 version numbers on homepage
* updated swagger file to rc4 for 2.0 and cloud
* fixed canonical partial
* Update multi-user Cloud docs
Also adds a heading the note on permissions.
Closes #1764
* Fix table for backup flags
* Update input flag, remove TSI references
* Address PR feedback
* Remove product tag
* Fix DBRP mapping examples (#1776)
* updated dbrp mapping examples in influxql query guide, closes #1774
* removed unnecessarily escaped newline from dbrp mapping example
* add draft rc4 and GA RNs
* cloud and oss name updates
* emphasis production ready
* update curl example
* duplicate oss pages in cloud
* Address PR feedback
* added new aws us east region, resolves #1777 (#1782)
* Add steps for script editor
* Add cloud version
* moved and updated upgrade guides (#1783)
* Fix typos
* update upgrade links
* edits
* Clarify 1m cardinality is initial limit only
* fix typo
* fix date
* Add note on `_internal` database to v1-to-v2 upgrade guide
Closes #1775.
* Update influxdb.md
* fixed broken links throughout cloud docs
* fixed broken links in 2.0 oss
* Address PR feedback
* remove window pushdowns
* updated oss pushdown list
* Add instructions for verifying InfluxDB 2.0 download
* updated latest versions in edge.js
* added flux-0.94.0 to flux release notes (#1790)
* update date and add Flux .94.0 link
* delete broken link to image
* remove auto refresh; not currently in UI
* add duplicate-oss tag to Cloud execute-queries
* highlight diff between Flux and InfluxQL example
* delete extra header
* Generate v1 compatibility API docs (#1789)
* updated swagger generation to generate v1 compat api docs
* restructured api docs
* updated restore flags table
* updated infludb binary urls in oss and cloud
* Address PR feedback
* Make contact support a mailto link
* Add --log-level flag to `influxd upgrade`
Closes #1795
* add release note about api/v2/delete
* update delete data note for 2.0
* edit
* Fix URLs and filenames in OSS 2.0 Get Started
* update version for GA
* Add color to Flux example for Flux documentation (addresses #1724 )
* Change versions to 2.0.1 in GS
* Replace 2.0.0 with 2.0.1
* Revert Docker updates to 2.0.0
* Add release notes for 2.0.0
* edits; add known issue
* clarify DB is 1.x
* updated influxdb versions in cloud and oss getting started
* updated influxdb oss urls doc
* remove rc and upd upgrade link in back up data
* Edit `influxd upgrade` docs (#1798)
* Edit `influxd upgrade` guide
Major revision of existing docs.
Add "Before you begin: important considerations" section.
* Address PR feedback
* Edit backup instructions
* More work on kap
* Rm comment
* Rm sentence
* Add note on Docker
* Edit intro
* Edit link
* Work on PR feedback
* Continue PR feedback
* More PR feedback
* More edits
* more edits
* Edits
* more edits
* rm word
* updates to address PR feedback for the upgrade guide
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: Scott Anderson <scott@influxdata.com>
Co-authored-by: Kelly <kelly@influxdata.com>
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com>
2020-11-11 16:52:14 +00:00
|
|
|
"
|
2024-04-09 23:02:12 +00:00
|
|
|
elif [[ $isDefault == true ]]; then
|
|
|
|
frontmatter="---
|
|
|
|
title: $title
|
|
|
|
description: $description
|
2.0 GA and separate Cloud from OSS (#1805)
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* create separate pages for querying data
* update weight
* Update flux-repl.md
* Update influx-query.md
* edits f Scott
* move content from explore-metrics to data-explorer
* edits; delete explore-metrics
* edits
* delete file
* remove duplicate content
* add InfluxQLquery examples
* Remove references to "security script"
* draft updates for Band Plot vis
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* URL validation on custom URL (#1763)
* added url validation to custom url form, resolves #1739
* removed placeholder message from custom url form
* updated styles for url selector modal
* Move restore command to `influx` cli, update flags
* Update table for backup
* Remove RC information, update paths for restore, change `backup-path` flag to `input`
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* URL validation on custom URL (#1763)
* added url validation to custom url form, resolves #1739
* removed placeholder message from custom url form
* updated styles for url selector modal
* WIP updating InfluxDB OSS naming throughout
* updated canonical shortcode for oss vs cloud, updated 2.0 version numbers on homepage
* updated swagger file to rc4 for 2.0 and cloud
* fixed canonical partial
* Update multi-user Cloud docs
Also adds a heading the note on permissions.
Closes #1764
* Fix table for backup flags
* Update input flag, remove TSI references
* Address PR feedback
* Remove product tag
* Fix DBRP mapping examples (#1776)
* updated dbrp mapping examples in influxql query guide, closes #1774
* removed unnecessarily escaped newline from dbrp mapping example
* add draft rc4 and GA RNs
* cloud and oss name updates
* emphasis production ready
* update curl example
* duplicate oss pages in cloud
* Address PR feedback
* added new aws us east region, resolves #1777 (#1782)
* Add steps for script editor
* Add cloud version
* moved and updated upgrade guides (#1783)
* Fix typos
* update upgrade links
* edits
* Clarify 1m cardinality is initial limit only
* fix typo
* fix date
* Add note on `_internal` database to v1-to-v2 upgrade guide
Closes #1775.
* Update influxdb.md
* fixed broken links throughout cloud docs
* fixed broken links in 2.0 oss
* Address PR feedback
* remove window pushdowns
* updated oss pushdown list
* Add instructions for verifying InfluxDB 2.0 download
* updated latest versions in edge.js
* added flux-0.94.0 to flux release notes (#1790)
* update date and add Flux .94.0 link
* delete broken link to image
* remove auto refresh; not currently in UI
* add duplicate-oss tag to Cloud execute-queries
* highlight diff between Flux and InfluxQL example
* delete extra header
* Generate v1 compatibility API docs (#1789)
* updated swagger generation to generate v1 compat api docs
* restructured api docs
* updated restore flags table
* updated infludb binary urls in oss and cloud
* Address PR feedback
* Make contact support a mailto link
* Add --log-level flag to `influxd upgrade`
Closes #1795
* add release note about api/v2/delete
* update delete data note for 2.0
* edit
* Fix URLs and filenames in OSS 2.0 Get Started
* update version for GA
* Add color to Flux example for Flux documentation (addresses #1724 )
* Change versions to 2.0.1 in GS
* Replace 2.0.0 with 2.0.1
* Revert Docker updates to 2.0.0
* Add release notes for 2.0.0
* edits; add known issue
* clarify DB is 1.x
* updated influxdb versions in cloud and oss getting started
* updated influxdb oss urls doc
* remove rc and upd upgrade link in back up data
* Edit `influxd upgrade` docs (#1798)
* Edit `influxd upgrade` guide
Major revision of existing docs.
Add "Before you begin: important considerations" section.
* Address PR feedback
* Edit backup instructions
* More work on kap
* Rm comment
* Rm sentence
* Add note on Docker
* Edit intro
* Edit link
* Work on PR feedback
* Continue PR feedback
* More PR feedback
* More edits
* more edits
* Edits
* more edits
* rm word
* updates to address PR feedback for the upgrade guide
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: Scott Anderson <scott@influxdata.com>
Co-authored-by: Kelly <kelly@influxdata.com>
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com>
2020-11-11 16:52:14 +00:00
|
|
|
layout: api
|
|
|
|
menu:
|
|
|
|
$menu:
|
2024-04-09 23:02:12 +00:00
|
|
|
parent: InfluxDB HTTP API
|
2024-04-16 21:29:27 +00:00
|
|
|
name: $menuTitle
|
|
|
|
identifier: api-reference-$apiName
|
2024-04-09 23:02:12 +00:00
|
|
|
weight: 102
|
|
|
|
aliases:
|
|
|
|
- /influxdb/$product/api/
|
2.0 GA and separate Cloud from OSS (#1805)
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* create separate pages for querying data
* update weight
* Update flux-repl.md
* Update influx-query.md
* edits f Scott
* move content from explore-metrics to data-explorer
* edits; delete explore-metrics
* edits
* delete file
* remove duplicate content
* add InfluxQLquery examples
* Remove references to "security script"
* draft updates for Band Plot vis
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* URL validation on custom URL (#1763)
* added url validation to custom url form, resolves #1739
* removed placeholder message from custom url form
* updated styles for url selector modal
* Move restore command to `influx` cli, update flags
* Update table for backup
* Remove RC information, update paths for restore, change `backup-path` flag to `input`
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Security & auth
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* split content for notification endpoints
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* removed product tags from nav and articles
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* New URL switcher (#1720)
* restructured url modal
* rearchitected the url switcher functionality
* add influxdb preference management to url switcher
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* WIP separate cloud docs, duplicate content shortcode
* WIP cloud-separation
* WIP separate cloud
* duplicated oss into cloud and am making updates
* moved cloud updates to cloud
* reimplemented duplicate-oss shortcode
* separate Cloud and OSS content in Tools & integ...
* Split OSS and Cloud content for Manage org
* Split OSS and Cloud - Manage Orgs add'l updates
* various updates, primarily in oss and cloud reference
* Move InfluxQL doc to Cloud
- Remove the "Query with InfluxQL" page from OSS docs
- Re-incorporate changes made in https://github.com/influxdata/docs-v2/pull/1506
* URL validation on custom URL (#1763)
* added url validation to custom url form, resolves #1739
* removed placeholder message from custom url form
* updated styles for url selector modal
* WIP updating InfluxDB OSS naming throughout
* updated canonical shortcode for oss vs cloud, updated 2.0 version numbers on homepage
* updated swagger file to rc4 for 2.0 and cloud
* fixed canonical partial
* Update multi-user Cloud docs
Also adds a heading the note on permissions.
Closes #1764
* Fix table for backup flags
* Update input flag, remove TSI references
* Address PR feedback
* Remove product tag
* Fix DBRP mapping examples (#1776)
* updated dbrp mapping examples in influxql query guide, closes #1774
* removed unnecessarily escaped newline from dbrp mapping example
* add draft rc4 and GA RNs
* cloud and oss name updates
* emphasis production ready
* update curl example
* duplicate oss pages in cloud
* Address PR feedback
* added new aws us east region, resolves #1777 (#1782)
* Add steps for script editor
* Add cloud version
* moved and updated upgrade guides (#1783)
* Fix typos
* update upgrade links
* edits
* Clarify 1m cardinality is initial limit only
* fix typo
* fix date
* Add note on `_internal` database to v1-to-v2 upgrade guide
Closes #1775.
* Update influxdb.md
* fixed broken links throughout cloud docs
* fixed broken links in 2.0 oss
* Address PR feedback
* remove window pushdowns
* updated oss pushdown list
* Add instructions for verifying InfluxDB 2.0 download
* updated latest versions in edge.js
* added flux-0.94.0 to flux release notes (#1790)
* update date and add Flux .94.0 link
* delete broken link to image
* remove auto refresh; not currently in UI
* add duplicate-oss tag to Cloud execute-queries
* highlight diff between Flux and InfluxQL example
* delete extra header
* Generate v1 compatibility API docs (#1789)
* updated swagger generation to generate v1 compat api docs
* restructured api docs
* updated restore flags table
* updated infludb binary urls in oss and cloud
* Address PR feedback
* Make contact support a mailto link
* Add --log-level flag to `influxd upgrade`
Closes #1795
* add release note about api/v2/delete
* update delete data note for 2.0
* edit
* Fix URLs and filenames in OSS 2.0 Get Started
* update version for GA
* Add color to Flux example for Flux documentation (addresses #1724 )
* Change versions to 2.0.1 in GS
* Replace 2.0.0 with 2.0.1
* Revert Docker updates to 2.0.0
* Add release notes for 2.0.0
* edits; add known issue
* clarify DB is 1.x
* updated influxdb versions in cloud and oss getting started
* updated influxdb oss urls doc
* remove rc and upd upgrade link in back up data
* Edit `influxd upgrade` docs (#1798)
* Edit `influxd upgrade` guide
Major revision of existing docs.
Add "Before you begin: important considerations" section.
* Address PR feedback
* Edit backup instructions
* More work on kap
* Rm comment
* Rm sentence
* Add note on Docker
* Edit intro
* Edit link
* Work on PR feedback
* Continue PR feedback
* More PR feedback
* More edits
* more edits
* Edits
* more edits
* rm word
* updates to address PR feedback for the upgrade guide
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: Scott Anderson <scott@influxdata.com>
Co-authored-by: Kelly <kelly@influxdata.com>
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com>
2020-11-11 16:52:14 +00:00
|
|
|
---
|
2023-09-13 05:33:31 +00:00
|
|
|
"
|
2024-04-09 23:02:12 +00:00
|
|
|
else
|
|
|
|
frontmatter="---
|
|
|
|
title: $title
|
|
|
|
description: $description
|
2023-09-13 05:33:31 +00:00
|
|
|
layout: api
|
2024-04-09 23:02:12 +00:00
|
|
|
menu:
|
|
|
|
$menu:
|
|
|
|
parent: InfluxDB HTTP API
|
2024-04-16 21:29:27 +00:00
|
|
|
name: $menuTitle
|
|
|
|
identifier: api-reference-$apiName
|
2023-09-13 05:33:31 +00:00
|
|
|
weight: 102
|
|
|
|
---
|
2019-09-30 16:00:22 +00:00
|
|
|
"
|
2022-07-08 21:30:02 +00:00
|
|
|
fi
|
2022-07-08 15:48:41 +00:00
|
|
|
|
2024-04-09 23:02:12 +00:00
|
|
|
# Create the Hugo template file with the frontmatter and Redoc HTML
|
|
|
|
echo "$frontmatter" >> $tmpfile
|
|
|
|
V_LEN_INIT=$(wc -c $tmpfile | awk '{print $1}')
|
|
|
|
cat $specbundle >> $tmpfile
|
|
|
|
V_LEN=$(wc -c $tmpfile | awk '{print $1}')
|
2022-07-08 15:48:41 +00:00
|
|
|
|
2024-04-09 23:02:12 +00:00
|
|
|
if ! [[ $V_LEN -gt $V_LEN_INIT ]]
|
|
|
|
then
|
|
|
|
echo "Error: bundle was not appended to $tmpfile"
|
|
|
|
exit $?
|
2021-05-25 15:28:36 +00:00
|
|
|
fi
|
|
|
|
|
2024-04-09 23:02:12 +00:00
|
|
|
rm -f $specbundle
|
|
|
|
# Create the directory and move the file.
|
|
|
|
if [ ! -z "$apiName" ]; then
|
|
|
|
mkdir -p ../content/influxdb/$product/api/$apiName
|
|
|
|
mv $tmpfile ../content/influxdb/$product/api/$apiName/_index.html
|
|
|
|
else
|
|
|
|
mkdir -p ../content/influxdb/$product/api
|
|
|
|
mv $tmpfile ../content/influxdb/$product/api/_index.html
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2024-04-16 21:29:27 +00:00
|
|
|
# Use a combination of directory names and configuration files to build the API documentation.
|
|
|
|
# Each directory represents a product, and each product directory contains a configuration file that defines APIs and their spec file locations.
|
2024-04-09 23:02:12 +00:00
|
|
|
function build {
|
|
|
|
# Get the list of products from directory names
|
|
|
|
products="$(ls -d -- */ | grep -v 'node_modules' | grep -v 'openapi')"
|
|
|
|
|
|
|
|
for product in $products; do
|
|
|
|
#Trim the trailing slash off the directory name
|
|
|
|
product="${product%/}"
|
|
|
|
# Get the product API configuration file.
|
|
|
|
configPath="$product/.config.yml"
|
|
|
|
if [ ! -f $configPath ]; then
|
|
|
|
configPath=".config.yml"
|
|
|
|
fi
|
|
|
|
echo "Checking product config $configPath"
|
|
|
|
# Get the product name from the configuration.
|
|
|
|
productName=$(yq e '.x-influxdata-product-name' $configPath)
|
|
|
|
if [[ -z "$productName" ]]; then
|
|
|
|
productName=InfluxDB
|
|
|
|
fi
|
|
|
|
# Get an array of product API names (keys) from the configuration file
|
|
|
|
apis=$(yq e '.apis | keys | .[]' $configPath)
|
|
|
|
# Read each element of the apis array
|
|
|
|
while IFS= read -r api; do
|
|
|
|
# Get the spec file path from the configuration.
|
|
|
|
specRootPath=$(yq e ".apis | .$api | .root" $configPath)
|
|
|
|
# Check that the YAML spec file exists.
|
|
|
|
specPath="$product/$specRootPath"
|
|
|
|
echo "Checking for spec $specPath"
|
|
|
|
if [ -d "$specPath" ] || [ ! -f "$specPath" ]; then
|
|
|
|
echo "OpenAPI spec $specPath doesn't exist."
|
|
|
|
fi
|
|
|
|
# Get default status from the configuration.
|
|
|
|
isDefault=false
|
|
|
|
defaultStatus=$(yq e ".apis | .$api | .x-influxdata-default" $configPath)
|
|
|
|
if [[ $defaultStatus == "true" ]]; then
|
|
|
|
isDefault=true
|
|
|
|
fi
|
2023-05-23 18:52:45 +00:00
|
|
|
|
2024-04-09 23:02:12 +00:00
|
|
|
# If the spec file differs from master, regenerate the HTML.
|
|
|
|
update=0
|
2023-05-23 18:52:45 +00:00
|
|
|
if [[ $generate_changed == 0 ]]; then
|
2024-04-09 23:02:12 +00:00
|
|
|
diff=$(git diff --name-status master -- ${specPath})
|
|
|
|
if [[ -z "$diff" ]]; then
|
|
|
|
update=1
|
2023-05-23 18:52:45 +00:00
|
|
|
fi
|
2022-07-08 21:30:02 +00:00
|
|
|
fi
|
2022-07-08 15:48:41 +00:00
|
|
|
|
2023-05-23 18:52:45 +00:00
|
|
|
if [[ $update -eq 0 ]]; then
|
2024-04-09 23:02:12 +00:00
|
|
|
echo "Regenerating $product $api"
|
|
|
|
generateHtml "$specPath" "$product" "$productName" "$api" "$configPath" $isDefault
|
2023-05-23 18:52:45 +00:00
|
|
|
fi
|
2024-04-09 23:02:12 +00:00
|
|
|
done <<< "$apis"
|
2019-09-30 16:00:22 +00:00
|
|
|
done
|
2024-04-09 23:02:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build
|