Skip to content

Commit ebe504c

Browse files
committed
Closes #15664: Restore usage of READTHEDOCS env variable
1 parent b6e38b2 commit ebe504c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/_theme/main.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
{% block site_meta %}
44
{{ super() }}
5-
{# Disable search indexing unless we're building for ReadTheDocs (see #10496) #}
6-
{% if page.canonical_url != 'https://docs.netbox.dev/' %}
5+
{# Disable search indexing unless we're building for ReadTheDocs #}
6+
{% if not config.extra.readthedocs %}
77
<meta name="robots" content="noindex">
88
{% endif %}
99
{% endblock %}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ plugins:
4242
show_root_toc_entry: false
4343
show_source: false
4444
extra:
45+
readthedocs: !ENV READTHEDOCS
4546
social:
4647
- icon: fontawesome/brands/github
4748
link: https://github.com/netbox-community/netbox

0 commit comments

Comments
 (0)