diff --git a/.gitignore b/.gitignore index c438a51629c0..21905c804f7d 100644 --- a/.gitignore +++ b/.gitignore @@ -30,9 +30,7 @@ ################ # setup.py working directory build -# sphinx build directory -doc/_build -doc/gallery + # setup.py dist directory dist # Egg metadata @@ -58,9 +56,13 @@ lib/matplotlib/mpl-data/matplotlibrc # Documentation generated files # ################################# +# sphinx build directory +doc/_build doc/api/_as_gen -doc/examples # autogenerated by sphinx-gallery +doc/examples +doc/gallery +doc/tutorials doc/modules doc/pyplots/tex_demo.png doc/users/installing.rst diff --git a/doc/faq/anatomy.png b/doc/_static/anatomy.png similarity index 100% rename from doc/faq/anatomy.png rename to doc/_static/anatomy.png diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index d94b594cbb07..d7bc46446c7f 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -785,9 +785,9 @@ div.responsive_subfig img { div.responsive_subfig { width: 50%; /* we want 2 subfigs in a row */ } +} /* Sphinx gallery display */ -} div.align-center { margin: auto; @@ -798,6 +798,31 @@ p.caption { font-weight: bold; } -div#gallery.section { +div#gallery.section, div#tutorials.section { overflow: hidden; } + +.sphx-glr-thumbcontainer { + border: solid #d6d6d6 1px !important; + text-align: center !important; + font-size: 1.2em !important; +} + +div.sphx-glr-download { + width: auto !important; +} + +div.sphx-glr-download a { + background-color: #d9edf7 !important; + border: 1px solid #bce8f1 !important; + background-image: none !important; +} + +p.sphx-glr-signature a.reference.external { + display: none !important; +} + +.sphx-glr-thumbcontainer a.internal { + font-weight: 400; +} + diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index b5bd37d2c3b5..9ee83391adc4 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -39,6 +39,7 @@