Commit 716d50ac authored by Michal Čihař's avatar Michal Čihař

Simplify rtd code

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 9b33807c
......@@ -2,6 +2,7 @@
{% block footer %}
{{ super() }}
{% if READTHEDOCS %}
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
......@@ -17,4 +18,6 @@
</script>
<noscript><p><img src="//stats.cihar.com/piwik.php?idsite=17" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
{% endif %}
FOOTER
{% endblock %}
......@@ -15,9 +15,6 @@
import sys
import os
# Detect build on readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
......@@ -38,8 +35,6 @@ extensions = ['djangodocs', 'sphinxcontrib.httpdomain']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
if on_rtd:
templates_path.insert(0, '_rtd_templates')
# The suffix of source filenames.
source_suffix = '.rst'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment