cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

docs(#523): Automate version numbers in documentation

Open najuna-brian opened this issue 2 months ago • 3 comments

Description

Fixes #523

This PR addresses the issue by implementing automatic version detection and substitution in the documentation build process.

Testing

Verified locally that @VERSION_3X@ is correctly substituted with the current version (3.7-fd2f83f-20251010T213229Z-SNAPSHOT) during docs/mdoc generation.

najuna-brian avatar Oct 10 '25 22:10 najuna-brian

Hi @armanbilge, @valencik

I'm seeing a CI failure that appears to be unrelated to the changes in this PR. The error shows: scalafmt: [v3.9.4] failed to download [/home/runner/work/cats-effect/cats-effect/.scalafmt.conf]

However, I've verified locally that: The .scalafmt.conf file is present and correct All formatting checks pass (sbt scalafmtCheck) The documentation generation works perfectly (sbt "docs/mdoc")

Could the error message be misleading since scalafmt reads config files from the filesystem rather than downloading them? This looks like a temporary CI infrastructure issue.

Could you please re-run the CI job or let me know if there's something I'm missing? Thanks :blush:

najuna-brian avatar Oct 11 '25 08:10 najuna-brian

Thanks for working on this!

Verified locally that @VERSION_3X@ is correctly substituted with the current version (3.7-fd2f83f-20251010T213229Z-SNAPSHOT) during docs/mdoc generation.

On this branch, the current version is v3.7.0-RC1: https://github.com/typelevel/cats-effect/releases/tag/v3.7.0-RC1

armanbilge avatar Oct 11 '25 16:10 armanbilge

On this branch, the current version is v3.7.0-RC1: https://github.com/typelevel/cats-effect/releases/tag/v3.7.0-RC1

Thanks for the clarification! Just to confirm: when there's a release tag like v3.7.0-RC1, should the automation detect that instead of the development snapshot version I saw locally (3.7-fd2f83f-20251010T213229Z-SNAPSHOT)?

Or are both correct depending on the context? Want to make sure the version detection is working as expected. @armanbilge

najuna-brian avatar Oct 11 '25 20:10 najuna-brian