diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index 3e736a92151f..d69e7adf99c1 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -1006,15 +1006,24 @@ div.viewcode-block:target { } -.sidebar-announcement { +.sidebar-announcement, +.sidebar-versions { border: 1px solid #11557C; background: #eff9ff; - padding: 2px; + padding: 0.2em 0.5em; + margin-top: 1em; +} + +.sidebar-announcement { margin-top: 40px; } +.sidebar-versions { + margin-top: 1em; +} + .sidebar-announcement p { - margin: 0.4em 0.4em 0.6em 0.4em; + margin: 0.4em 0 0.6em 0; } /* new main nav */ diff --git a/doc/_templates/sidebar_versions.html b/doc/_templates/sidebar_versions.html new file mode 100644 index 000000000000..35a965661d90 --- /dev/null +++ b/doc/_templates/sidebar_versions.html @@ -0,0 +1,38 @@ +
diff --git a/doc/conf.py b/doc/conf.py index cea2b33b7717..53d18dbb54d8 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -263,7 +263,7 @@ def _check_deps(): # Custom sidebar templates, maps page names to templates. html_sidebars = { - 'index': ['searchbox.html', 'sidebar_announcement.html', + 'index': ['searchbox.html', 'sidebar_announcement.html', 'sidebar_versions.html', 'donate_sidebar.html'], '**': ['searchbox.html', 'localtoc.html', 'relations.html', 'pagesource.html'] diff --git a/doc/index.rst b/doc/index.rst index 88fd9b71cdd6..b15936c1fd0a 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -54,51 +54,8 @@ Visit the :doc:`Matplotlib installation instructionsNote: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: