We're planning to switch some Qiskit projects to stop having dedicated HTML pages per method, mostly due to performance concerns.
Closes https://github.com/Qiskit/qiskit_sphinx_theme/issues/466. Methods were using inline-block rather than block when on the classes page, which resulted in a bug when highlighting over the method to show the # anchor tag:
Instead, we now turn off floating of the [source] label because it causes issues on long code signatures:
After:
Even though the [source] floating to the right is more "elegant", we have too many long signatures in Qiskit to be worth it. It's safer to turn off the float.
We're planning to switch some Qiskit projects to stop having dedicated HTML pages per method, mostly due to performance concerns.
Closes https://github.com/Qiskit/qiskit_sphinx_theme/issues/466. Methods were using
inline-block
rather thanblock
when on the classes page, which resulted in a bug when highlighting over the method to show the#
anchor tag:Instead, we now turn off floating of the
[source]
label because it causes issues on long code signatures:After:
Even though the
[source]
floating to the right is more "elegant", we have too many long signatures in Qiskit to be worth it. It's safer to turn off the float.This also improves the information hierarchy so that page feels less crowded. Relates to https://github.com/Qiskit/qiskit_sphinx_theme/issues/459: