-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Access to checked-out version in conf.py #1096
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
Comments
👍 |
We could make the version available as a environment variable. Let's put this on the list, but it's not high in priority for us. @holtgrewe @rrahn would you be interested in working on this in a Pull Request? I'm happy to guide you through any of this if you need help. |
Hey thank you for your response. |
This would be a good place to set the actual environment variable: https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/doc_builder/environments.py#L92 You can get to the If you look into the |
This issue was already solved on #1570 (merged) |
@stsewd can you close the issue. I am afraid I can't as I am not the original author. The others probably will not respond. |
@rrahn I can't neither, let's wait to someone with permissions to do it. |
Thanks! |
Is it possible to access the current version (e.g. "latest", "master", or "develop") in the
conf.py
file?I would like to generate links to API documentation at
http://example.com/docs/${version}
and make the${version}
part correspond to the version as on the readthedocs server.The text was updated successfully, but these errors were encountered: