From 920557fdd762cfad5434591d5512995e36112e7d Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Thu, 8 Nov 2012 21:41:02 -0800 Subject: [PATCH] use an imagemap for the "fork me on github" ribbon Right now, the ribbon on the front page blocks out the possiblity of clicking on the "Index" link, because the "Fork me on Github" link is on top of it. I've rectified this by providing an imagemap, which only makes part of the image clickable as a link. I've verified that it works under Firefox, Chromium, and w3m. I have also moved the ribbon from being only on the front page, to appearing on all pages, since that has the potential of inviting contributors more actively, as most people won't spend much time on the index page, once they are actually using matplotlib, whereas they will be peaking at the gallery, as well as the api docs, etc. I got the numbers for the ribbon from here: susestudio/studio-help#20, but then adjusted them so that the full upper left triangle would be clickable, and not just the ribbon. --- doc/_templates/index.html | 2 -- doc/_templates/layout.html | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/_templates/index.html b/doc/_templates/index.html index 9aa6e2cd57df..062ca8c93d70 100644 --- a/doc/_templates/index.html +++ b/doc/_templates/index.html @@ -35,8 +35,6 @@ } - - Fork me on GitHub

John Hunter (1968-2012)

diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index fed1999c27eb..cc11624ebd39 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -36,6 +36,13 @@ matplotlib + + + + + Fork me on GitHub + + {{ super() }} {% endblock %}