aboutsummaryrefslogtreecommitdiff
path: root/Documentation/sphinx/templates/kernel-toc.html
AgeCommit message (Collapse)AuthorFilesLines
2024-01-23docs/sphinx: Fix TOC scroll hack for the home pageGustavo Sousa1-1/+3
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]
2023-02-16docs: Use HTML comments for the kernel-toc SPDX lineJonathan Corbet1-1/+1
This line was initially placed in {# jinja2 comments #}, but that led to an "invalid token" complaint from spdxcheck.py. Rather than fix the script for a usage we'll likely never see anywhere else, just switch to an HTML comment, which spdxcheck.py thinks is fine. Signed-off-by: Jonathan Corbet <[email protected]>
2023-02-08docs: Add more information to the HTML sidebarJonathan Corbet1-0/+16
Add a new sidebar template that creates a more RTD-like "fisheye" view of the current place in the document hierarchy. It is far from ideal, but some readers may find it better for navigating through the documentation as a whole. Add some CSS trickery as well to make the table of contents less intrusive when viewing the pages on a small screen. Reviewed-by: Akira Yokosawa <[email protected]> Reviewed-by: David Gow <[email protected] Signed-off-by: Jonathan Corbet <[email protected]>