Pārlūkot izejas kodu

Closes #16669: Include a notice when rendering docs locally

Jeremy Stretch 1 gadu atpakaļ
vecāks
revīzija
3000407a5f
1 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  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 %}