mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
4e98799a70
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 <corbet@lwn.net>
17 lines
646 B
HTML
17 lines
646 B
HTML
<!-- SPDX-License-Identifier: GPL-2.0 -->
|
|
{# Create a local TOC the kernel way #}
|
|
<p>
|
|
<h3 class="kernel-toc-contents">Contents</h3>
|
|
<input type="checkbox" class="kernel-toc-toggle" id = "kernel-toc-toggle" checked>
|
|
<label class="kernel-toc-title" for="kernel-toc-toggle"></label>
|
|
|
|
<div class="kerneltoc" id="kerneltoc">
|
|
{{ toctree(maxdepth=3) }}
|
|
</div>
|
|
{# hacky script to try to position the left column #}
|
|
<script type="text/javascript"> <!--
|
|
var sbar = document.getElementsByClassName("sphinxsidebar")[0];
|
|
let currents = document.getElementsByClassName("current")
|
|
sbar.scrollTop = currents[currents.length - 1].offsetTop;
|
|
--> </script>
|