* 'master' of github.com:influxdata/docs-v2: (63 commits) CLI fixes (#2844) Fix links (#2828) Fix/2759 1.x query api (#2841) fix: updating windows start instructions (#2842) Add static legend to visualization examples (#2837) Fix Windows CLI download link (#2840) Fix incorrect Telegraf output settings info (#2754) Move static legend to cloud-only (#2798) ThingWorx integration (#2558) edits Update content/influxdb/v2.0/process-data/task-options.md Update content/influxdb/v2.0/process-data/task-options.md Update task-options.md hr eg covers itt 1.19.1 release notes (#2819) edit fixes issue #2672 https://github.com/influxdata/docs-v2/issues/2672 Update content/kapacitor/v1.6/guides/anomaly_detection.md Update content/kapacitor/v1.5/guides/anomaly_detection.md Update content/kapacitor/v1.4/guides/anomaly_detection.md ... |
||
---|---|---|
.. | ||
cloud | ||
v2.0 | ||
README.md | ||
generate-api-docs.sh | ||
getswagger.sh | ||
package.json | ||
template.hbs | ||
yarn.lock |
README.md
Generate InfluxDB API docs
InfluxDB uses Redoc and
redoc-cli to generate
API documentation from the InfluxDB swagger.yml
.
To minimize repo size, the generated API documentation HTML is gitignored, therefore
not committed directly to the docs repo.
The InfluxDB docs deployment process uses swagger files in the api-docs
directory
to generate version-specific API documentation.
Versioned swagger files
The structure versions swagger files using the following pattern:
api-docs/
├── v2.0/
│ └── swagger.yml
├── v2.1/
│ └── swagger.yml
├── v2.2/
│ └── swagger.yml
└── etc...
Generate API docs locally
Because the API documentation HTML is gitignored, you must manually generate it to view the API docs locally.
In your terminal, from the root of the docs repo, run:
cd api-docs
# Install dependencies
yarn install
# Generate the API docs
generate-api-docs.sh