[FIX] _extension: build with sphinx 1.8
cherry-pick of odoo/odoo@ac37ca39ea but dropping the compatibility of sphinx 1.2 to simplify
This commit is contained in:
parent
07375ef322
commit
1b2cbd5b88
@ -99,7 +99,7 @@ def add_doc_link(app, pagename, templatename, context, doctree):
|
||||
# in Sphinx 1.3 it's possible to have mutliple source suffixes and that
|
||||
# may be useful in the future
|
||||
source_suffix = app.config.source_suffix
|
||||
source_suffix = source_suffix if isinstance(source_suffix, str) else source_suffix[0]
|
||||
source_suffix = next(iter(source_suffix))
|
||||
# FIXME: odoo/odoo has a doc/ prefix which is incorrect for this
|
||||
# project, how to unify? Add new setting?
|
||||
context['github_link'] = lambda mode='edit': make_github_link(
|
||||
|
Loading…
Reference in New Issue
Block a user