cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblotsky <...@git.apache.org>
Subject [GitHub] cordova-docs pull request: CB-11104: Integrate Algolia Search to c...
Date Tue, 19 Apr 2016 21:23:22 GMT
Github user dblotsky commented on a diff in the pull request:

    https://github.com/apache/cordova-docs/pull/581#discussion_r60314159
  
    --- Diff: www/_layouts/base.html ---
    @@ -3,12 +3,27 @@
     ---
     
     <!DOCTYPE html>
    -<html lang="{% if page.language %}{{ page.language }}{% else %}{{ site.language }}{%
endif %}">
    +{% if page.language %}
    +    {% assign language = page.language %}
    +{% else %}
    +    {% assign language = site.language %}
    +{% endif %}
    +
    +<html lang="{{ language }}">
     {% include head.html %}
     <body>
         {{ content }}
         {% include analytics.html %}
         <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/index.js"></script>
         <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/twitter.js"></script>
    +    <script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
    +	<script type="text/javascript">
    +		docsearch({
    +		    apiKey: '0a916ab198bd93d031aa70611271e42e',
    +		    indexName: 'cordova',
    +		    inputSelector: '#header-search-field',
    +		    algoliaOptions: { 'facetFilters': [ "version:6.x","language: {{ language }}" ]
}
    +		});
    +	</script>
    --- End diff --
    
    Also, please place this code into an include like `analytics.html` for consistency.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message