We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Our Sphinx docs are setup in a way that allows us to use :gh-rez:path/to.file` to link to a file in the repo.
:gh-rez:
rez/docs/source/conf.py
Line 103 in 1d18bc2
This is great, but the URL is hardcoded to one branch. We should make it flexible and instead use a logic like:
blob_ref = "main" if os.environ.get("READTHEDOCS"): if os.environ["READTHEDOCS_VERSION_TYPE"] == "external": blob_ref = os.environ["READTHEDOCS_GIT_COMMIT_HASH"] else: blob_ref = os.environ["READTHEDOCS_GIT_IDENTIFIER"] gh_rez_url = f"https://github.com/AcademySoftwareFoundation/rez/blob/{blob_ref}/%s" extlinks = { 'gh-rez': (gh_rez_url, '%s'), }
See https://docs.readthedocs.io/en/stable/reference/environment-variables.html.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Our Sphinx docs are setup in a way that allows us to use
:gh-rez:
path/to.file` to link to a file in the repo.rez/docs/source/conf.py
Line 103 in 1d18bc2
This is great, but the URL is hardcoded to one branch. We should make it flexible and instead use a logic like:
See https://docs.readthedocs.io/en/stable/reference/environment-variables.html.
The text was updated successfully, but these errors were encountered: