-
Notifications
You must be signed in to change notification settings - Fork 12
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
docs: fixes to docs build checks and links #443
base: main
Are you sure you want to change the base?
Conversation
@@ -208,7 +208,7 @@ Every {py:class}`~pytket.backends.backend.Backend` in pytket has its own {py:met | |||
* - [AutoRebase [2]](inv:#*.AutoRebase) | |||
- [SynthesiseTket](inv:#*.SynthesiseTket) | |||
- [FullPeepholeOptimise](inv:#*.passes.FullPeepholeOptimise) | |||
- [RemoveBarriers](inv:#*pytket.passes.RemoveBarriers) | |||
- [RemoveBarriers](inv:#*pytket._tket.passes.RemoveBarriers) |
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.
This is needed as there is a RemoveBarriers
class in qiskit as well so sphinx complains that the target is not unique. Adding the _tket
seems to fix this. This prefix is replaced by the build script so no _tket
links appear in the built pages
_tket
links in built html_tket
links in built html
_tket
links in built html
@cqc-melf do you know why this command is failing? |
Description
I discovered that the docs build was failing silently in C.I. as we did not use the
-e
flags to propogate the error and make the C.I. fail.Also due to the update to the API docs made in CQCL/tket#1721 the links which sphinx resolves to
_tket.passes
don't work properly.The solution I've found is very similar to CQCL/tket#1721 in that I just add some commands to the build script to replace all of the
_tket
prefixes in the built html.Note that this PR just fixes the links in the local build. The website has been fixed in a different PR which should handle the other extensions too.
Related issues
CQCL/tket#1719
closes #444
Checklist