Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: sphinx: remove SPDX/copyright comments from HTML output

Use Jinja2 comments instead of HTML comments for the SPDX and copyright
lines. This prevents them from appearing in the HTML output, which was
never the intention; the HTML output has its own copyright line at the
bottom of the document.

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250830170808.3911151-1-vegard.nossum@oracle.com

authored by

Vegard Nossum and committed by
Jonathan Corbet
0df41b1b 3f65aa8e

+4 -3
+2 -1
Documentation/sphinx/templates/kernel-toc.html
··· 1 - <!-- SPDX-License-Identifier: GPL-2.0 --> 1 + {# SPDX-License-Identifier: GPL-2.0 #} 2 + 2 3 {# Create a local TOC the kernel way #} 3 4 <p> 4 5 <h3 class="kernel-toc-contents">Contents</h3>
+2 -2
Documentation/sphinx/templates/translations.html
··· 1 - <!-- SPDX-License-Identifier: GPL-2.0 --> 2 - <!-- Copyright © 2023, Oracle and/or its affiliates. --> 1 + {# SPDX-License-Identifier: GPL-2.0 #} 2 + {# Copyright © 2023, Oracle and/or its affiliates. #} 3 3 4 4 {# Create a language menu for translations #} 5 5 {% if languages|length > 0: %}