mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 06:53:51 +08:00
Fix support for Sphinx 1.3
This commit is contained in:
+5
-1
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user