Skip to content

Commit f919a84

Browse files
Change search background
This pr adds the possibility to change the background of the search area. Signed-off-by: Gergely Csatari <[email protected]>
1 parent b9bf19f commit f919a84

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Gruntfile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = function(grunt) {
125125
usebanner: {
126126
dist: {
127127
options: {
128-
position: 'top',
128+
position: 'top',
129129
banner: '/* <%= pkg.name %> version <%= pkg.version %> | MIT license */\n' +
130130
'/* Built <%= grunt.template.today("yyyymmdd HH:mm") %> */',
131131
linebreak: true
@@ -139,6 +139,9 @@ module.exports = function(grunt) {
139139
bower_update: {
140140
cmd: 'bower update'
141141
},
142+
pip_install: {
143+
cmd: 'pip install .'
144+
},
142145
build_sphinx: {
143146
cmd: 'sphinx-build docs/ docs/build'
144147
}
@@ -149,7 +152,6 @@ module.exports = function(grunt) {
149152
css: ["sphinx_rtd_theme/static/css"],
150153
js: ["sphinx_rtd_theme/static/js/*", "!sphinx_rtd_theme/static/js/modernizr.min.js"]
151154
},
152-
153155
watch: {
154156
/* Compile sass changes into theme directory */
155157
sass: {
@@ -184,6 +186,6 @@ module.exports = function(grunt) {
184186
grunt.loadNpmTasks('grunt-open');
185187
grunt.loadNpmTasks('grunt-browserify');
186188

187-
grunt.registerTask('default', ['exec:bower_update','clean','copy:fonts','sass:dev','browserify:dev','usebanner','exec:build_sphinx','connect','open','watch']);
188-
grunt.registerTask('build', ['exec:bower_update','clean','copy:fonts','sass:build','browserify:build','uglify','usebanner','exec:build_sphinx']);
189+
grunt.registerTask('default', ['exec:bower_update','clean','copy:fonts','sass:dev','browserify:dev','usebanner','exec:pip_install','exec:build_sphinx','connect','open','watch']);
190+
grunt.registerTask('build', ['exec:bower_update','clean','copy:fonts','sass:build','browserify:build','uglify','exec:pip_install','usebanner','exec:build_sphinx']);
189191
}

sphinx_rtd_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
{# SIDE NAV, TOGGLES ON MOBILE #}
8989
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
9090
<div class="wy-side-scroll">
91-
<div class="wy-side-nav-search">
91+
<div class="wy-side-nav-search" {% if theme_logo_background_color %} style="background-color: {{theme_logo_background_color}}" {% endif %}>
9292
{% block sidebartitle %}
9393

9494
{% if logo and theme_logo_only %}

sphinx_rtd_theme/theme.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ collapse_navigation = True
1010
sticky_navigation = True
1111
navigation_depth = 4
1212
includehidden = True
13+
logo_background_color =
1314
titles_only =
14-
logo_only =
15+
logo_only =
1516
display_version = True
1617
prev_next_buttons_location = bottom
1718
style_external_links = False

0 commit comments

Comments
 (0)