diff --git a/docs/source/conf.py b/docs/source/conf.py
index 8cc022b86c0f4459b9487d27a1679f7b50b8ba94..92adb5663d112f3847c31412face826ce0b9923a 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -20,7 +20,6 @@ https://stackoverflow.com/questions/22256995/restructuredtext-in-sphinx-and-docs
 import os
 import sys
 
-import jinja2
 import m2r2
 from git import Repo
 
@@ -47,8 +46,6 @@ def write_custom_footer():
     Function to write the custom footer to the template file
     """
 
-    TARGET_DIR = "./_templates"
-
     output_text = """
 {{% extends '!footer.html' %}}