diff options
author | Gustavo Sousa <[email protected]> | 2024-01-23 13:21:58 -0300 |
---|---|---|
committer | Jonathan Corbet <[email protected]> | 2024-01-23 14:33:13 -0700 |
commit | d2d0223441d3caad65f6978c07869321bce968e0 (patch) | |
tree | dfb30130bc9a4b26cc3bef30a45a4cdb406651d8 /scripts/rustdoc_test_builder.rs | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
docs/sphinx: Fix TOC scroll hack for the home page
When on the documentation home page, there won't be any ".current"
element since no entry from the TOC was selected yet. That results in a
javascript error. Fix that by only trying to set the scrollTop if we
have matches for current entries.
Signed-off-by: Gustavo Sousa <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions