Skip to content

docs: explain the documentation versions - #490

Merged
uniqueg merged 3 commits into
devfrom
docs/versions
Oct 28, 2026
Merged

uniqueg merged 3 commits into
devfrom
docs/versions

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • New documentation page "Versions" (apps/documentation/pages/docs/versions.mdx, in the sidebar after "Installation"): stable (from 2.0.0 on), latest (= dev) and the tagged versions on Read the Docs, which one to read when, and how they map to the branches (dev, main) and the npm dist-tags (latest, and next for prereleases from 2.0.0 on).
  • CONTRIBUTING.md, "Releases" → "Documentation versions": the current Read the Docs setup (automation rules for v* tags) and the steps for maintainers at the 2.0.0 release (delete the "set as default" rule, activate stable and make it the default, enable the non-stable notification).

The next dist-tag for prereleases after 2.0.0 is implemented in a separate PR (release workflow).

Closes #489

Verification

Light lane: documentation only, reviewed the diff myself.

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Document how to choose and maintain documentation versions across Read the Docs, Git branches, and npm releases.

New Features:

  • Add user-facing documentation describing available documentation versions and how they correspond to releases, branches, and npm dist-tags.

Enhancements:

  • Document the Read the Docs version-management process and the maintainer actions required when 2.0.0 is released.

Documentation:

  • Add the Versions page to the documentation site and link it from the documentation navigation.
  • Expand CONTRIBUTING.md with guidance for managing documentation versions on Read the Docs.

Add the page "Versions" to the documentation: stable, latest and the
tagged versions on Read the Docs, which one to read, and how they map
to the branches and npm dist-tags. CONTRIBUTING.md lists the Read the
Docs settings that maintainers change at the 2.0.0 release.

Closes #489

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

This documentation-only PR explains how Read the Docs versions correspond to release tags, branches, and npm dist-tags, and records the Read the Docs configuration changes maintainers must make when 2.0.0 is released.

Flow diagram for documentation, branch, and npm version mapping

flowchart LR
    Dev[dev branch] --> LatestDocs[Read the Docs latest]
    Main[main branch] --> StableDocs[Read the Docs stable]
    ReleaseTag[release tag v<version>] --> TaggedDocs[Read the Docs tagged version]
    StableDocs --> LatestNpm[npm latest]
    ReleaseTag --> ReleaseNpm[npm dist-tag for release]
    Prerelease[2.0.0 prerelease] -->|before 2.0.0| LatestNpm
    Prerelease -->|from 2.0.0 onward| NextNpm[npm next]
    StableDocs -.->|default from 2.0.0| DefaultVersion[Read the Docs default]
Loading

File-Level Changes

Change Details Files
Adds a user-facing explanation of documentation versions, their release semantics, and their relationship to branches and npm dist-tags.
  • Documents stable, latest, and tagged Read the Docs versions and when to use each.
  • Maps documentation versions to the dev/main branches, release tags, and npm latest/next dist-tags.
  • Adds guidance for prereleases before and after 2.0.0.
  • Places the new page in the documentation sidebar.
apps/documentation/pages/docs/versions.mdx
apps/documentation/pages/docs/_meta.json
Documents the Read the Docs version-management workflow and the maintainer transition required at the 2.0.0 release.
  • Describes tag automation and the pre-2.0.0 default-version behavior.
  • Lists the steps to activate stable, make it default, and enable non-stable notifications after 2.0.0.
  • Links the contributor guidance to the documentation versions page.
CONTRIBUTING.md

Assessment against linked issues

Issue Objective Addressed Explanation
#489 Add documentation explaining the Read the Docs versions (stable, latest, and tagged releases), when to read each, and how they map to branches and npm dist-tags. ✅
#489 Document the Read the Docs configuration changes maintainers should make at the 2.0.0 release. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

read-the-docs-community Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

@uniqueg
uniqueg marked this pull request as ready for review October 28, 2026 04:20
@uniqueg
uniqueg requested a review from anuragxxd as a code owner October 28, 2026 04:20

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="apps/documentation/pages/docs/versions.mdx" line_range="17" />
<code_context>
+## Documentation versions
+
+- **`stable`** (from 2.0.0 on): the newest release. Read this version if you install the packages
+  without a version (`npm install @elixir-cloud/(service-name)`), which installs the npm dist-tag
+  `latest`. Once 2.0.0 is out, `stable` is the default version.
+- **`latest`**: the `dev` branch, the work done since the newest release. It may or may not be part
</code_context>
<issue_to_address>
**Install examples fail in shell**

When a reader copies one of the install commands verbatim, the unquoted parentheses in the package placeholder are shell metacharacters, so copying these commands as shown produces a shell syntax error instead of running npm.

Use an actual package name in the examples, or explicitly explain how to replace the placeholder and omit its parentheses.

Also at `apps/documentation/pages/docs/versions.mdx:37`, `apps/documentation/pages/docs/versions.mdx:41`.
</issue_to_address>

### Comment 2
<location path="apps/documentation/pages/docs/versions.mdx" line_range="39-41" />
<code_context>
+  tag.
+- The npm dist-tag `latest` holds the newest release: `npm install @elixir-cloud/(service-name)`
+  installs it.
+- Until 2.0.0 is out, the 2.0.0 prereleases (`2.0.0-alpha.N`) are published with the dist-tag
+  `latest`, as there is no 2.x release yet. From 2.0.0 on, prereleases get the dist-tag `next`
+  (`npm install @elixir-cloud/(service-name)@next`), so `latest` stays on the newest release.
+
+Maintainers: see "Releases" in
</code_context>
<issue_to_address>
**Prerelease installs use the wrong tag**

When a named prerelease is published after 2.0.0 and before the release workflow is changed, `scripts/release.js` derives the dist-tag from the prerelease identifier, such as `rc` or `alpha`, rather than `next`, so the documented `@next` command cannot install the prerelease and returns a missing or stale version.

Align the documented prerelease command with the release workflow's dist-tag, or change the workflow to publish these prereleases under `next`.
</issue_to_address>

Sourcery assessment

Approval pending. 2 findings to address first.

Blocking findings: apps/documentation/pages/docs/versions.mdx:17, apps/documentation/pages/docs/versions.mdx:41


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 4a7a860 into dev Oct 28, 2026
9 checks passed
@uniqueg
uniqueg deleted the docs/versions branch October 28, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: explain the documentation versions

1 participant