mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 23:06:15 +01:00
121 lines
4.4 KiB
HTML
121 lines
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html class="fancyScroll">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet">
|
|
<!--<link href="https://cdn.jsdelivr.net/npm/vuetify/dist/vuetify.min.css" rel="stylesheet">-->
|
|
<link href="/css/vuetify.css" rel="stylesheet">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
|
|
|
|
<title>{{ if .Title }}{{ .Title }} {{ else }}{{ .Site.Title }}{{ end }}</title>
|
|
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.SiteDescription }}{{ end }}">
|
|
|
|
<script src="/js/smooth-scroll.js"></script>
|
|
<link href="/css/doc-theme.css?" rel="stylesheet">
|
|
<link rel="icon" href="/favicon.ico">
|
|
<!-- Algolia Docs Search -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
|
</head>
|
|
<body>
|
|
</script>
|
|
<v-app id="app" class="" v-cloak style="background-color: white;">
|
|
{{ partial "menu.html" . }}
|
|
{{- partial "toolbar.html" . -}}
|
|
<v-content >
|
|
<v-container class="fluid pa-4" style="padding-top: 0 !important;">
|
|
<v-container class="ma-1 pa-1">
|
|
{{- partial "menu-contextual.html" . -}}
|
|
{{- block "main" . }}{{- end }}
|
|
</v-container>
|
|
</v-container>
|
|
</v-content>
|
|
</v-app>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vuetify/1.5.13/vuetify.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-resource/1.5.1/vue-resource.min.js"></script>
|
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
|
<script>
|
|
var development = false;
|
|
var app = new Vue({
|
|
el: '#app',
|
|
data: {
|
|
page: 1,
|
|
pageCount: 0,
|
|
error: null,
|
|
results: null,
|
|
drawer: true,
|
|
drawer2: true,
|
|
toc: 0,
|
|
branches: [
|
|
{ value: 'https://docs.pycom.io', text: 'version stable'},
|
|
{ value: 'https://development.pycom.io', text: 'version development'},
|
|
/*{ value: '1', text: 'version 1.20.2.r0'},
|
|
{ value: '2', text: 'version 1.20.3.b0'},
|
|
{ value: '3', text: 'version 1.20.2.rc10'},
|
|
{ value: '4', text: 'version 1.20.2.rc9'},*/
|
|
],
|
|
branch: ""
|
|
},
|
|
mounted: function () {
|
|
// on boot set default branch as specified as first in array
|
|
this.branch= this.branches[0]
|
|
for (b in this.branches) {
|
|
if ( document.location.href.indexOf(this.branches[b].value) > -1) {
|
|
this.branch= this.branches[b]
|
|
}
|
|
}
|
|
// there is not always a toc button
|
|
// temp. show page-toc to the user as hint of existence
|
|
if (this.$refs.tocBtn) {
|
|
var elem = this.$refs.tocBtn.$el
|
|
setTimeout(function () {
|
|
elem.click();
|
|
|
|
}, 3500);
|
|
}
|
|
var elem2 = document.getElementById("vuetify-theme-stylesheet");
|
|
elem2.parentNode.removeChild(elem2);
|
|
|
|
},
|
|
watch: {
|
|
// whenever the branch changes, this function will run
|
|
branch: function (newb, old) {
|
|
if (newb.value != this.branches[0].value) {
|
|
// development = !development;
|
|
// console.log("switch")
|
|
// if (!development){
|
|
// var x = document.getElementsByClassName('development')
|
|
// var i;
|
|
// for (i = 0; i < x.length; i++) {
|
|
// x[i].style.display = 'none';
|
|
// }
|
|
// }else{
|
|
// var x = document.getElementsByClassName('development')
|
|
// var i;
|
|
// for (i = 0; i < x.length; i++) {
|
|
// x[i].style.display = 'block';
|
|
// }
|
|
// }
|
|
window.location = newb + window.location.pathname;
|
|
}
|
|
},
|
|
},
|
|
});
|
|
|
|
// initialize Algolia doc search
|
|
docsearch({
|
|
apiKey: 'a99fde9999fbec81c1772eb9ffcca488',
|
|
indexName: 'pycom',
|
|
inputSelector: '.algolia-search-field input',
|
|
debug: false // Set debug to true if you want to inspect the dropdown
|
|
});
|
|
</script>
|
|
<!--{{- partial "footer.html" . -}}-->
|
|
{{- partial "alexia.html" . -}}
|
|
{{- partial "google_analitycs.html" . -}}
|
|
|
|
|
|
</body>
|
|
</html>
|