-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the order of versions in versions.json
#82
Comments
versions.json
The version for your documentation should be an actual version number (in this case, you should set it to be whatever the version will be when you release it). If you want to show |
Hmm, it most cases wouldn't the last release also be dev? Most people don't automatically bump to a beta/rc version after a release |
I'd say it's generally good practice to update your project's version to something that sorts "after" the last-released version immediately after you've published the release. That way it's much clearer what version people are on, even if they're using a dev build. I know I'd find it confusing if someone said they were on 1.2.3, but they were actually on a development version that will become 1.2.4 or 1.3 or 2.0... |
Reopening this for now; I think there's at least some argument that "version" strings that don't start with a number should always be treated as newer than a regular numbered version. I'm not sure this makes sense for all cases (and I'd still strongly recommend the strategy I describe above), but something like this might account for cases like this without harming the recommended strategy of always using a numbered version. |
Has there been any update on this? |
Not at the moment, no. I've been super busy with other things and haven't had time to devote to this yet. |
Has this been implemented? |
No, it hasn't. Given the discussion in #52, it will probably be some time before we settle on a solution that's flexible enough and which works with |
In the meantime, it would probably be fairly straightforward to post-process the |
This should be fixed now; the logic is that versions without a leading digit are "development" versions, so effectively they're in a higher epoch. Otherwise though, they're sorted like versions; in particular, this means that |
@squidfunk Just a heads up, since this change might affect mkdocs-material. mike now sorts the versions in |
Well, maybe the semantics need to be redefined a little. Currently we look for the |
Ah, that should be fine then. Your current way shouldn't run into any trouble with this change. (Maybe there's room for different ways to detect the latest version, but that seems fine to me, so long as users are happy setting a |
When might this be released? |
Probably not for a while, since this project is a low priority for me. If you're waiting on this feature for something, I'd recommend using the development builds (with the usual caveat that there may be other bugs). |
Is there any chance there will be a release soon? Can I assist in any way please? |
The absolute bare minimum for releasing v2.0 is to resolve #106. I haven't had time to work on this, but if someone can perform testing, that would help move things along. |
Does that work on Windows? |
Well, the automated tests using symlinks pass on Windows systems, so I'd say yes. |
By default, only administrators are able to use those https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/create-symbolic-links#default-values See also this comment from a CPython core developer at Microsoft regarding a proposal to use symlinks in a packaging standard https://discuss.python.org/t/discuss-pep-662-editable-installs-via-virtual-wheels/9071/97 Those tests fail on my machine, and I have the highest privileges (I'm guessing I never enabled the option): |
From: squidfunk/mkdocs-material#3251
Currently, textual versions like
dev
ormaster
come after real numeric versions and are not easy to find/select when there are many versions.The text was updated successfully, but these errors were encountered: