linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [PATCH 1/7] doc: use a smaller logo in the sidebar
Date: Mon, 10 Aug 2020 23:53:30 +0200	[thread overview]
Message-ID: <20200810215336.76070-2-luc.vanoostenryck@gmail.com> (raw)
In-Reply-To: <20200810215336.76070-1-luc.vanoostenryck@gmail.com>

The logo takes quite a bit height in the sidebar and so
pushes the table of content too much at the bottom.

Fix this by reducing the logo to 50%.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 Documentation/conf.py                           | 8 +++++++-
 Documentation/sphinx/static/theme_overrides.css | 3 +++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index 89ba3d785c7a..affa907346c0 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -113,7 +113,13 @@ except:
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-# html_static_path = ['sphinx/static']
+html_static_path = ['sphinx/static']
+
+html_context = {
+    'css_files': [
+        '_static/theme_overrides.css',
+    ],
+}
 
 # Custom sidebar templates, must be a dictionary that maps document names
 # to template names.
diff --git a/Documentation/sphinx/static/theme_overrides.css b/Documentation/sphinx/static/theme_overrides.css
new file mode 100644
index 000000000000..8d6246e4202c
--- /dev/null
+++ b/Documentation/sphinx/static/theme_overrides.css
@@ -0,0 +1,3 @@
+.wy-side-nav-search > a img.logo {
+	width: 60%;
+}
-- 
2.28.0


  reply	other threads:[~2020-08-10 21:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10 21:53 [PATCH 0/7] doc: small tweaks to the online documentation Luc Van Oostenryck
2020-08-10 21:53 ` Luc Van Oostenryck [this message]
2020-08-10 21:53 ` [PATCH 2/7] doc: make the sidebar more compact Luc Van Oostenryck
2020-08-10 21:53 ` [PATCH 3/7] doc: decrease vertical spacing Luc Van Oostenryck
2020-08-10 21:53 ` [PATCH 4/7] doc: move down info about tarballs, after git repositories Luc Van Oostenryck
2020-08-10 21:53 ` [PATCH 5/7] doc: reorganize the table of content Luc Van Oostenryck
2020-08-10 21:53 ` [PATCH 6/7] doc: use shorter titles Luc Van Oostenryck
2020-08-10 21:53 ` [PATCH 7/7] doc: add links to some external doc Luc Van Oostenryck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200810215336.76070-2-luc.vanoostenryck@gmail.com \
    --to=luc.vanoostenryck@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).