Documentation: add tux logo
authorVegard Nossum <vegard.nossum@oracle.com>
Sun, 29 Oct 2023 07:42:07 +0000 (08:42 +0100)
committerJonathan Corbet <corbet@lwn.net>
Fri, 17 Nov 2023 20:54:56 +0000 (13:54 -0700)
We already have the logo, let's use it.

Testing: make htmldocs

Cc: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20231029074207.297663-1-vegard.nossum@oracle.com
Documentation/conf.py
Documentation/sphinx-static/custom.css

index d4fdf6a3875a83ae5c456d11c4ae53b9716b5390..20bd74edcca9fd8d20207b91775cbd73925eb6c2 100644 (file)
@@ -357,6 +357,10 @@ html_sidebars = { '**': ['searchbox.html', 'kernel-toc.html', 'sourcelink.html']
 if html_theme == 'alabaster':
     html_sidebars['**'].insert(0, 'about.html')
 
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+html_logo = 'images/logo.svg'
+
 # Output file base name for HTML help builder.
 htmlhelp_basename = 'TheLinuxKerneldoc'
 
index c7439349dda63402ff54eafdd3cb0b023ee21077..c992b1946edccbb93f980357c915361a0f41b297 100644 (file)
@@ -23,6 +23,12 @@ div.document {
     width: auto;
 }
 
+/* Size the logo appropriately */
+img.logo {
+    width: 104px;
+    margin-bottom: 20px;
+}
+
 /*
  * Parameters for the display of function prototypes and such included
  * from C source files.