Explorar o código

Closes #16669: Include a notice when rendering docs locally

Jeremy Stretch hai 1 ano
pai
achega
3000407a5f
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      docs/_theme/partials/copyright.html

+ 18 - 0
docs/_theme/partials/copyright.html

@@ -0,0 +1,18 @@
+<div class="md-copyright">
+  {% if config.copyright %}
+    <div class="md-copyright__highlight">
+      {{ config.copyright }}
+    </div>
+  {% endif %}
+  {% if not config.extra.generator == false %}
+    Made with
+    <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
+      Material for MkDocs
+    </a>
+  {% endif %}
+</div>
+{% if not config.extra.build_public %}
+  <div class="md-copyright">
+    ℹ️ Documentation is being served locally
+  </div>
+{% endif %}