forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix documentation for Sphinx 4 (Qiskit#7469)
Sphinx 4 is more particular about disallowing the same Python object to be documented in multiple toctree entries. The culprits were `Barrier`, `Reset` and `Measure` in the circuit library; the library re-exports them from their canonical locations, and used `autosummary` to generate extra links to them. We still re-export them, but change the `autosummary` tables to link to the existing definitions. This then builds the documentation without errors on Sphinx 4, and consequently the pin on `sphinx-panels` can be removed. Previously the pin was applied because an update to that package caused the documentation build to break; in reality, it's just that `sphinx-panels<0.6` pinned itself to `Sphinx<4`, whereas version 0.6 allowed Sphinx 4 - there were no breaking changes for us. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2867f20
commit 3092929
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,6 +187,7 @@ | |
Gate | ||
ControlledGate | ||
Delay | ||
Barrier | ||
Measure | ||
Reset | ||
Instruction | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters