Skip to content

Commit

Permalink
Rename environment variable controlling public docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed May 21, 2024
1 parent 09c1228 commit 902c61b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/_theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<meta name="robots" content="noindex">
{% endif %}
{% endblock %}
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 902c61b

Please sign in to comment.