|
| 1 | +diff --git a/mkdocs-material/src/base.html b/mkdocs-material/src/base.html |
| 2 | +index 9cb7ebf9..ebdcb325 100644 |
| 3 | +--- a/mkdocs-material/src/base.html |
| 4 | ++++ b/mkdocs-material/src/base.html |
| 5 | +@@ -236,7 +236,9 @@ |
| 6 | + |
| 7 | + <!-- Application header --> |
| 8 | + {% block header %} |
| 9 | +- {% include "partials/header.html" %} |
| 10 | ++ <div id="arduino-header" class="temporary"> |
| 11 | ++ </div> |
| 12 | ++ <!-- {% include "partials/header.html" %} --> |
| 13 | + {% endblock %} |
| 14 | + |
| 15 | + <!-- Container, necessary for web-application context --> |
| 16 | +@@ -378,20 +380,35 @@ |
| 17 | + {{- translations | tojson -}} |
| 18 | + </script> |
| 19 | + |
| 20 | +- <!-- Application configuration --> |
| 21 | +- {% block config %}{% endblock %} |
| 22 | ++ <!-- Custom Arduino header-footer --> |
| 23 | ++ <link rel="stylesheet" type="text/css" href="https://cdn.arduino.cc/header-footer/prod/index.v2.css"> |
| 24 | ++ <script src="https://cdn.arduino.cc/header-footer/prod/index.v2.js"></script> |
| 25 | + |
| 26 | +- <!-- Application initialization --> |
| 27 | +- <script> |
| 28 | +- app = initialize({ |
| 29 | +- base: "{{ base_url }}", |
| 30 | +- features: {{ config.theme.features or [] | tojson }}, |
| 31 | +- search: Object.assign({ |
| 32 | +- worker: "{{ 'assets/javascripts/worker/search.js' | url }}" |
| 33 | +- }, typeof search !== "undefined" && search) |
| 34 | ++ <script type="text/javascript"> |
| 35 | ++ window.auth = new arduinoHF.CustomAuth({ |
| 36 | ++ no_auth: true |
| 37 | ++ }); |
| 38 | ++ </script> |
| 39 | ++ |
| 40 | ++ <script type="text/javascript"> |
| 41 | ++ // Init header |
| 42 | ++ window.arduinoHeader = new window.arduinoHF.Header(document.getElementById('arduino-header'), window.auth, { |
| 43 | ++ env: 'prod', |
| 44 | ++ style: 'arduino', |
| 45 | ++ search: { |
| 46 | ++ tab: 'reference' |
| 47 | ++ } |
| 48 | + }) |
| 49 | ++ |
| 50 | ++ window.arduinoFooter = new window.arduinoHF.Footer(document.getElementById('arduino-footer'), { |
| 51 | ++ env: 'prod', |
| 52 | ++ style: 'arduino' |
| 53 | ++ }); |
| 54 | + </script> |
| 55 | + |
| 56 | ++ <!-- Application configuration --> |
| 57 | ++ {% block config %}{% endblock %} |
| 58 | ++ |
| 59 | + <!-- Custom JavaScript --> |
| 60 | + {% for path in config["extra_javascript"] %} |
| 61 | + <script src="{{ path | url }}"></script> |
0 commit comments