From 248869e2dbd8d988865f9258759300e44fe7fe6a Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 17 Jun 2018 15:22:06 +0900 Subject: [PATCH] doc: Use badge to show latest release --- doc/_templates/indexsidebar.html | 14 ++------------ doc/_themes/sphinx13/static/sphinx13.css | 4 ++++ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/doc/_templates/indexsidebar.html b/doc/_templates/indexsidebar.html index b07ef2033..d67a5e2ea 100644 --- a/doc/_templates/indexsidebar.html +++ b/doc/_templates/indexsidebar.html @@ -3,19 +3,9 @@ {%trans%}project{%endtrans%}

Download

-{% if version.endswith('+') %} -

{%trans%}This documentation is for version {{ version }}, which is - not released yet.{%endtrans%}

-

{%trans%}You can use it from the - Git repo or look for - released versions in the Python - Package Index.{%endtrans%}

-{% else %} -

{%trans%}Current version: {{ version }}{%endtrans%}

-

{%trans%}Get Sphinx from the Python Package -Index, or install it with:{%endtrans%}

+

{%trans%}Current version: {%endtrans%}

+

{%trans%}Install Sphinx with:{%endtrans%}

pip install -U Sphinx
-{% endif %}

{%trans%}Questions? Suggestions?{%endtrans%}

diff --git a/doc/_themes/sphinx13/static/sphinx13.css b/doc/_themes/sphinx13/static/sphinx13.css index 24a33fba7..85281f037 100644 --- a/doc/_themes/sphinx13/static/sphinx13.css +++ b/doc/_themes/sphinx13/static/sphinx13.css @@ -140,6 +140,10 @@ div.sphinxsidebar .logo img { vertical-align: middle; } +div.sphinxsidebar .download a img { + vertical-align: middle; +} + div.subscribeformwrapper { display: block; overflow: auto;