Skip to content
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

Don't link to examples on the main branch in documentation #447

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

rahulporuri
Copy link
Contributor

At the moment, the documentation links to examples on the main/default branch. This isn't right because the examples might change in between releases, potentially confusing users who are referring to the documentation. This PR fixes that problem by making the documentation use version-specific links i.e. for the 6.0.1 release, the 6.0.1 tag will be used instead of the main branch.

I tested this locally by checking the links generated in the built docs - the examples links will be broken as expected as the dev version has no corresponding tag on GitHub. I then hardcoded the version in the sphinx configuration to 6.0.1 and the links worked as expected, pointing to the 6.0.1 tree instead of main.

instead, the documentation should use version-specific links to ensure
that the links dont break inadvertantly

	modified:   docs/source/conf.py
@rahulporuri rahulporuri requested a review from mdickinson August 10, 2021 05:05
Copy link
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rahulporuri rahulporuri merged commit 7b944a3 into main Aug 10, 2021
@rahulporuri rahulporuri deleted the doc/version-specific-examples branch August 10, 2021 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants