mirror of https://github.com/docker/docs.git
88 lines
7.3 KiB
HTML
88 lines
7.3 KiB
HTML
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
{{ partial "meta.html" . }}
|
|
{{- if hugo.IsProduction -}}
|
|
<script
|
|
src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
|
|
type="text/javascript"
|
|
charset="UTF-8"
|
|
data-domain-script="{{ site.Params.analytics.onetrust }}"
|
|
></script>
|
|
<script type="text/javascript">function OptanonWrapper() {}</script>
|
|
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
})(window,document,'script','dataLayer','{{ site.Params.analytics.google }}');</script>
|
|
<script>
|
|
(function(h,o,t,j,a,r){
|
|
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
|
|
h._hjSettings={hjid:{{ site.Params.analytics.hotjar.prod | safeJS }},hjsv:6};
|
|
a=o.getElementsByTagName('head')[0];
|
|
r=o.createElement('script');r.async=1;
|
|
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
|
|
a.appendChild(r);
|
|
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
|
|
</script>
|
|
{{- else if (eq hugo.Environment "staging") -}}
|
|
<!-- Start VWO Async SmartCode -->
|
|
<link rel="preconnect" href="https://dev.visualwebsiteoptimizer.com" />
|
|
<script type='text/javascript' id='vwoCode'>
|
|
window._vwo_code || (function() {
|
|
var account_id={{ site.Params.analytics.vwo | safeJS }},
|
|
version=2.1,
|
|
settings_tolerance=2000,
|
|
hide_element='body',
|
|
hide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important',
|
|
/* DO NOT EDIT BELOW THIS LINE */
|
|
f=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{var c=JSON.parse(localStorage.getItem('_vwo_'+account_id+'_config'));cc=c&&typeof c==='object'?c:{}}catch(e){}var stT=cc.stT==='session'?w.sessionStorage:w.localStorage;code={use_existing_jquery:function(){return typeof use_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){return typeof library_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){return cc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){if(performance.getEntriesByName('first-contentful-paint')[0]){return''}return typeof cc.hE==='string'?cc.hE:hide_element},getVersion:function(){return version},finish:function(e){if(!f){f=true;var t=d.getElementById('_vis_opt_path_hides');if(t)t.parentNode.removeChild(t);if(e)(new Image).src='https://dev.visualwebsiteoptimizer.com/ee.gif?a='+account_id+e}},finished:function(){return f},addScript:function(e){var t=d.createElement('script');t.type='text/javascript';if(e.src){t.src=e.src}else{t.text=e.text}d.getElementsByTagName('head')[0].appendChild(t)},load:function(e,t){var i=this.getSettings(),n=d.createElement('script'),r=this;t=t||{};if(i){n.textContent=i;d.getElementsByTagName('head')[0].appendChild(n);if(!w.VWO||VWO.caE){stT.removeItem(cK);r.load(e)}}else{var o=new XMLHttpRequest;o.open('GET',e,true);o.withCredentials=!t.dSC;o.responseType=t.responseType||'text';o.onload=function(){if(t.onloadCb){return t.onloadCb(o,e)}if(o.status===200){_vwo_code.addScript({text:o.responseText})}else{_vwo_code.finish('&e=loading_failure:'+e)}};o.onerror=function(){if(t.onerrorCb){return t.onerrorCb(e)}_vwo_code.finish('&e=loading_failure:'+e)};o.send()}},getSettings:function(){try{var e=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){_vwo_code.finish();stT.removeItem(cK)},e);var t;if(this.hide_element()!=='body'){t=d.createElement('style');var i=this.hide_element(),n=i?i+this.hide_element_style():'',r=d.getElementsByTagName('head')[0];t.setAttribute('id','_vis_opt_path_hides');v&&t.setAttribute('nonce',v.nonce);t.setAttribute('type','text/css');if(t.styleSheet)t.styleSheet.cssText=n;else t.appendChild(d.createTextNode(n));r.appendChild(t)}else{t=d.getElementsByTagName('head')[0];var n=d.createElement('div');n.style.cssText='z-index: 2147483647 !important;position: fixed !important;left: 0 !important;top: 0 !important;width: 100% !important;height: 100% !important;background: white !important;';n.setAttribute('id','_vis_opt_path_hides');n.classList.add('_vis_hide_layer');t.parentNode.insertBefore(n,t.nextSibling)}var o='https://dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&vn='+version;if(w.location.search.indexOf('_vwo_xhr')!==-1){this.addScript({src:o})}else{this.load(o+'&x=true')}}};w._vwo_code=code;code.init();})();
|
|
</script>
|
|
<!-- End VWO Async SmartCode -->
|
|
<script>
|
|
(function(h,o,t,j,a,r){
|
|
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
|
|
h._hjSettings={hjid:{{ site.Params.analytics.hotjar.stage | safeJS }},hjsv:6};
|
|
a=o.getElementsByTagName('head')[0];
|
|
r=o.createElement('script');r.async=1;
|
|
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
|
|
a.appendChild(r);
|
|
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
|
|
</script>
|
|
{{ end }}
|
|
{{ if hugo.IsProduction }}
|
|
{{/* kapa.ai widget */}}
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
var script = document.createElement('script');
|
|
script.src = 'https://widget.kapa.ai/kapa-widget.bundle.js';
|
|
script.setAttribute('data-website-id', '{{ site.Params.kapa.id }}');
|
|
script.setAttribute('data-project-name', 'Docker');
|
|
script.setAttribute('data-user-analytics-fingerprint-enabled', 'true');
|
|
script.setAttribute('data-button-image-height', '29px');
|
|
script.setAttribute('data-button-image-width', '40px');
|
|
script.setAttribute('data-modal-image-height', '29px');
|
|
script.setAttribute('data-modal-image-width', '40px');
|
|
script.setAttribute('data-modal-title-color', '#fff');
|
|
script.setAttribute('data-project-color', '#086dd7');
|
|
script.setAttribute('data-modal-header-bg-color', '#086dd7');
|
|
script.setAttribute('data-project-logo', '/assets/images/logo-icon-white.svg');
|
|
script.setAttribute('data-font-family', 'Roboto Flex,sans-serif');
|
|
script.setAttribute('data-modal-disclaimer', 'This is a custom LLM for answering questions about Docker. Answers are based on the contents of the documentation. This feature is experimental - rate the answers to let us know what you think!');
|
|
script.setAttribute('data-modal-disclaimer-bg-color', '#e5f2fc');
|
|
script.setAttribute('data-modal-disclaimer-text-color', '#086dd7');
|
|
script.async = true;
|
|
document.body.appendChild(script);
|
|
});
|
|
</script>
|
|
{{ end }}
|
|
{{/* preload Roboto Flex as it's a critical font: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload */}}
|
|
<link href="/assets/fonts/RobotoFlex.woff2" rel="preload" as="font" type="font/woff2" crossorigin />
|
|
{{ partialCached "utils/css.html" "-" }}
|
|
{{ $theme := resources.Get "js/theme.js" | js.Build (dict "minify" true) }}
|
|
<script>{{ $theme.Content | safeJS }}</script>
|
|
{{ $js := resources.Match "js/src/**.js"
|
|
| resources.Concat "scripts.js"
|
|
| js.Build (dict "minify" true "targetPath" "scripts.js")
|
|
}}
|
|
<script defer src="{{ $js.Permalink }}"></script>
|