-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add GitHub links for Provider API docs #624
Conversation
Hm, this has a legit broken link! Let's wait to merge this. Good job link checker :) |
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 Eric! I tried a few links and they all pointed to the correct files
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.
Neat solution, thanks
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.
Awesome, good find! Thank you Eric!
// Certain files do not map 1:1 between sphinx.ext.viewcode and GitHub. | ||
// When adding new entries, add a dedicated test case! |
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.
Good idea adding this comment here 👍
I didn't realize that Provider already is using the `viewcode` Sphinx extension for current docs, so we didn't need to make any change to that repository to get GitHub source links working. Note that this required adding a new mechanism to special-case certain files because they don't map 1:1 between GitHub and sphinx.ext.viewcode. Other than that change, this PR was generated automatically by running `npm run gen-api -- -p qiskit-ibm-provider -v 0.7.3 -a https://github.com/Qiskit/qiskit-ibm-provider/actions/runs/7330787504/artifacts/1135354934`.
I didn't realize that Provider already is using the
viewcode
Sphinx extension for current docs, so we didn't need to make any change to that repository to get GitHub source links working.Note that this required adding a new mechanism to special-case certain files because they don't map 1:1 between GitHub and sphinx.ext.viewcode.
Other than that change, this PR was generated automatically by running
npm run gen-api -- -p qiskit-ibm-provider -v 0.7.3 -a https://github.com/Qiskit/qiskit-ibm-provider/actions/runs/7330787504/artifacts/1135354934
.