Skip to content

Commit

Permalink
remove warning, update rtd theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanpmt committed May 18, 2017
1 parent d478f88 commit 597afc6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
python:
- 2.7
install:
- pip install sphinx sphinx_rtd_theme==0.2.0 sphinxcontrib.youtube sphinxcontrib-googleanalytics
- pip install sphinx sphinx_rtd_theme==0.2.5b1 sphinxcontrib.youtube
script: make html
after_success:
- ./push.sh
Expand Down
14 changes: 14 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends "!layout.html" %}

{% block footer %}
{{ super() }}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-60470603-9");
pageTracker._trackPageview();
} catch(err) {}</script>
{% endblock %}
4 changes: 1 addition & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinxcontrib.youtube',
'sphinxcontrib.googleanalytics']
'sphinxcontrib.youtube']

googleanalytics_id = 'UA-60470603-9'

html_theme_options = {
'collapse_navigation': False,
Expand Down

0 comments on commit 597afc6

Please sign in to comment.