Skip to content

Improve documentation versioning #966

@imiric

Description

@imiric

The current way of documenting specific k6 versions (introduced in #283) has some drawbacks and limitations:

  • The process involves duplicating the entire javascript api tree, which is inefficient and bloats the repository, but more importantly carries layout and content changes that need to be repeated on all versions to be consistent.
    If you take a look at the landing page for the latest v0.42.0 version, you'll see that the "Init context" explanation is different from v0.40.0 and earlier. If we need to make layout or style changes, it needs to be done on all versioned copies.

  • It only versions JS API docs. Sometimes we make changes to k6 options, but there's no way for the user to see which version is documented. So we resort to phrases like "New since v...", which often goes stale, and is not relevant after those versions are widely deployed. See the discussion in Add documentation for new wildcard Hosts feature #965 (comment).

  • It doesn't version any of the extension docs. xk6-browser and xk6-disruptor are stuck with "latest". This documentation shouldn't be only under the "JavaScript API" section, since it has an introduction, installation, "Getting started" guides, etc., but maybe that's a separate issue.

I don't have a specific proposal for fixing this, but I'm happy to brainstorm some solutions with the PixelPoint team.

Related issues: #675, #955

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Tooling/GatsbyFixes that require working with the CI, styles, or site generator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions