[FIX] conf.py: don't load github_link extension if odoo/ is missing
This commit is contained in:
parent
e3fee2cf46
commit
25af2874cd
10
conf.py
10
conf.py
@ -94,10 +94,6 @@ extensions = [
|
|||||||
# Support the specialized to-do directives
|
# Support the specialized to-do directives
|
||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
|
|
||||||
# GitHub links generation
|
|
||||||
'sphinx.ext.linkcode',
|
|
||||||
'github_link',
|
|
||||||
|
|
||||||
# Custom Odoo theme
|
# Custom Odoo theme
|
||||||
'odoo_theme',
|
'odoo_theme',
|
||||||
|
|
||||||
@ -118,6 +114,12 @@ extensions = [
|
|||||||
# Strange html domain logic used in memento pages
|
# Strange html domain logic used in memento pages
|
||||||
'html_domain',
|
'html_domain',
|
||||||
]
|
]
|
||||||
|
if odoo_dir_in_path:
|
||||||
|
# GitHub links generation
|
||||||
|
extensions += [
|
||||||
|
'sphinx.ext.linkcode',
|
||||||
|
'github_link',
|
||||||
|
]
|
||||||
|
|
||||||
todo_include_todos = False
|
todo_include_todos = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user