Skip to content

[DOCS]: Version dropdown in older doc versions doesn't show newer releases #302

Description

@victoria-mckinney

ie. v0.6.0 dropdown sphinx docs doesnt show 0.2.0 release onwards

Activity

  1. victoria-mckinney commented on Aug 21, 2026

    @victoria-mckinney
    MemberAuthor

    Problem

    The version dropdown in /v0.1.6/ (and any future older versions) shows only
    the versions that existed at the time that version was built. So /v0.1.6/
    does not show v0.2.0 in its dropdown — a user landing there has no way to
    navigate to the latest docs without editing the URL.

    Root cause

    The dropdown is rendered into static HTML by Sphinx at build time, from
    docs/versions.json at whatever commit is being built. Older versions were
    built before newer ones existed, so their versions.json snapshots are
    incomplete.

    Options

    • A. Manually rebuild older versions — one-off fix per version. Fiddly.
    • B. Rebuild all previous tags on every release — clean but adds build time.
    • C. Runtime dropdown via JS — fetch versions.json at page load rather
      than baking it in. Requires all versions to have the JS, so a one-off
      rebuild of all existing versions is needed to bootstrap. This is what
      ReadTheDocs and mkdocs-material do.

    Recommendation

    Adopt Option C (runtime dropdown) once the alpha has a few more releases so
    the one-off rebuild covers more versions in one go. In the meantime, users
    landing on old versions can strip the /vX.Y.Z/ from the URL.

    Related

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions