[FIX] conf.py: don't load github_link extension if odoo/ is missing

This commit is contained in:
Antoine Vandevenne (anv) 2021-05-04 16:25:56 +02:00
parent e3fee2cf46
commit 25af2874cd

10
conf.py
View File

@ -94,10 +94,6 @@ extensions = [
# Support the specialized to-do directives
'sphinx.ext.todo',
# GitHub links generation
'sphinx.ext.linkcode',
'github_link',
# Custom Odoo theme
'odoo_theme',
@ -118,6 +114,12 @@ extensions = [
# Strange html domain logic used in memento pages
'html_domain',
]
if odoo_dir_in_path:
# GitHub links generation
extensions += [
'sphinx.ext.linkcode',
'github_link',
]
todo_include_todos = False