Fix support for Sphinx 1.3

This commit is contained in:
Steven Silvester
2015-03-14 10:35:04 -05:00
parent 7d65366b67
commit 9c3a6c1e91
2 changed files with 14 additions and 7 deletions
+5 -1
View File
@@ -12,6 +12,7 @@
# serve to show the default.
import sys, os
import sphinx
# 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
@@ -50,7 +51,10 @@ else:
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.txt'
if sphinx.__version__.startswith('1.3'):
source_suffix = ['.txt']
else:
source_suffix = '.txt'
# The encoding of source files.
#source_encoding = 'utf-8-sig'