瀏覽代碼

Rename environment variable controlling public docs build

Jeremy Stretch 2 年之前
父節點
當前提交
902c61bf47
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      docs/_theme/main.html
  2. 1 1
      mkdocs.yml

+ 2 - 2
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 %}
     <meta name="robots" content="noindex">
   {% endif %}
 {% endblock %}

+ 1 - 1
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