diff --git a/docs/overrides/main.html b/docs/overrides/main.html
deleted file mode 100644
index 910af0973..000000000
--- a/docs/overrides/main.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends "base.html" %}
-
-{% block scripts %}
-
-
-
-{% endblock %}
diff --git a/docs/partials/header.html b/docs/partials/header.html
new file mode 100644
index 000000000..f5243225b
--- /dev/null
+++ b/docs/partials/header.html
@@ -0,0 +1,51 @@
+{#-
+This file was automatically generated - do not edit
+-#}
+{% set site_url = config.site_url | d(nav.homepage.url, true) | url %}
+{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
+{% set site_url = site_url ~ "/index.html" %}
+{% endif %}
+
diff --git a/mkdocs.yml b/mkdocs.yml
index a14c67b03..96cfa7651 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -39,7 +39,7 @@ theme:
name: material
logo: 'images/logo.png'
favicon: 'images/logo.png'
- custom_dir: 'docs/overrides'
+ custom_dir: 'docs'
palette:
primary: 'blue grey'
accent: 'tear'