From 4431a216a3950f61f26e39d7156576701d64be1a Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Sun, 5 Feb 2012 15:48:40 -0500 Subject: [PATCH] DOC: Fix grid layout of gallery. --- doc/ext/gen_rst.py | 1 + doc/source/themes/agogo/static/agogo.css_t | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/doc/ext/gen_rst.py b/doc/ext/gen_rst.py index 69840399..b8356ec3 100644 --- a/doc/ext/gen_rst.py +++ b/doc/ext/gen_rst.py @@ -186,6 +186,7 @@ def generate_dir_rst(dir, fhindex, example_dir, root_dir, plot_gallery): fhindex.write('.. figure:: %s\n' % thumb) if link_name.startswith('._'): link_name = link_name[2:] + fhindex.write(' :figclass: gallery\n') if dir != '.': fhindex.write(' :target: ./%s/%s.html\n\n' % (dir, fname[:-3])) else: diff --git a/doc/source/themes/agogo/static/agogo.css_t b/doc/source/themes/agogo/static/agogo.css_t index 7d473713..b229cc96 100644 --- a/doc/source/themes/agogo/static/agogo.css_t +++ b/doc/source/themes/agogo/static/agogo.css_t @@ -637,6 +637,16 @@ th { font-size: 80%; } +/* ----------------- Example Gallery ----------------- */ + +.gallery { + min-height: 250px; +} + +.gallery p.caption a{ + text-decoration: none; +} + /* ----------------- Coverage States ----------------- */ span.missing{ color: #000;