-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Improve header hierarchy for API module pages #12325
Conversation
One or more of the the following people are requested to review this:
|
Circuit Assembler | ||
================= |
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.
These headers each only had one entry. It makes the page a bit noisy: https://docs.quantum.ibm.com/api/qiskit/dev/assembler
API overview of :mod:`qiskit.circuit` | ||
===================================== |
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.
------------------------- | ||
========================= |
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 to reduce the amount of nesting
@@ -81,6 +81,7 @@ def grover_oracle(a: Int1, b: Int1, c: Int1, d: Int1) -> Int1: | |||
|
|||
Decorator for a classical function that returns a `ClassicalFunction` object. | |||
|
|||
.. autofunction:: classical_function |
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 was unintentionally left off before
.. autosummary:: | ||
|
||
Barrier | ||
* :class:`qiskit.circuit.Barrier` |
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.
We now link to the inline class definition
@@ -19,8 +19,8 @@ | |||
|
|||
Qiskit schema-conformant objects used by the backends and providers. | |||
|
|||
Backend Objects |
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.
Renamed to not repeat "Backend Objects", which is already the h1
@@ -11,9 +11,9 @@ | |||
# that they have been altered from the originals. |
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.
The changes in this file are to use standard conventions for headers
.. autoclass:: ScheduleConfig | ||
|
||
.. currentmodule:: qiskit.scheduler.schedule_circuit | ||
.. autofunction:: schedule_circuit | ||
.. currentmodule:: qiskit.scheduler | ||
|
||
.. automodule:: qiskit.scheduler.methods |
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.
I inlined the module docstring and added a new header. Before, it was paragraph text and looked weird.
@@ -152,8 +152,10 @@ | |||
HLSConfig | |||
SolovayKitaev | |||
|
|||
Post Layout (Post transpile qubit selection) |
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 made the page ToC quite long
Pull Request Test Coverage Report for Build 8968536423Details
💛 - Coveralls |
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.
LGTM.
* Improve header hierarchy for API module pages * Tweaks * Review feedback (cherry picked from commit f39c907)
* Improve header hierarchy for API module pages * Tweaks * Review feedback
Closes Qiskit/documentation#942. This uses a few principles:
=
above and below=
below-
below~
below