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

docs: fixes to docs build checks and links #443

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

docs: fixes to docs build checks and links #443

wants to merge 14 commits into from

Conversation

CalMacCQ
Copy link
Contributor

@CalMacCQ CalMacCQ commented Dec 31, 2024

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

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

@CalMacCQ CalMacCQ requested a review from cqc-melf as a code owner December 31, 2024 21:39
@@ -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)
Copy link
Contributor Author

@CalMacCQ CalMacCQ Dec 31, 2024

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

@CalMacCQ CalMacCQ changed the title fix: replace all generated _tket links in built html docs: replace all generated _tket links in built html Dec 31, 2024
@CalMacCQ CalMacCQ added the documentation Improvements or additions to documentation label Jan 1, 2025
@CalMacCQ CalMacCQ changed the title docs: replace all generated _tket links in built html docs: fixes to docs build checks and links Jan 2, 2025
@CalMacCQ
Copy link
Contributor Author

CalMacCQ commented Jan 2, 2025

@cqc-melf do you know why this command is failing?

@CalMacCQ CalMacCQ added the github_actions Pull requests that update GitHub Actions code label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky links in pytket-qiskit docs index page
1 participant