diff --git a/doc/conf.py b/doc/conf.py index 17972826f9d7a..4c33fbd5dc8c2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -119,7 +119,7 @@ # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -#html_theme_options = {} +html_theme_options = {'oldversion':True} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = ['themes'] diff --git a/doc/themes/scikit-learn/layout.html b/doc/themes/scikit-learn/layout.html index 413547ba342fd..f62194b07a1b2 100644 --- a/doc/themes/scikit-learn/layout.html +++ b/doc/themes/scikit-learn/layout.html @@ -31,6 +31,15 @@ {%- endif %} {% block header %} + {%- if theme_oldversion|tobool %} +
Warning: This documentation is + for {{project}} version {{ release|e }}. + — + Latest stable version
+