summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2023-10-29 08:42:07 +0100
committerJonathan Corbet <corbet@lwn.net>2023-11-17 13:54:56 -0700
commitd49af114421104ffc3378e932f474096e3f9598e (patch)
treefcf4369c3e11222a54a77d3543e138aea84db21a
parent86b17aaf2e887355e4f70dd9c4897f6a06fa9b32 (diff)
Documentation: add tux logo
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
-rw-r--r--Documentation/conf.py4
-rw-r--r--Documentation/sphinx-static/custom.css6
2 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py
index d4fdf6a3875a..20bd74edcca9 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -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'
diff --git a/Documentation/sphinx-static/custom.css b/Documentation/sphinx-static/custom.css
index c7439349dda6..c992b1946edc 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -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.