Skip to content

Commit 53a9b64

Browse files
jaquesgrobleramueller
authored andcommitted
Add temporary survey banner
1 parent e52e247 commit 53a9b64

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
# further. For a list of options available for each theme, see the
122122
# documentation.
123123
html_theme_options = {'oldversion': False, 'collapsiblesidebar': True,
124-
'google_analytics': True}
124+
'google_analytics': True, 'surveybanner': True}
125125

126126
# Add any paths that contain custom themes here, relative to this directory.
127127
html_theme_path = ['themes']

doc/themes/scikit-learn/layout.html

+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@
5151
Latest stable version</a></p></p>
5252
</div>
5353
{%- endif %}
54+
{%- if theme_surveybanner == true %}
55+
<div class="survey-wrapper">
56+
<p>Please help us to improve <b>scikit-learn</b>
57+
by completing this quick survey.
58+
&mdash; <a href="https://docs.google.com/spreadsheet/viewform?formkey=dFdyeGNhMzlCRWZUdldpMEZlZ1B1YkE6MQ#gid=0">
59+
Click here..</a></p></p>
60+
</div>
61+
{%- endif %}
5462

5563
<div class="header-wrapper">
5664
<div class="header">

doc/themes/scikit-learn/static/nature.css_t

+26
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ div.header-wrapper {
2727
min-height: 50px;
2828
margin-left: auto;
2929
margin-right: auto;
30+
margin-top: 0px;
3031
border-radius: 0px 0px 15px 15px;
3132
-moz-border-radius: 0px 0px 15px 15px;
3233
}
@@ -562,6 +563,31 @@ div.warning-wrapper p {
562563
margin: 0;
563564
}
564565

566+
/* -------- banner for advertising the survey ------------------------------*/
567+
568+
div.survey-wrapper {
569+
background-color: #FF9C34;
570+
text-align: center;
571+
position: fixed;
572+
top: 0px;
573+
left: 0px;
574+
width: 100%;
575+
padding-top: 1px;
576+
height: 21px;
577+
box-shadow: 4px -4px 10px 3px #8AA, inset 4px 0px 13px 3px #FF9E6D;
578+
}
579+
div.survey-wrapper p {
580+
margin: 0;
581+
white-space: nowrap;
582+
}
583+
584+
{% if theme_surveybanner == true %}
585+
/* for survey banner */
586+
div.header-wrapper {
587+
margin-top: 21px;
588+
}
589+
{% endif %}
590+
565591
/* ------- Fix maximum size of thumbnails in example gallery -------------- */
566592
div#examples.section .figure img {
567593
max-width: 160px;

doc/themes/scikit-learn/theme.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ pygments_style = tango
66
[options]
77
oldversion = False
88
collapsiblesidebar = True
9-
google_analytics = True
9+
google_analytics = True
10+
surveybanner = True

0 commit comments

Comments
 (0)