-
Notifications
You must be signed in to change notification settings - Fork 5
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
Show precise versions for stable and development ("latest") #16
Conversation
9e5cdba
to
2b4322a
Compare
Make it even clearer what software revisions those labels represent. A `git describe` style string¹ for development ("latest") would be even better than just the git revision, but that appears to be non-trivial to implement. Resolves <nextstrain/augur#817>. h/t to @corneliusroemer for the suggestion and @huddlej for bringing it up again in <#15>. ¹ e.g. "${tag}-${n}-g${sha}" where ${tag} is the last/closest tag to the current commit, ${n} is the number of commits since that ${tag}, and ${sha} is the shortened id of the current commit.
2b4322a
to
ffac8ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks excellent! I'm not sure how to easily test this with Augur, etc. Is the test-bed site something you setup just for this PR?
Yeah, https://github.com/nextstrain/readthedocs-testbed and https://readthedocs-testbed.readthedocs.org are new to test out this PR (but I expect to find use for them in future work too). These changes should work across our real projects with one caveat: the precise version in "stable version (X)" can only be shown if the project's Sphinx Augur currently doesn't define |
This will allow us to display the specific version for "stable" on Read the Docs (once <nextstrain/sphinx-theme#16> is merged). Also sets "release" as the Sphinx documentation says¹: If you don’t need the separation provided between version and release, just set them both to the same value. ¹ https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-release
Make it even clearer what software revisions those labels represent.
A
git describe
style string1 for development ("latest") would be even better than just the git revision, but that appears to be non-trivial to implement.Resolves nextstrain/augur#817.
h/t to @corneliusroemer for the suggestion and @huddlej for bringing it up again in #15.
Footnotes
e.g. "${tag}-${n}-g${sha}" where ${tag} is the last/closest tag to the current commit, ${n} is the number of commits since that ${tag}, and ${sha} is the shortened id of the current commit. ↩