File tree 3 files changed +4
-11
lines changed 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -337,10 +337,7 @@ def _str_references(self):
337
337
out += ['' ]
338
338
# Latex collects all references to a separate bibliography,
339
339
# so we need to insert links to it
340
- if sphinx .__version__ >= "0.6" :
341
- out += ['.. only:: latex' , '' ]
342
- else :
343
- out += ['.. latexonly::' , '' ]
340
+ out += ['.. only:: latex' , '' ]
344
341
items = []
345
342
for line in self ['References' ]:
346
343
m = re .match (r'.. \[([a-z0-9._-]+)\]' , line , re .I )
Original file line number Diff line number Diff line change 30
30
from sphinx .util import logging
31
31
from sphinx .errors import ExtensionError
32
32
33
- if sphinx .__version__ < '1.6.5 ' :
34
- raise RuntimeError ("Sphinx 1.6.5 or newer is required" )
33
+ if sphinx .__version__ < '1.8 ' :
34
+ raise RuntimeError ("Sphinx 1.8 or newer is required" )
35
35
36
36
from .docscrape_sphinx import get_doc_object
37
37
from .validate import validate , ERROR_MSGS
Original file line number Diff line number Diff line change 1
- from distutils .version import LooseVersion
2
1
import os .path as op
3
2
import re
4
3
import shutil
@@ -25,10 +24,7 @@ def ignore(src, names):
25
24
conf_dir = temp_dir
26
25
out_dir = op .join (temp_dir , '_build' , 'html' )
27
26
toctrees_dir = op .join (temp_dir , '_build' , 'toctrees' )
28
- # Set behavior across different Sphinx versions
29
- kwargs = dict ()
30
- if LooseVersion (sphinx .__version__ ) >= LooseVersion ('1.8' ):
31
- kwargs .update (warningiserror = True , keep_going = True )
27
+ kwargs = {'warningiserror' : True , 'keep_going' : True }
32
28
# Avoid warnings about re-registration, see:
33
29
# https://github.com/sphinx-doc/sphinx/issues/5038
34
30
with docutils_namespace ():
You can’t perform that action at this time.
0 commit comments