-
Notifications
You must be signed in to change notification settings - Fork 357
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
Implement version role for Sphinx #2165
Conversation
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.
Thanks @mahdienan, this works as described. :) I just have a couple of minor comments in line.
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.
thanks @mahdienan! I approve
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.
LGTM 👍
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.
I was about to merge, got curious about the content and found a typo and one issue, see below.
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
This pr implements a Sphinx extension that allows referencing version numbers of packages in the documentation from a single source (see versions.json) to make sure developers are referencing correct version numbers. The extension defines the
version
role in VersionSyncRole.py. For example, to display the recommended version of cmake, the role should be used like this:version:`cmake,recommended`
.This extension was written to fix issue #1558.