Closed remram44 closed 6 years ago
Agreed, we should probably remove this feature. It would be great if you could submit a PR working on this, the code is here: https://github.com/rtfd/readthedocs.org/blob/304de09d9253c464ea6ee5b8999d2d8886c83fdd/readthedocs/core/static-src/core/js/doc-embed/version-compare.js#L18
See also #1616.
This is because 0.6.x
, 0.7.x
, 1.0.x
and so on aren't valid versions according to PEP440. RTD uses this library for get the version order, if one version is not valid, it is omitted.
Couldn't it just point to the default branch?
Why does it try to parse a BRANCH name as version anyway?
A release has a version and is a TAG, not a branch.
@ThomasWaldmann currently RTD support both kind of work-flows (tags and branches), but if the project has at least one tag, those are given priority (see #3528)
Maybe related to #3595
As commented https://github.com/rtfd/readthedocs.org/issues/1856#issuecomment-177037500 and https://github.com/rtfd/readthedocs.org/issues/1856#issuecomment-362643595. The issue wasn't a bug but related to an invalid version name (PEP440), which is documented on the docs https://docs.readthedocs.io/en/latest/versions.html#how-we-envision-versions-working.
Also, the team has decided to implement https://github.com/rtfd/readthedocs.org/issues/1616
In order to be able to add corrections to my docs, and FAQ entries and the like, I use release branches as the versions on RTD. For instance, I have a 0.6.x branch, then 0.7.x, 0.8.x.
This has worked fine for me in every way, except that it breaks the "You are not using the most up to date version of the library" feature.
My recommendations are the following:
Example message: http://reprozip.readthedocs.org/en/0.4/packing.html