Skip to content

Commit

Permalink
Merge pull request #216 from stevepiercy/master
Browse files Browse the repository at this point in the history
- fixed several bugs that caused search to fail
  • Loading branch information
stevepiercy committed May 19, 2014
2 parents 433eb4c + cfaf7b7 commit 6a0aad6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
37 changes: 21 additions & 16 deletions docs/_themes/substanced/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,8 @@
'_static/assets/js/main.js',
'_static/underscore.js',
'_static/doctools.js',
'_static/twitter.js'] %}
{%- macro script() %}
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '{{ url_root }}',
VERSION: '{{ release|e }}',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
HAS_SOURCE: {{ has_source|lower }}
};
</script>
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- endfor %}
<script type="text/javascript">$('#searchbox').show(0);</script>
{%- endmacro %}
'_static/twitter.js',
'_static/searchtools.js'] %}
{# XXX necessary? #}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{%- if not embedded and docstitle %}
Expand Down Expand Up @@ -71,6 +57,7 @@
</div>
</div>
{%- endmacro %}

{%- macro sidebar() %}
{%- if render_sidebar %}
<div class="span3 bs-docs-sidebar">
Expand Down Expand Up @@ -109,6 +96,23 @@
</div>
{%- endif %}
{%- endmacro %}

{%- macro script() %}
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '{{ url_root }}',
VERSION: '{{ release|e }}',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
HAS_SOURCE: {{ has_source|lower }}
};
</script>
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- endfor %}
<script type="text/javascript">$('#searchbox').show(0);</script>
{%- endmacro %}

{%- macro css() %}
{%- set css_files = ['_static/assets/css/theme_venera_blue.css',
'_static/pygments.css',
Expand Down Expand Up @@ -385,6 +389,7 @@ <h5 class='footer-header'>Substance D Developers</h5>
</footer>
{%- endblock %}
{%- block script %}{{ script() }}{% endblock %}
{%- block extraend %}{% endblock %}
<script type="text/javascript">
function handleTweets(tweets){
var x = tweets.length;
Expand Down
3 changes: 2 additions & 1 deletion docs/_themes/substanced/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
{%- extends "layout.html" %}
{% set title = _('Search') %}
{% set script_files = script_files + ['_static/searchtools.js'] %}
{% block extrahead %}
{% block extraend %}
<script type="text/javascript">$('#fallback').hide();</script>
<script type="text/javascript">
jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
# The name of an image file (within the static path) to use as favicon of
# the docs. This file should be a Windows icon file (.ico) being 16x16 or
# 32x32 pixels large.
html_favicon = '_static/favicon.ico'
html_favicon = '_themes/substanced/static/favicon.ico'

# Add any paths that contain custom static files (such as style sheets)
# here, relative to this directory. They are copied after the builtin
Expand Down

0 comments on commit 6a0aad6

Please sign in to comment.