Update to latest Sphinx for documentation
Roll forward to recent version of sphinx for documentation generation. Change-Id: I9dadd6304cad15b58d39a1014c6804b4e32363ad
This commit is contained in:
parent
7cffd9dc0b
commit
f60d242137
|
@ -73,16 +73,17 @@ def transform_github_links(app, doctree, fromdocname):
|
||||||
# Replace the suffix with the correct target format file ending,
|
# Replace the suffix with the correct target format file ending,
|
||||||
# but only if the link ends with both the correct source suffix
|
# but only if the link ends with both the correct source suffix
|
||||||
# and refers to a local file.
|
# and refers to a local file.
|
||||||
if link.endswith(source_suffix):
|
for src_suffix in source_suffix:
|
||||||
# absolute paths are considered relative to repo
|
if link.endswith(src_suffix):
|
||||||
if link.startswith("/"):
|
# absolute paths are considered relative to repo
|
||||||
basepath = ""
|
if link.startswith("/"):
|
||||||
# relative paths are against the current doctree source path
|
basepath = ""
|
||||||
else:
|
# relative paths are against the current doctree source path
|
||||||
basepath = doc_dir
|
else:
|
||||||
if os.path.exists(os.path.join(basepath, link)):
|
basepath = doc_dir
|
||||||
node['refuri'] = (link[:-len(source_suffix)] + target_format +
|
if os.path.exists(os.path.join(basepath, link)):
|
||||||
anchor)
|
node['refuri'] = (link[:-len(source_suffix)] + target_format +
|
||||||
|
anchor)
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
hacking>=0.11.0,<0.12 # Apache-2.0
|
hacking>=0.11.0,<0.12 # Apache-2.0
|
||||||
loremipsum
|
loremipsum
|
||||||
mock!=1.1.1,<=1.3.0
|
mock!=1.1.1,<=1.3.0
|
||||||
Sphinx>=1.1.2,<1.2
|
sphinx>=1.5.1 # BSD
|
||||||
discover
|
discover
|
||||||
coverage>=3.6 # Apache-2.0
|
coverage>=3.6 # Apache-2.0
|
||||||
fixtures>=0.3.14
|
fixtures>=0.3.14
|
||||||
|
|
Loading…
Reference in New Issue