From 25af2874cdf6942aa9609eeace68ed832565714a Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Tue, 4 May 2021 16:25:56 +0200 Subject: [PATCH] [FIX] conf.py: don't load github_link extension if odoo/ is missing --- conf.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/conf.py b/conf.py index ba9349fe9..c44925f63 100644 --- a/conf.py +++ b/conf.py @@ -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