Closed Eric-Arellano closed 1 year ago
Turns out it's necessary to also set this for a
and p
. We had some long links in Qiskit docs that broke the layout similar to the PR description. But, it's not necessary for tables thanks to the horizontal scroll. So, we ended up with this SCSS:
h1,
h2,
h3,
h4,
h5,
h6,
p:not(table p),
a:not(table a) {
overflow-wrap: break-word;
word-break: break-word;
}
I'm not sure where those rules for p
and a
would belong in Furo's Sass file layout. (In qiskit-sphinx-theme, we have _layout.scss
)
https://github.com/pradyunsg/furo/commit/c8b51d09af3dcaac3046f7e761119e9d1b7c9e37 resolves this. Thanks for filing this PR and flagging this! ^.^
Before:
After:
This is particularly a problem for generated API docs from
autodoc
since the headers can get quite long.