diff --git a/docs/_theme/main.html b/docs/_theme/main.html
new file mode 100644
index 000000000..4dfc4e14e
--- /dev/null
+++ b/docs/_theme/main.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+
+{% block site_meta %}
+ {{ super() }}
+ {# Disable search indexing unless we're building for ReadTheDocs #}
+ {% if not config.extra.readthedocs %}
+
+ {% endif %}
+{% endblock %}
diff --git a/mkdocs.yml b/mkdocs.yml
index 34c65ed01..b13ab6c49 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -5,6 +5,7 @@ repo_name: netbox-community/netbox
repo_url: https://github.com/netbox-community/netbox
theme:
name: material
+ custom_dir: docs/_theme/
icon:
repo: fontawesome/brands/github
palette:
@@ -37,6 +38,7 @@ plugins:
show_root_toc_entry: false
show_source: false
extra:
+ readthedocs: !ENV READTHEDOCS
social:
- icon: fontawesome/brands/github
link: https://github.com/netbox-community/netbox