diff --git a/docs/_theme/main.html b/docs/_theme/main.html
index 4dfc4e14e8..99907bf42f 100644
--- a/docs/_theme/main.html
+++ b/docs/_theme/main.html
@@ -2,8 +2,8 @@
{% block site_meta %}
{{ super() }}
- {# Disable search indexing unless we're building for ReadTheDocs #}
- {% if not config.extra.readthedocs %}
+ {# Disable search indexing unless we're building for public consumption #}
+ {% if not config.extra.build_public %}
{% endif %}
{% endblock %}
diff --git a/mkdocs.yml b/mkdocs.yml
index 6f7ea7045b..cf1e66cead 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -42,7 +42,7 @@ plugins:
show_root_toc_entry: false
show_source: false
extra:
- readthedocs: !ENV READTHEDOCS
+ build_public: !ENV BUILD_PUBLIC
social:
- icon: fontawesome/brands/github
link: https://github.com/netbox-community/netbox