Repository navigation
docs: explain the documentation versions - #490
Merged
Merged
Conversation
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]>
Contributor
Reviewer's GuideThis 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 mappingflowchart 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]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Documentation build overview
42 files changed ·
|
uniqueg
marked this pull request as ready for review
October 28, 2026 04:20
Contributor
There was a problem hiding this comment.
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
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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, andnextfor prereleases from 2.0.0 on).v*tags) and the steps for maintainers at the 2.0.0 release (delete the "set as default" rule, activatestableand make it the default, enable the non-stable notification).The
nextdist-tag for prereleases after 2.0.0 is implemented in a separate PR (release workflow).Closes #489
Verification
npx turbo run build --filter=ecc-docs...: build succeeds,out/docs/versions.htmlis generated.npm run lint: passes.npx prettier --check pages/docs/versions.mdx: passes (pages/docs/_meta.jsonwas already not Prettier-formatted ondev).CI: all checks passed, including the Read the Docs preview (https://cloud-components--490.org.readthedocs.build/en/490/docs/versions/).
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:
Enhancements:
Documentation: