Skip to content

Replace docs-v2 influxdb/latest URL paths with influxdb/v2 in generated contracts #657

Description

@jstirnaman

influxdata/openapi contracts still contain links to InfluxDB v2 as influxdb/latest instead of influxdb/v2. Generated contracts/ref/oss.yml affect anyone consuming that contract directly — SDK generators, other docs consumers, anyone reading the file.
However, docs-v2 is no longer a motivating case for the fix, so it's a hygiene issue in this repo.

influxdata/docs-v2 half of this is fixed by #7697** (7bd1659, "move OSS v2 and Cloud v2 spec decorators to build time").
That change adds applyMirrorTransforms in post-process-specs.ts, which rewrites https://docs.influxdata.com/influxdb/latest/ and bare /influxdb/latest/ to the product root at build time.

Originally posted by @jstirnaman in #7666

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions